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

Instantiation: Export ext_benchmarking_commit_db_version_1 not found #355

Closed
hackfisher opened this issue Mar 17, 2020 · 4 comments · Fixed by #356
Closed

Instantiation: Export ext_benchmarking_commit_db_version_1 not found #355

hackfisher opened this issue Mar 17, 2020 · 4 comments · Fixed by #356
Assignees

Comments

@hackfisher
Copy link
Contributor

2020-03-17 15:07:32 cannot create a runtime: Instantiation("Instantiation: Export ext_benchmarking_commit_db_version_1 not found")
Error: Service(Client(Execution(InvalidCode("Instantiation(\"Instantiation: Export ext_benchmarking_commit_db_version_1 not found\")"))))

#342 might be related, and

#[cfg(feature = "runtime-benchmarks")] should be added for compile

paritytech/substrate#5143

@clearloop
Copy link
Contributor

clearloop commented Mar 17, 2020

#[cfg(feature = "runtime-benchmarks")] should be added for compile

This error is not raised by the lack of #[cfg(feature = "runtime-benchmarks")], beacuse our benchmark part is based on v2.0.0-alpha.3 and substrate does not even support attrs in impl_runtime_apis! macro at that time. #5024 (benchmark will compile as default)

And the release node seems works well on my fork contains both #342 and #346:

 𝝺 ./target/release/darwinia  
2020-03-17 19:43:48 Darwinia Node
2020-03-17 19:43:48   version 0.5.0-e164cf0-x86_64-macos
2020-03-17 19:43:48   _____                      _       _       
2020-03-17 19:43:48  |  __ \                    (_)     (_)      
2020-03-17 19:43:48  | |  | | __ _ _ ____      ___ _ __  _  __ _ 
2020-03-17 19:43:48  | |  | |/ _` | '__\ \ /\ / / | '_ \| |/ _` |
2020-03-17 19:43:48  | |__| | (_| | |   \ V  V /| | | | | | (_| |
2020-03-17 19:43:48  |_____/ \__,_|_|    \_/\_/ |_|_| |_|_|\__,_|
2020-03-17 19:43:48   by Darwinia Network <hello@darwinia.network>, 2018-2020
2020-03-17 19:43:48 Chain specification: Darwinia Crab Network
2020-03-17 19:43:48 Node name: flawless-airplane-1088
2020-03-17 19:43:48 Roles: FULL
2020-03-17 19:43:48 Creating empty BABE epoch changes on what appears to be first startup.
2020-03-17 19:43:48 Highest known block at #0
2020-03-17 19:43:48 Local node identity is: Qmcg2gL5f7AC6AMfu8J654BRVMGsjdvLWPAfyA8pffPKWU
2020-03-17 19:43:48 Prometheus server started at 127.0.0.1:9615
2020-03-17 19:43:53 Idle (0 peers), best: #0 (0x006f…c6bc), finalized #0 (0x006f…c6bc), ⬇ 0 ⬆ 0
2020-03-17 19:43:58 Idle (0 peers), best: #0 (0x006f…c6bc), finalized #0 (0x006f…c6bc), ⬇ 0 ⬆ 0

@AurevoirXavier
Copy link
Member

And the release node seems works well on my fork contains both #342 and #346:

best: #0

@clearloop
Copy link
Contributor

clearloop commented Mar 17, 2020

I'm not sure if this is caused by the genesis config, but I can't reproduce the error this issue mentions.

𝝺 ./target/release/darwinia check-block 0
2020-03-17 19:56:19 Initializing Genesis block/state (state: 0x45bc…d2eb, header-hash: 0x33eb…ce3a)
2020-03-17 19:56:20 Loading GRANDPA authority set from genesis on what appears to be first startup.
2020-03-17 19:56:20 Loaded block-time = BabeConfiguration { slot_duration: 6000, epoch_length: 30, c: (1, 4), genesis_authorities: [(Public(d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)), 1), (Public(8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)), 1)], randomness: [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], secondary_slots: true } milliseconds from genesis on first-launch
2020-03-17 19:56:20 Creating empty BABE epoch changes on what appears to be first startup.
2020-03-17 19:56:20 Importing 1 blocks
2020-03-17 19:56:20 There was an error importing block with hash 0x33eb24e691faeeb0e44bd4d73aba1976a39d8b52d72a5cbe21f1aaecd6a0ce3a: UnknownParent
2020-03-17 19:56:20 Stopping after #0 blocks because of an error
Completed in 862 ms.
 𝝺 ./target/release/darwinia check-block 0
2020-03-17 19:56:24 Creating empty BABE epoch changes on what appears to be first startup.
2020-03-17 19:56:24 Importing 1 blocks
2020-03-17 19:56:24 There was an error importing block with hash 0x33eb24e691faeeb0e44bd4d73aba1976a39d8b52d72a5cbe21f1aaecd6a0ce3a: UnknownParent
2020-03-17 19:56:24 Stopping after #0 blocks because of an error
Completed in 94 ms.

@AurevoirXavier
Copy link
Member

I can reproduce this.

Never mind, I'll update the subtrate version today.

@AurevoirXavier AurevoirXavier linked a pull request Mar 17, 2020 that will close this issue
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.

3 participants