AstarNetwork / Astar

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

The plasm-node process is stopped when it connects other peers #235

Closed mojikimino closed 3 years ago

mojikimino commented 4 years ago

Hi Plasm network developers. When I start the dusty network node in ubuntu, the process stops with the following error. Is it my configuration issue or the software issue (e.g., rust)? Let me know if you have any solutions? Thank you.

ubuntu@ubuntu:~/Desktop$ plasm-node --rpc-cors all 
2020-10-01 11:07:41.479 main WARN sc_network::config  🙇 You are using the peer ID QmTFWr36gcQ5aRUQCuAFSUdaoBid4ChfHaKdiYwa6hUyLw. This peer ID uses a legacy, deprecated representation that will no longer be supported in the future. Please refresh it by performing a RPC query to the appropriate node, by looking at its logs, or by using `subkey inspect-node-key` on its private key.
2020-10-01 11:07:41.479 main WARN sc_network::config  🙇 You are using the peer ID QmWKdqqaKr3pWujhbv5CvNPLry7WqHXouSYUZDvfusNFWp. This peer ID uses a legacy, deprecated representation that will no longer be supported in the future. Please refresh it by performing a RPC query to the appropriate node, by looking at its logs, or by using `subkey inspect-node-key` on its private key.
2020-10-01 11:07:41.479 main WARN sc_network::config  🙇 You are using the peer ID QmXELPiGCywBdgtQRewie5VEpxgxbWFDm6rk87YmrTkBet. This peer ID uses a legacy, deprecated representation that will no longer be supported in the future. Please refresh it by performing a RPC query to the appropriate node, by looking at its logs, or by using `subkey inspect-node-key` on its private key.
2020-10-01 11:07:41.479 main WARN sc_network::config  🙇 You are using the peer ID QmRCJbRdkJv8gGQcUZrUYnhQLB9EavEo1LEnr52xiXqqqs. This peer ID uses a legacy, deprecated representation that will no longer be supported in the future. Please refresh it by performing a RPC query to the appropriate node, by looking at its logs, or by using `subkey inspect-node-key` on its private key.
2020-10-01 11:07:41.479 main WARN sc_network::config  🙇 You are using the peer ID QmS2hSkyLWWopScxJ3BWhnMGELX6BNHL43YCGtSZi5u7De. This peer ID uses a legacy, deprecated representation that will no longer be supported in the future. Please refresh it by performing a RPC query to the appropriate node, by looking at its logs, or by using `subkey inspect-node-key` on its private key.
2020-10-01 11:07:41.485 main INFO sc_cli::runner  Plasm Node
2020-10-01 11:07:41.485 main INFO sc_cli::runner  ✌️  version 1.5.0-4f41ba2-aarch64-linux-gnu
2020-10-01 11:07:41.485 main INFO sc_cli::runner  ❤️  by Stake Technologies <devops@stake.co.jp>, 2019-2020
2020-10-01 11:07:41.485 main INFO sc_cli::runner  📋 Chain specification: Dusty
2020-10-01 11:07:41.485 main INFO sc_cli::runner  🏷  Node name: caring-beginner-6917
2020-10-01 11:07:41.485 main INFO sc_cli::runner  👤 Role: FULL
2020-10-01 11:07:41.485 main INFO sc_cli::runner  💾 Database: RocksDb at /home/ubuntu/.local/share/plasm-node/chains/dusty3/db
2020-10-01 11:07:41.485 main INFO sc_cli::runner  ⛓  Native runtime: dusty3-3 (staketechnologies-plasm-3.tx1.au2)
2020-10-01 11:07:41.844 main INFO sub-libp2p  🏷  Local node identity is: 12D3KooWD1xiwxnbKSKAmczLmZiG2baRRMJpAFUpcmA5CznBvhtM (legacy representation: QmTTL2543Me2VXAQiaSTZYJFNrkSAC37XtgNverQh4zqpy)
2020-10-01 11:07:41.854 main INFO sc_service::builder  📦 Highest known block at #269755
2020-10-01 11:07:41.854 tokio-runtime-worker INFO substrate_prometheus_endpoint::known_os  〽️ Prometheus server started at 127.0.0.1:9615
2020-10-01 11:07:45.421 tokio-runtime-worker INFO sub-libp2p  🔍 Discovered new external address for our node: /ip4/153.246.136.252/tcp/30333/p2p/12D3KooWD1xiwxnbKSKAmczLmZiG2baRRMJpAFUpcmA5CznBvhtM
2020-10-01 11:07:46.868 tokio-runtime-worker INFO substrate  💤 Idle (0 peers), best: #269755 (0x6de2…e016), finalized #269313 (0x859c…e281), ⬇ 5.8kiB/s ⬆ 3.2kiB/s
2020-10-01 11:07:51.870 tokio-runtime-worker INFO substrate  💤 Idle (0 peers), best: #269755 (0x6de2…e016), finalized #269313 (0x859c…e281), ⬇ 2.9kiB/s ⬆ 2.7kiB/s
2020-10-01 11:07:56.871 tokio-runtime-worker INFO substrate  💤 Idle (0 peers), best: #269755 (0x6de2…e016), finalized #269313 (0x859c…e281), ⬇ 5.3kiB/s ⬆ 3.0kiB/s
2020-10-01 11:08:01.873 tokio-runtime-worker INFO substrate  💤 Idle (0 peers), best: #269755 (0x6de2…e016), finalized #269313 (0x859c…e281), ⬇ 4.8kiB/s ⬆ 2.8kiB/s
2020-10-01 11:08:06.875 tokio-runtime-worker INFO substrate  ⚙️  Syncing  0.0 bps, target=#552315 (1 peers), best: #269755 (0x6de2…e016), finalized #269313 (0x859c…e281), ⬇ 6.6kiB/s ⬆ 4.7kiB/s

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

