AstarNetwork / Astar

The dApp hub for blockchains of the future
https://astar.network/
GNU General Public License v3.0
741 stars 363 forks source link

Update to Spec runtime 92 failed #1330

Closed Zheaoli closed 2 months ago

Zheaoli commented 2 months ago

The node boot failed, and some exceptions have been raised. Here's message below

2024-08-20 16:19:36 Evicting failed runtime instance error=Runtime panicked: Slot must increase

====================

Version: 5.42.3-552e15fe170

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys_common::backtrace::__rust_end_short_backtrace
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: <pallet_aura::pallet::Pallet<T> as frame_support::traits::hooks::OnInitialize<<<<T as frame_system::pallet::Config>::Block as sp_runtime::traits::HeaderProvider>::HeaderT as sp_runtime::traits::Header>::Number>>::on_initialize
   7: <(TupleElement0,TupleElement1,TupleElement2,TupleElement3,TupleElement4,TupleElement5,TupleElement6,TupleElement7,TupleElement8,TupleElement9,TupleElement10,TupleElement11,TupleElement12,TupleElement13,TupleElement14,TupleElement15,TupleElement16,TupleElement17,TupleElement18,TupleElement19,TupleElement20,TupleElement21,TupleElement22,TupleElement23,TupleElement24,TupleElement25,TupleElement26,TupleElement27,TupleElement28,TupleElement29,TupleElement30,TupleElement31,TupleElement32,TupleElement33) as frame_support::traits::hooks::OnInitialize<BlockNumber>>::on_initialize
   8: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::initialize_block
   9: <astar_runtime::Runtime as moonbeam_rpc_primitives_debug::runtime_decl_for_debug_runtime_api::DebugRuntimeApiV5<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,()>,astar_runtime::RuntimeCall,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion<astar_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<astar_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<astar_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<astar_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<astar_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<astar_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<astar_runtime::Runtime>,frame_metadata_hash_extension::CheckMetadataHash<astar_runtime::Runtime>)>>>>::trace_block
  10: astar_runtime::api::dispatch
  11: environmental::using
  12: sc_executor::executor::WasmExecutor<H>::with_instance::{{closure}}
  13: sc_executor::wasm_runtime::RuntimeCache::with_instance
  14: <sc_executor::executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
  15: sp_state_machine::execution::StateMachine<B,H,Exec>::execute
  16: <sc_service::client::call_executor::LocalCallExecutor<Block,B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
  17: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  18: <astar_runtime::RuntimeApiImpl<__SrApiBlock__,RuntimeApiImplCall> as sp_consensus_aura::AuraApi<__SrApiBlock__,sp_consensus_aura::sr25519::app_sr25519::Public>>::__runtime_api_internal_call_api_at
  19: moonbeam_rpc_primitives_debug::DebugRuntimeApi::trace_block
  20: environmental::using
  21: moonbeam_rpc_debug::DebugHandler<B,C,BE>::handle_incoming_block
  22: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  23: tokio::runtime::task::core::Core<T,S>::poll
  24: tokio::runtime::task::harness::Harness<T,S>::poll
  25: tokio::runtime::blocking::pool::Inner::run
  26: std::sys_common::backtrace::__rust_begin_short_backtrace
  27: core::ops::function::FnOnce::call_once{{vtable.shim}}
  28: std::sys::pal::unix::thread::Thread::new::thread_start
  29: <unknown>
  30: __clone

Thread 'tokio-runtime-worker' panicked at 'Slot must increase', /home/ubuntu/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/5641e18/substrate/frame/aura/src/lib.rs:139

This is a bug. Please report it at:

        https://github.com/AstarNetwork/Astar/issues/new

After the crash, the sync process is stoped,

