Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start API server using docker-compose on NETWORK=testnet #2806

Closed
DDevine opened this issue Aug 8, 2021 · 3 comments · Fixed by #2826
Closed

Cannot start API server using docker-compose on NETWORK=testnet #2806

DDevine opened this issue Aug 8, 2021 · 3 comments · Fixed by #2826

Comments

@DDevine
Copy link

DDevine commented Aug 8, 2021

Context

I am trying to bring up the API server using the docker-compose config. Because I am doing some development I specifically want to use the testnet.

However, the cardano-wallet service won't come up.

Steps to Reproduce

The main README indicates that I should bring up a stack on the testnet by doing the following.

wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up -d

Expected behavior

The cardano-wallet service should come up and I should be able to connect to the api on port 8090.

Actual behavior

In the logs I see the following error:

cardano-wallet_1  | [cardano-wallet.main:Error:4] [2021-08-08 07:18:02.62 UTC] Failed to parse Byron genesis configuration. You may want to check the filepath given via --genesis and make sure it points to a  valid JSON Byron genesis file. The genesis file must be Byron, not Shelley as it used to feed the wallet with the initial blockchain parameters. Here's (perhaps) some helpful hint: GenesisDataIOError /config/*-testnet-byron-genesis.json: openBinaryFile: does not exist (No such file or directory)
cardano-wallet_1  | [cardano-wallet.main:Info:4] [2021-08-08 07:18:04.67 UTC] Running as v2021-07-30 (git revision: ada8e3bc4a1baf642ea47575bde09bfa07de71c3) on x86_64-linux
cardano-wallet_1  | [cardano-wallet.main:Info:4] [2021-08-08 07:18:04.67 UTC] Command line: /bin/cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0 --testnet /config/*-testnet-byron-genesis.json
cardano-wallet_1  | [cardano-wallet.main:Debug:4] [2021-08-08 07:18:04.67 UTC] ServeArgs {_hostPreference = Host "0.0.0.0", _listen = ListenOnPort 8090, _tlsConfig = Nothing, _nodeSocket = CardanoNodeConn "/ipc/node.socket", _networkConfiguration = TestnetConfig "/config/*-testnet-byron-genesis.json", _database = Just "/wallet-db", _syncTolerance = SyncTolerance 300s, _enableShutdownHandler = False, _poolMetadataSourceOpt = Nothing, _tokenMetadataSourceOpt = Nothing, _logging = LoggingOptions {loggingMinSeverity = Debug, loggingTracers = Tracers {applicationTracer = Const (Just Info), apiServerTracer = Const (Just Info), tokenMetadataTracer = Const (Just Info), walletEngineTracer = Const (Just Info), walletDbTracer = Const (Just Info), poolsEngineTracer = Const (Just Info), poolsDbTracer = Const (Just Info), ntpClientTracer = Const (Just Info), networkTracer = Const (Just Info)}, loggingTracersDoc = Nothing}}
cardano-wallet_1  | [cardano-wallet.main:Debug:4] [2021-08-08 07:18:04.67 UTC] Logging shutdown.
cardano-wallet_1  | [cardano-wallet.main:Error:4] [2021-08-08 07:18:04.67 UTC] Failed to parse Byron genesis configuration. You may want to check the filepath given via --genesis and make sure it points to a  valid JSON Byron genesis file. The genesis file must be Byron, not Shelley as it used to feed the wallet with the initial blockchain parameters. Here's (perhaps) some helpful hint: GenesisDataIOError /config/*-testnet-byron-genesis.json: openBinaryFile: does not exist (No such file or directory)
@Anviking
Copy link
Member

Thanks for reporting! Mirroring in ADP-1068.

Seems broken for me on mainnet too (NETWORK=mainnet docker-compose up -d)

[cardano-wallet.main:Error:4] [2021-08-10 14:04:48.17 UTC] Failed to parse Byron genesis configuration. You may want to check the filepath given via --genesis and make sure it points to a valid JSON Byron genesis file. The genesis file must be Byron, not Shelley as it used to feed the wallet with the initial blockchain parameters. Here's (perhaps) some helpful hint: GenesisDataIOError /config/*-mainnet-byron-genesis.json: openBinaryFile: does not exist (No such file or directory)
[cardano-wallet.main:Info:4] [2021-08-10 14:04:48.16 UTC] Command line: /bin/cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0 --testnet /config/*-mainnet-byron-genesis.json

where it's passing in --testnet /config/*-mainnet-byron-genesis.json rather than --mainnet.

@Red3nzo
Copy link

Red3nzo commented Aug 15, 2021

I am getting the same issues following what @DDevine said. Keep getting cardano-docker_cardano-wallet_1 exited with code 33

@piotr-iohk
Copy link
Contributor

piotr-iohk commented Aug 18, 2021

It should be now fixed in master. One should also be able to start docker-compose on alonzo-purple as well as mainnet or testnet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants