paritytech / polkadot

Polkadot Node Implementation
GNU General Public License v3.0
7.12k stars 1.58k forks source link

Error importing block/Kusama full node #1135

Closed makermelon closed 4 years ago

makermelon commented 4 years ago

Trying to sync a full node on linux it was about 4/5 complete before encountering a error. It said to report bug to github, so here we are, error is long but goes something like this:

block prepare storage changes error: Execution(runtimepanicked("storage root must match that calculated.")) date time broken heart error importing block 0x...

Any ideas how i can fix this thanks?

NikVolf commented 4 years ago

We need at least full error text

makermelon commented 4 years ago

Here it is:

Version: 0.7.30-0353c979-x86_64-linux-gnu

0: sp_panic_handler::set::{{closure}} 1: std::panicking::rust_panic_with_hook at src/libstd/panicking.rs:476 2: std::panicking::begin_panic 3: <kusama_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<<::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,kusama_runtime::Call,sp_runtime::MultiSignature,(kusama_runtime::RestrictFunctionality, frame_system::CheckVersion, frame_system::CheckGenesis, frame_system::CheckEra, frame_system::CheckNonce, frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, polkadot_runtime_common::registrar::LimitParathreadCommits, polkadot_runtime_common::parachains::ValidateDoubleVoteReports)>>>>::execute_block 4: std::panicking::try::do_call 5: rust_maybe_catch_panic at src/libpanic_unwind/lib.rs:86 6: std::thread::local::LocalKey::with 7: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}} 8: sc_executor::wasm_runtime::RuntimeCache::with_instance 9: <sc_executor::native_executor::NativeExecutor as sp_core::traits::CodeExecutor>::call 10: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux 11: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler 12: <sc_client::call_executor::LocalCallExecutor<B,E> as sc_client_api::call_executor::CallExecutor>::contextual_call 13: <sc_client::client::Client<B,E,Block,RA> as sp_api::CallApiAt>::call_api_at 14: sp_api::runtime_decl_for_Core::execute_block_call_api_at 15: sp_api::Core::execute_block 16: <&sc_client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport>::import_block 17: <sc_finality_grandpa::import::GrandpaBlockImport<BE,Block,Client,SC> as sp_consensus::block_import::BlockImport>::import_block 18: <sc_consensus_babe::BabeBlockImport<Block,Client,Inner> as sp_consensus::block_import::BlockImport>::import_block 19: sp_consensus::import_queue::import_single_block 20: <futures_util::future::poll_fn::PollFn as core::future::future::Future>::poll 21: futures_util::future::future::chain::Chain<Fut1,Fut2,Data>::poll 22: <futures_util::future::poll_fn::PollFn as core::future::future::Future>::poll 23: futures_executor::thread_pool::PoolState::work 24: std::sys_common::backtrace::rust_begin_short_backtrace 25: std::panicking::try::do_call 26: __rust_maybe_catch_panic at src/libpanic_unwind/lib.rs:86 27: core::ops::function::FnOnce::call_once{{vtable.shim}} 28: <alloc::boxed::Box as core::ops::function::FnOnce>::call_once at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1015 29: <alloc::boxed::Box as core::ops::function::FnOnce>::call_once at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1015 std::sys_common::thread::start_thread at src/libstd/sys_common/thread.rs:13 std::sys::unix::thread::Thread::new::thread_start at src/libstd/sys/unix/thread.rs:80 30: start_thread at /build/glibc-YYA7BZ/glibc-2.31/nptl/pthread_create.c:477 31: __clone

Thread 'import-queue-worker-0' panicked at 'Storage root must match that calculated.', <::std::macros::panic macros>:2

This is a bug. Please report it at:

https://github.com/paritytech/polkadot/issues/new

2020-05-25 11:33:13 Block prepare storage changes error: Execution(RuntimePanicked("Storage root must match that calculated.")) 2020-05-25 11:33:13 💔 Error importing block 0x478f359d51519b954a49567ae01afd2d62b315bd06d94e433fba212c8a7eef76: Err(Other(ClientImport("Import failed: Execution: Runtime panicked: Storage root must match that calculated."))) 2020-05-25 11:33:13 💔 Error importing block 0x8ab2b1caa8128873576c2ab320eee15601bc5d1d8af7ffe8b2c29a011ec3f079: Err(UnknownParent) 2020-05-25 11:33:13 💔 Error importing block 0xe11f329ef818efd40dcbb7fc46712b8a12250b57d393fb8cd68d0bf4d080d33f: Err(UnknownParent) Hash: given=49cd57fd1e0e111c907cab8369040ecb2eda26ce9ac9c1a89ccc193f704fc755, expected=cc5aac92e8a75161b91e574b0470fa5455bd55f84eebee3b2689733a78c4f205

bkchr commented 4 years ago

Your node is outdated, please update to fix your problem.

makermelon commented 4 years ago

Thanks, how do i update it?

bkchr commented 4 years ago

Download the latest github relase or whatever you have done before. Or compile the latest release on your own.