Cardano REST API configuration (Testnet)

Hi,

i want to create a small application to explore the cardano API. I have installed Daedalus 2.0 (Testnet) for cardano node, PSQL, Docker and build image of Cardano-rest (GitHub - input-output-hk/cardano-rest: HTTP interfaces for interacting with the Cardano blockchain.).

When i am executing “docker-compose up” command, i am getting below log / error on screen,

docker-compose up
Creating network “cardano-rest_default” with the default driver
Creating cardano-rest_postgres_1 … done
Creating cardano-rest_cardano-node_1 … done
Creating cardano-rest_cardano-submit-api_1 … done
Creating cardano-rest_cardano-db-sync_1 … done
Creating cardano-rest_cardano-explorer-api_1 … done
Attaching to cardano-rest_postgres_1, cardano-rest_cardano-node_1, cardano-rest_cardano-db-sync_1, cardano-rest_cardano-submit-api_1, cardano-rest_cardano-explorer-api_1
cardano-db-sync_1 | /run/secrets
cardano-db-sync_1 | Generating PGPASS file
cardano-db-sync_1 | Connecting to network: testnet
cardano-db-sync_1 | ExitFailure 2
cardano-db-sync_1 |
cardano-db-sync_1 | Errors in file: /tmp/migrate-2020-07-31T181643.log
cardano-db-sync_1 |
cardano-explorer-api_1 | Generating PGPASS file
cardano-node_1 | Starting cardano-node run: /nix/store/442brx5kpqdx9z9ccdd5z3zi5km56i05-cardano-node-exe-cardano-node-1.18.0/bin/cardano-node run
cardano-node_1 | --config /nix/store/dfidzx8ggnj6sgzkz8ay7n225sy9nin3-config-0.json
cardano-node_1 | --database-path /data/db
cardano-node_1 | --topology /nix/store/dpajyi2vaychwps1x7d20c2ddls4kf62-topology.yaml
cardano-node_1 | --host-addr 127.0.0.1
cardano-node_1 | --port 3001
cardano-node_1 | --socket-path /ipc/node.socket
cardano-node_1 |
cardano-node_1 |
cardano-node_1 |
cardano-node_1 |
cardano-node_1 |
cardano-node_1 | …or, once again, in a single line:
cardano-node_1 | /nix/store/442brx5kpqdx9z9ccdd5z3zi5km56i05-cardano-node-exe-cardano-node-1.18.0/bin/cardano-node run --config /nix/store/dfidzx8ggnj6sgzkz8ay7n225sy9nin3-config-0.json --database-path /data/db --topology /nix/store/dpajyi2vaychwps1x7d20c2ddls4kf62-topology.yaml --host-addr 127.0.0.1 --port 3001 --socket-path /ipc/node.socket
cardano-node_1 | Listening on http://127.0.0.1:12798
cardano-node_1 | [988907ff:cardano.node.release:Notice:5] [2020-07-31 18:16:43.22 UTC] CardanoProtocol
cardano-node_1 | ProtocolMagicIdMismatch “/data/db/protocolMagicId” (ProtocolMagicId {unProtocolMagicId = 764824073}) (ProtocolMagicId {unProtocolMagicId = 1097911063})
cardano-node_1 |
cardano-node_1 | cardano-node: Wrong protocolMagicId in “/data/db/protocolMagicId”: ProtocolMagicId {unProtocolMagicId = 764824073}, but expected: ProtocolMagicId {unProtocolMagicId = 1097911063}postgres_1 | 2020-07-31 18:16:41.122 UTC [1] LOG: listening on IPv4 address “0.0.0.0”, port 5432
postgres_1 | 2020-07-31 18:16:41.126 UTC [1] LOG: listening on IPv6 address “::”, port 5432
postgres_1 | 2020-07-31 18:16:41.153 UTC [1] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
postgres_1 | 2020-07-31 18:16:41.651 UTC [18] LOG: database system was interrupted; last known up at 2020-07-31 18:07:18 UTC
postgres_1 | 2020-07-31 18:16:44.177 UTC [19] FATAL: the database system is starting up
postgres_1 | 2020-07-31 18:16:45.631 UTC [18] LOG: database system was not properly shut down; automatic recovery in progress
postgres_1 | 2020-07-31 18:16:45.664 UTC [18] LOG: redo starts at 0/2394228
postgres_1 | 2020-07-31 18:16:45.730 UTC [18] LOG: invalid record length at 0/23FFCD0: wanted 24, got 0
postgres_1 | 2020-07-31 18:16:45.730 UTC [18] LOG: redo done at 0/23FFC38
postgres_1 | 2020-07-31 18:16:45.730 UTC [18] LOG: last completed transaction was at log time 2020-07-31 18:07:40.201845+00
postgres_1 | 2020-07-31 18:16:45.855 UTC [20] FATAL: the database system is starting up
postgres_1 | 2020-07-31 18:16:46.099 UTC [1] LOG: database system is ready to accept connections
cardano-rest_cardano-node_1 exited with code 1
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:16:50.03 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:16:52.07 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:16:54.93 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:16:59.34 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:17:07.11 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:17:21.39 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:17:48.15 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:18:40.74 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:19:41.91 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:20:43.19 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:21:44.67 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:22:46.06 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:23:47.19 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:24:48.72 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:25:50.01 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:26:51.15 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:27:52.42 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:28:53.52 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:29:54.84 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:30:56.07 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:31:57.26 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:32:58.58 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:34:00.17 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:35:01.54 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:36:02.90 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:37:04.13 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:38:05.43 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:39:07.27 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:40:08.95 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:41:10.33 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:42:11.59 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:43:12.73 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:44:14.01 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:45:15.39 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:46:16.87 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:47:18.07 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:48:19.44 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1
cardano-db-sync_1 | [db-sync-node:Info:4] [2020-07-31 18:49:20.89 UTC] NetworkMagic: 1097911063
cardano-db-sync_1 | Error: validateGenesisDistribution: Expected total supply to be 41999999999999903 but got 0
cardano-rest_cardano-db-sync_1 exited with code 1