Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Error : Could not find the header of the genesis block in the database #385

Closed
stanly-johnson opened this issue Mar 31, 2021 · 1 comment

Comments

@stanly-johnson
Copy link

Starting collator as per README and no blocks are produced by the parachain. Running with -lruntime=trace gives following output. The error Could not find the header of the genesis block in the database appears after registering the parachain

2021-03-31 18:26:12.061   INFO tokio-runtime-worker substrate: [Relaychain] ✨ Imported #133 (0x3388…db3e)    
2021-03-31 18:26:12.066  ERROR tokio-runtime-worker cumulus-collator: [Parachain] Could not find the header of the genesis block in the database! block_hash=0x922ca1bf2c630107215923c1274627facec0230b0b4aee1efd0d8b652919edb7
2021-03-31 18:26:16.750   INFO tokio-runtime-worker substrate: [Relaychain] 💤 Idle (3 peers), best: #133 (0x3388…db3e), finalized #82 (0x7d31…fdbf), ⬇ 1.3kiB/s ⬆ 0.8kiB/s    
2021-03-31 18:26:16.814   INFO tokio-runtime-worker substrate: [Parachain] 💤 Idle (0 peers), best: #0 (0x9ff6…4f5f), finalized #0 (0x9ff6…4f5f), ⬇ 0.7kiB/s ⬆ 0.7kiB/s    
2021-03-31 18:26:18.050   INFO tokio-runtime-worker substrate: [Relaychain] ✨ Imported #134 (0x82aa…e5ed)    
2021-03-31 18:26:18.060  ERROR tokio-runtime-worker cumulus-collator: [Parachain] Could not find the header of the genesis block in the database! block_hash=0x922ca1bf2c630107215923c1274627facec0230b0b4aee1efd0d8b652919edb7
2021-03-31 18:26:21.750   INFO tokio-runtime-worker substrate: [Relaychain] 💤 Idle (3 peers), best: #134 (0x82aa…e5ed), finalized #84 (0xd48b…7ac7), ⬇ 1.9kiB/s ⬆ 1.5kiB/s    
2021-03-31 18:26:21.814   INFO tokio-runtime-worker substrate: [Parachain] 💤 Idle (0 peers), best: #0 (0x9ff6…4f5f), finalized #0 (0x9ff6…4f5f), ⬇ 0.5kiB/s ⬆ 0.4kiB/s    
2021-03-31 18:26:24.053   INFO tokio-runtime-worker substrate: [Relaychain] ✨ Imported #135 (0x8e20…2613)    
2021-03-31 18:26:24.059  ERROR tokio-runtime-worker cumulus-collator: [Parachain] Could not find the header of the genesis block in the database! block_hash=0x922ca1bf2c630107215923c1274627facec0230b0b4aee1efd0d8b652919edb7
2021-03-31 18:26:26.751   INFO tokio-runtime-worker substrate: [Relaychain] 💤 Idle (3 peers), best: #135 (0x8e20…2613), finalized #84 (0xd48b…7ac7), ⬇ 0.8kiB/s ⬆ 0.6kiB/s    
2021-03-31 18:26:26.815   INFO tokio-runtime-worker substrate: [Parachain] 💤 Idle (0 peers), best: #0 (0x9ff6…4f5f), finalized #0 (0x9ff6…4f5f), ⬇ 0 ⬆ 0    

Command to start relay chain

./target/release/polkadot --chain rococo-local-cfde-real-overseer.json --alice --tmp --rpc-external --ws-external --rpc-cors all --discover-local -lruntime=trace

Command to start collator

./target/release/rococo-collator --collator --tmp --parachain-id 300 -lruntime=trace port 40339 --ws-port 9988 -- --execution wasm --chain ../polkadot/rococo-local-cfde-real-overseer.json --port 30335

Screenshot 2021-04-01 at 12 15 49 AM

@bkchr
Copy link
Member

bkchr commented Apr 1, 2021

This means that you have registered the wrong genesis state in the relay chain.

Make sure you use export-genesis-state --parachain-id 300

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

No branches or pull requests

2 participants