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

Issue: Application Fails to Start with "missing public key" Error #190

Open
anchalshivank opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@anchalshivank
Copy link

Hi, I'm new to this community and trying to get started with the application. I followed the documentation on how to start the app, but I'm encountering an issue. Here's what's happening:
Steps to Reproduce
1. Run cargo run start for basecoin-rs:

anchalshivank@anchalshivank:/media/anchalshivank/d628748b-bd5d-418e-9d39-e3227a48b39d/basecoin-rs$ cargo run start
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s
    Running `target/debug/basecoin start`
2024-08-13T18:35:14.548873Z  INFO basecoin: Starting app and waiting for CometBFT to connect...
2024-08-13T18:35:14.549237Z  INFO basecoin::runner: Starting tower ABCI server
2024-08-13T18:35:14.549506Z  INFO tower_abci::v037::server: ABCI server starting on tcp socket addr=127.0.0.1:26358

2. Run cometbft node in another terminal:

anchalshivank@anchalshivank:~/.cometbft/config$ cometbft node
I[2024-08-13|18:35:53.829] deprecated usage found in configuration file usage="[consensus.timeout_commit] is deprecated. Use `next_block_delay` in the ABCI `FinalizeBlockResponse`."
I[2024-08-13|18:35:53.898] State store key layout version               module=main version=vv1
I[2024-08-13|18:35:53.916] Blockstore version                           module=main version=v1
I[2024-08-13|18:35:53.916] WARNING: deleting genesis file from database if present, the database stores a hash of the original genesis file now module=main 
I[2024-08-13|18:35:53.916] service start                                module=proxy msg="Starting multiAppConn service" impl=multiAppConn
I[2024-08-13|18:35:53.916] service start                                module=abci-client connection=query msg="Starting socketClient service" impl=socketClient
I[2024-08-13|18:35:53.917] service start                                module=abci-client connection=snapshot msg="Starting socketClient service" impl=socketClient
I[2024-08-13|18:35:53.917] service start                                module=abci-client connection=mempool msg="Starting socketClient service" impl=socketClient
I[2024-08-13|18:35:53.918] service start                                module=abci-client connection=consensus msg="Starting socketClient service" impl=socketClient
I[2024-08-13|18:35:53.918] service start                                module=events msg="Starting EventBus service" impl=EventBus
I[2024-08-13|18:35:53.918] service start                                module=pubsub msg="Starting PubSub service" impl=PubSub
I[2024-08-13|18:35:53.947] service start                                module=txindex msg="Starting IndexerService service" impl=IndexerService
I[2024-08-13|18:35:53.949] ABCI Handshake App Info                      module=consensus height=0 hash=0000000000000000000000000000000000000000000000000000000000000000 software-version=0.1.0 protocol-version=1
I[2024-08-13|18:35:53.949] ABCI Replay Blocks                           module=consensus appHeight=0 storeHeight=0 stateHeight=0
E[2024-08-13|18:35:53.950] Stopping abci.socketClient for error: read message: EOF module=abci-client connection=consensus
I[2024-08-13|18:35:53.950] service stop                                 module=abci-client connection=consensus msg="Stopping socketClient service" impl=socketClient
E[2024-08-13|18:35:53.951] consensus connection terminated. Did the application crash? Please restart CometBFT module=proxy err="read message: EOF"
ERROR: failed to create node: error during handshake: error on replay: read message: EOF

3. Observe the output in the basecoin-rs terminal:

anchalshivank@anchalshivank:/media/anchalshivank/d628748b-bd5d-418e-9d39-e3227a48b39d/basecoin-rs$ cargo run start
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s
    Running `target/debug/basecoin start`
2024-08-13T18:35:14.548873Z  INFO basecoin: Starting app and waiting for CometBFT to connect...
2024-08-13T18:35:14.549237Z  INFO basecoin::runner: Starting tower ABCI server
2024-08-13T18:35:14.549506Z  INFO tower_abci::v037::server: ABCI server starting on tcp socket addr=127.0.0.1:26358
2024-08-13T18:35:53.917493Z DEBUG tower_abci::v037::server: accepted new connection _addr=127.0.0.1:52602
2024-08-13T18:35:53.917756Z DEBUG tower_abci::v037::server: accepted new connection _addr=127.0.0.1:52606
2024-08-13T18:35:53.918030Z  INFO tower_abci::v037::server: listening for requests
2024-08-13T18:35:53.918033Z  INFO tower_abci::v037::server: listening for requests
2024-08-13T18:35:53.918468Z DEBUG tower_abci::v037::server: accepted new connection _addr=127.0.0.1:52618
2024-08-13T18:35:53.918644Z DEBUG tower_abci::v037::server: accepted new connection _addr=127.0.0.1:52624
2024-08-13T18:35:53.918866Z  INFO tower_abci::v037::server: listening for requests
2024-08-13T18:35:53.918913Z  INFO tower_abci::v037::server: listening for requests
2024-08-13T18:35:53.948545Z DEBUG tower_abci::v037::server: new request request=Info(Info { version: "1.0.0-dev", block_version: 11, p2p_version: 9, abci_version: "2.1.0" })
2024-08-13T18:35:53.948819Z DEBUG tower_abci::v037::server: new request request=Flush
2024-08-13T18:35:53.948879Z DEBUG tower_abci::v037::server: flushing responses responses.len=1
2024-08-13T18:35:53.949076Z DEBUG basecoin_app::abci::v0_37::impls: Got info request. Tendermint version: 1.0.0-dev; Block version: 11; P2P version: 9, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-08-13T18:35:53.949305Z DEBUG tower_abci::v037::server: flushing response response=Ok(Info(Info { data: "basecoin-rs", version: "0.1.0", app_version: 1, last_block_height: block::Height(0), last_block_app_hash: AppHash(0000000000000000000000000000000000000000000000000000000000000000) }))
thread 'tokio-runtime-worker' panicked at /home/anchalshivank/.cargo/git/checkouts/tower-abci-df1595968e66ce5d/0992541/src/v037/server.rs:179

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

No branches or pull requests

1 participant