Zheaoli commented 2 months ago
2024-08-20 18:29:27 [Parachain] ⚙️  Syncing  0.0 bps, target=#6851232 (4 peers), best: #6851143 (0x5578…03fc), finalized #6851128 (0x4b64…8958), ⬇ 473.5kiB/s ⬆ 0.9kiB/s    
2024-08-20 18:29:27 [Parachain] 💔 Verification failed for block 0x1ba07b218c20aa12c23d74383ddeffca870550fad1d131b03228c34e5663d7dc received from (12D3KooWHV7fMvXDVCskRw6NGu2SNc6v9AQpJRmaFV2RZWgBoDNM): "Rejecting block 0x1ba07b218c20aa12c23d74383ddeffca870550fad1d131b03228c34e5663d7dc due to excessive equivocations at slot"    
2024-08-20 18:29:30 [Relaychain] Received finalized block via RPC: #22176651 (0xcb77…c4d8 -> 0xb33c…37a5)
2024-08-20 18:29:30 [Relaychain] Received imported block via RPC: #22176654 (0x0d4b…43ef -> 0x5bef…b84e)
2024-08-20 18:29:31 [Relaychain] Received imported block via RPC: #22176654 (0x0d4b…43ef -> 0x353e…7613)
2024-08-20 18:29:32 [Parachain] 💤 Idle (3 peers), best: #6851143 (0x5578…03fc), finalized #6851128 (0x4b64…8958), ⬇ 154.1kiB/s ⬆ 1.3kiB/s    
2024-08-20 18:29:36 [Relaychain] Received imported block via RPC: #22176655 (0x5bef…b84e -> 0x0442…941e)
2024-08-20 18:29:37 [Parachain] 💤 Idle (4 peers), best: #6851143 (0x5578…03fc), finalized #6851128 (0x4b64…8958), ⬇ 0.6kiB/s ⬆ 0.6kiB/s    
2024-08-20 18:29:37 [Relaychain] Sending fatal alert BadCertificate    
2024-08-20 18:29:42 [Parachain] 💤 Idle (3 peers), best: #6851143 (0x5578…03fc), finalized #6851128 (0x4b64…8958), ⬇ 0.4kiB/s ⬆ 0.3kiB/s    
2024-08-20 18:29:42 [Relaychain] Received finalized block via RPC: #22176653 (0xd6a3…2b19 -> 0x0d4b…43ef)
2024-08-20 18:29:43 [Relaychain] Received imported block via RPC: #22176656 (0x0442…941e -> 0x712c…327c)
2024-08-20 18:29:46 [Relaychain] Received finalized block via RPC: #22176654 (0x0d4b…43ef -> 0x5bef…b84e)
2024-08-20 18:29:47 [Parachain] 💤 Idle (3 peers), best: #6851143 (0x5578…03fc), finalized #6851128 (0x4b64…8958), ⬇ 0.2kiB/s ⬆ 0.2kiB/s    
2024-08-20 18:29:49 [Relaychain] Received imported block via RPC: #22176657 (0x712c…327c -> 0x5581…736e)
2024-08-20 18:29:52 [Parachain] 💤 Idle (3 peers), best: #6851143 (0x5578…03fc), finalized #6851128 (0x4b64…8958), ⬇ 0.6kiB/s ⬆ 0.7kiB/s    
2024-08-20 18:29:54 [Relaychain] Received finalized block via RPC: #22176655 (0x5bef…b84e -> 0x0442…941e)
2024-08-20 18:29:55 [Relaychain] Received imported block via RPC: #22176658 (0x5581…736e -> 0x725f…f5ae)
2024-08-20 18:29:55 [Parachain] 💔 Verification failed for block 0x1ba07b218c20aa12c23d74383ddeffca870550fad1d131b03228c34e5663d7dc received from (12D3KooWPJX9K5Ln3FcpbgjnUBsTR1rLCji3fywXfNEVwwkr9RMg): "Rejecting block 0x1ba07b218c20aa12c23d74383ddeffca870550fad1d131b03228c34e5663d7dc due to excessive equivocations at slot"    

https://github.com/AstarNetwork/Astar/compare/v5.42.0...v5.42.3#diff-c8f1131d6e9583df89b2194443dd58b6766e82a3005a8dd7562f59f224585b81L195

I'm not sure if this related with transaction_version update or not