Version: 1.5.0-4f41ba2-aarch64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/panicking.rs:581
   2: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/panicking.rs:484
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/sys_common/backtrace.rs:153
   4: rust_begin_unwind
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/panicking.rs:483
   5: core::panicking::panic_fmt
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/core/src/panicking.rs:85
   6: core::panicking::panic
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/core/src/panicking.rs:50
   7: generic_array::ArrayBuilder<T,N>::new
   8: <pallet_plasm_lockdrop::Call<T> as frame_support::traits::UnfilteredDispatchable>::dispatch_bypass_filter
   9: <plasm_runtime::Call as frame_support::traits::UnfilteredDispatchable>::dispatch_bypass_filter
  10: <plasm_runtime::Call as sp_runtime::traits::Dispatchable>::dispatch
  11: <sp_runtime::generic::checked_extrinsic::CheckedExtrinsic<AccountId,Call,Extra> as sp_runtime::traits::Applyable>::apply
  12: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::apply_extrinsic_with_len
  13: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block
  14: <plasm_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<<pallet_indices::Module<plasm_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,plasm_runtime::Call,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion<plasm_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<plasm_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<plasm_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<plasm_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<plasm_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<plasm_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<plasm_runtime::Runtime>)>>>>::execute_block
  15: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}
  16: std::thread::local::LocalKey<T>::with
  17: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
  18: sc_executor::wasm_runtime::RuntimeCache::with_instance
  19: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
  20: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux
  21: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
  22: <sc_service::client::call_executor::LocalCallExecutor<B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
  23: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  24: sp_api::runtime_decl_for_Core::execute_block_call_api_at
  25: sp_api::Core::execute_block_with_context
  26: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block
  27: <sc_finality_grandpa::import::GrandpaBlockImport<BE,Block,Client,SC> as sp_consensus::block_import::BlockImport<Block>>::import_block
  28: <sc_consensus_babe::BabeBlockImport<Block,Client,Inner> as sp_consensus::block_import::BlockImport<Block>>::import_block
  29: sp_consensus::import_queue::import_single_block_metered
  30: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  31: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
  32: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
  33: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  34: <sc_service::task_manager::prometheus_future::PrometheusFuture<T> as core::future::future::Future>::poll
  35: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
  36: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  37: std::thread::local::LocalKey<T>::with
  38: futures_executor::local_pool::block_on
  39: tokio::runtime::task::core::Core<T,S>::poll
  40: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  41: tokio::runtime::task::harness::Harness<T,S>::poll
  42: tokio::runtime::blocking::pool::Inner::run
  43: tokio::runtime::context::enter
  44: std::sys_common::backtrace::__rust_begin_short_backtrace
  45: core::ops::function::FnOnce::call_once{{vtable.shim}}
  46: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/alloc/src/boxed.rs:1042
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/alloc/src/boxed.rs:1042
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/sys/unix/thread.rs:87
  47: start_thread
  48: <unknown>

Thread 'tokio-runtime-worker' panicked at 'attempted to leave type `generic_array::GenericArray<median::stack::ListNode<u128>, pallet_plasm_lockdrop::typenum::UInt<pallet_plasm_lockdrop::typenum::UInt<pallet_plasm_lockdrop::typenum::UInt<pallet_plasm_lockdrop::typenum::UTerm, pallet_plasm_lockdrop::typenum::B1>, pallet_plasm_lockdrop::typenum::B0>, pallet_plasm_lockdrop::typenum::B1>>` uninitialized, which is invalid', /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/core/src/mem/mod.rs:658

This is a bug. Please report it at:

    https://github.com/staketechnologies/plasm/issues/new

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

Version: 1.5.0-4f41ba2-aarch64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/panicking.rs:581
   2: std::panicking::begin_panic::{{closure}}
   3: std::sys_common::backtrace::__rust_end_short_backtrace
   4: std::panicking::begin_panic
   5: <sp_runtime::SignatureBatching as core::ops::drop::Drop>::drop
   6: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block
   7: <plasm_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<<pallet_indices::Module<plasm_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,plasm_runtime::Call,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion<plasm_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<plasm_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<plasm_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<plasm_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<plasm_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<plasm_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<plasm_runtime::Runtime>)>>>>::execute_block
   8: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}
   9: std::thread::local::LocalKey<T>::with
  10: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
  11: sc_executor::wasm_runtime::RuntimeCache::with_instance
  12: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
  13: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux
  14: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
  15: <sc_service::client::call_executor::LocalCallExecutor<B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
  16: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  17: sp_api::runtime_decl_for_Core::execute_block_call_api_at
  18: sp_api::Core::execute_block_with_context
  19: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block
  20: <sc_finality_grandpa::import::GrandpaBlockImport<BE,Block,Client,SC> as sp_consensus::block_import::BlockImport<Block>>::import_block
  21: <sc_consensus_babe::BabeBlockImport<Block,Client,Inner> as sp_consensus::block_import::BlockImport<Block>>::import_block
  22: sp_consensus::import_queue::import_single_block_metered
  23: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  24: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
  25: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
  26: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  27: <sc_service::task_manager::prometheus_future::PrometheusFuture<T> as core::future::future::Future>::poll
  28: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
  29: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  30: std::thread::local::LocalKey<T>::with
  31: futures_executor::local_pool::block_on
  32: tokio::runtime::task::core::Core<T,S>::poll
  33: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  34: tokio::runtime::task::harness::Harness<T,S>::poll
  35: tokio::runtime::blocking::pool::Inner::run
  36: tokio::runtime::context::enter
  37: std::sys_common::backtrace::__rust_begin_short_backtrace
  38: core::ops::function::FnOnce::call_once{{vtable.shim}}
  39: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/alloc/src/boxed.rs:1042
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/alloc/src/boxed.rs:1042
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/381b445ff5751f9f39ec672b623372dff09c276e/library/std/src/sys/unix/thread.rs:87
  40: start_thread
  41: <unknown>

Thread 'tokio-runtime-worker' panicked at 'Signature verification has not been called before `SignatureBatching::drop`', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-runtime-2.0.0-rc6/src/lib.rs:799

This is a bug. Please report it at:

    https://github.com/staketechnologies/plasm/issues/new

thread panicked while panicking. aborting.
Trace/breakpoint trap (core dumped)
akru commented 4 years ago

Hi @mojikimino, Thank you for report! Arm64 isn’t officially supported architecture. I’ll review it a bit later.

You also can try to sync in wasm mode, —execution wasm flag, it should works but take a bit of time.

akru commented 3 years ago

Should be fixed in 1.7.0 feel free to reopen it if happens again.