moonbeam-foundation / moonbeam

An Ethereum-compatible smart contract parachain on Polkadot
https://moonbeam.network
GNU General Public License v3.0
919 stars 329 forks source link

Check Debug API & Trace Module #814

Closed air3ijai closed 2 years ago

air3ijai commented 2 years ago

Hello,

We configured our Moonbase Full node via docker compose image: purestake/moonbeam:v0.11.2 with the following keys:

    --ethapi=debug: enables the Geth debug API for the debug_traceTransaction RPC call
    --ethapi=trace: enables the OpenEthereum trace module for the trace_filter RPC call

Full list of keys from docker-compose.yml is the following:

command: --base-path=/data --chain=alphanet --name="Test (Parachain Full-Node)" --unsafe-rpc-external --rpc-cors=all --execution=wasm --wasm-execution=compiled --ethapi=trace --ethapi=debug --pruning=archive --state-cache-size=1 -- --name="PF (Embedded Relay)"

Node is in sync and now we are trying to test how it return the data. Based on the documentation we use and address and transaction from Block explorer:

Debug API - debug_traceTransaction call

Call

curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d \
  '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"debug_traceTransaction",
    "params": ["0x955ab601ce5072ce6c7163d89c6e3d9ddb62b11c428de2b760203598e6cb70c8"]
  }'

Error

{"jsonrpc":"2.0","error":{"code":-32603,"message":"Runtime api access error: Application(Execution(Other(\"Wasm execution trapped: called `Result::unwrap()` on an `Err` value: Error { cause: None, desc: \\\"Could not decode `EvmEvent`, variant doesn't exist\\\" }\\nwasm backtrace:\\n    0: 0xf782b - <unknown>!moonbeam_primitives_ext::moonbeam_ext::extern_host_function_impls::evm_event::hfa73dcfb0aa0d867\\n    1: 0xf711d - <unknown>!<moonbeam_evm_tracer::ListenerProxy<T> as evm::tracing::EventListener>::event::h5e4182a66a8dd234\\n    2: 0x130c9 - <unknown>!evm::tracing::Event::emit::h2d4ab108a73d6d2d\\n    3: 0x12ca8b - <unknown>!<pallet_evm::runner::stack::Runner<T> as pallet_evm::runner::Runner<T>>::call::h11da76a6ff5f1e71\\n    4: 0x1179b0 - <unknown>!pallet_ethereum::Module<T>::do_transact::he668447465057561\\n    5: 0xad3bc - <unknown>!<moonbase_runtime::Call as frame_support::traits::dispatch::UnfilteredDispatchable>::dispatch_bypass_filter::h64423f50dc979858\\n    6: 0xc62de - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPallets,COnRuntimeUpgrade>::apply_extrinsic::h99fd01d8fbf4124f\\n    7: 0x18bd07 - <unknown>!DebugRuntimeApi_trace_transaction\\nnote: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information\\n\")))"},"id":1}

Docker container logs

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

Version: 0.11.2-ae60d2a-x86_64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/panicking.rs:627:17
   2: std::panicking::begin_panic_handler::{{closure}}
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/panicking.rs:520:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/sys_common/backtrace.rs:141:18
   4: rust_begin_unwind
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/panicking.rs:516:5
   5: core::panicking::panic_fmt
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/core/src/panicking.rs:93:14
   6: core::result::unwrap_failed
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/core/src/result.rs:1599:5
   7: <&mut dyn sp_externalities::Externalities as moonbeam_primitives_ext::moonbeam_ext::MoonbeamExt>::evm_event_version_1
   8: sp_externalities::scope_limited::with_externalities
   9: tracing::span::Span::in_scope
  10: moonbeam_primitives_ext::moonbeam_ext::evm_event_version_1
  11: <<moonbeam_primitives_ext::moonbeam_ext::HostFunctions as sp_wasm_interface::HostFunctions>::host_functions::ExtMoonbeamExtEvmEventVersion1 as sp_wasm_interface::Function>::execute
  12: sc_executor_wasmtime::imports::call_static
  13: wasmtime::func::Func::invoke
  14: wasmtime::func::Func::new::{{closure}}
  15: wasmtime::trampoline::func::stub_fn
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: wasmtime_runtime::traphandlers::catch_traps::call_closure
  26: RegisterSetjmp
  27: wasmtime_runtime::traphandlers::catch_traps
  28: wasmtime::func::typed::TypedFunc<Params,Results>::call
  29: sc_executor_wasmtime::instance_wrapper::EntryPoint::call
  30: scoped_tls::ScopedKey<T>::set
  31: sc_executor_wasmtime::runtime::perform_call
  32: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call
  33: sc_executor_common::wasm_runtime::WasmInstance::call_export
  34: std::panicking::try
  35: std::thread::local::LocalKey<T>::with
  36: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
  37: sc_executor::wasm_runtime::RuntimeCache::with_instance
  38: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
  39: sp_state_machine::execution::StateMachine<B,H,N,Exec>::execute_aux
  40: sp_state_machine::execution::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
  41: <sc_service::client::call_executor::LocalCallExecutor<Block,B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
  42: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  43: moonbeam_rpc_primitives_debug::runtime_decl_for_DebugRuntimeApi::trace_transaction_call_api_at
  44: <moonbase_runtime::RuntimeApiImpl<__SR_API_BLOCK__,RuntimeApiImplCall> as moonbeam_rpc_primitives_debug::DebugRuntimeApi<__SR_API_BLOCK__>>::DebugRuntimeApi_trace_transaction_runtime_api_impl
  45: moonbeam_rpc_primitives_debug::DebugRuntimeApi::trace_transaction
  46: moonbeam_rpc_debug::DebugHandler<B,C,BE>::handle_request::{{closure}}
  47: std::thread::local::LocalKey<T>::with
  48: moonbeam_rpc_debug::DebugHandler<B,C,BE>::handle_request
  49: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  50: tokio::runtime::task::core::Core<T,S>::poll
  51: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  52: tokio::runtime::task::harness::Harness<T,S>::poll
  53: tokio::runtime::blocking::pool::Inner::run
  54: tokio::runtime::context::enter
  55: std::sys_common::backtrace::__rust_begin_short_backtrace
  56: core::ops::function::FnOnce::call_once{{vtable.shim}}
  57: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/alloc/src/boxed.rs:1572:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/alloc/src/boxed.rs:1572:9
      std::sys::unix::thread::Thread::new::thread_start
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/sys/unix/thread.rs:91:17
  58: start_thread
  59: clone

Thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Error { cause: None, desc: "Could not decode `EvmEvent`, variant doesn't exist" }', primitives/ext/src/lib.rs:64

This is a bug. Please report it at:

    https://github.com/PureStake/moonbeam/issues/new

Trace Module - trace_filter call

Call

curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d \
  '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"trace_filter", "params":[{"fromBlock":"0xB923E","toBlock":"0xB9289","toAddress":["0x9755F1eA7a6f6058dFc02F95Bc932C3c261c1f31"],"after":0,"count":20}]
  }'

Error

{"jsonrpc":"2.0","error":{"code":-32603,"message":"Failed to replay block. Error : Error { code: InternalError, message: \"Blockchain error when replaying block 758334 : Application(Execution(Other(\\\"Wasm execution trapped: called `Result::unwrap()` on an `Err` value: Error { cause: None, desc: \\\\\\\"Could not decode `EvmEvent`, variant doesn't exist\\\\\\\" }\\\\nwasm backtrace:\\\\n    0: 0xf782b - <unknown>!moonbeam_primitives_ext::moonbeam_ext::extern_host_function_impls::evm_event::hfa73dcfb0aa0d867\\\\n    1: 0xf711d - <unknown>!<moonbeam_evm_tracer::ListenerProxy<T> as evm::tracing::EventListener>::event::h5e4182a66a8dd234\\\\n    2: 0x130c9 - <unknown>!evm::tracing::Event::emit::h2d4ab108a73d6d2d\\\\n    3: 0x12ca8b - <unknown>!<pallet_evm::runner::stack::Runner<T> as pallet_evm::runner::Runner<T>>::call::h11da76a6ff5f1e71\\\\n    4: 0x1179b0 - <unknown>!pallet_ethereum::Module<T>::do_transact::he668447465057561\\\\n    5: 0xad3bc - <unknown>!<moonbase_runtime::Call as frame_support::traits::dispatch::UnfilteredDispatchable>::dispatch_bypass_filter::h64423f50dc979858\\\\n    6: 0xc62de - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPallets,COnRuntimeUpgrade>::apply_extrinsic::h99fd01d8fbf4124f\\\\n    7: 0x18d35f - <unknown>!DebugRuntimeApi_trace_block\\\\nnote: run with `WASMTIME_BACKTRACE_DETAILS=1` environment variable to display more information\\\\n\\\")))\", data: None }"},"id":1}

Docker container logs

2021-09-14 16:05:32 [🌗] A request asked a cached block (0xb6b1…3414), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x9fe8…021d), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x3162…e685), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xaf03…b2b9), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xf2e0…0358), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x01cf…d271), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x702f…9d64), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xed03…2c09), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xf874…1f7d), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xdefc…2fcb), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x6354…35e0), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xf5e9…a29c), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xdc3b…a093), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x57ab…9e77), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xf321…2fe8), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x12f6…e5ca), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xe2d2…3eb8), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x04c9…d3df), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0x27ed…3cfb), sending the traces directly.
2021-09-14 16:05:32 [🌗] A request asked a cached block (0xd3ab…38b9), sending the traces directly.
2021-09-14 16:05:33 Ran out of free WASM instances
2021-09-14 16:05:33 Ran out of free WASM instances
2021-09-14 16:05:33 Ran out of free WASM instances
2021-09-14 16:05:33 Ran out of free WASM instances
2021-09-14 16:05:35 [🌗] 💤 Idle (23 peers), best: #758415 (0xb461…6e96), finalized #758414 (0x05fa…039a), ⬇ 4.5kiB/s ⬆ 5.2kiB/s
2021-09-14 16:05:35 [Relaychain] 💤 Idle (36 peers), best: #1597742 (0xa81a…6dbe), finalized #1597739 (0x27d3…be32), ⬇ 8.8kiB/s ⬆ 8.0kiB/s
2021-09-14 16:05:36 [Relaychain] ✨ Imported #1597743 (0xba8c…f91e)
2021-09-14 16:05:40 [🌗] 💤 Idle (23 peers), best: #758416 (0x5fae…6bc5), finalized #758415 (0xb461…6e96), ⬇ 14.1kiB/s ⬆ 16.7kiB/s
2021-09-14 16:05:40 [Relaychain] 💤 Idle (36 peers), best: #1597743 (0xba8c…f91e), finalized #1597741 (0x869b…f522), ⬇ 14.5kiB/s ⬆ 13.9kiB/s
2021-09-14 16:05:42 [Relaychain] ✨ Imported #1597744 (0x7d3b…689c)
2021-09-14 16:05:43 [🌗] ✨ Imported #758417 (0x52fd…4b9e)
2021-09-14 16:05:44 [🌗] ✨ Imported #758417 (0xae9e…723a)
2021-09-14 16:05:45 [🌗] 💤 Idle (23 peers), best: #758416 (0x5fae…6bc5), finalized #758415 (0xb461…6e96), ⬇ 42.7kiB/s ⬆ 7.6kiB/s
2021-09-14 16:05:45 [Relaychain] 💤 Idle (36 peers), best: #1597744 (0x7d3b…689c), finalized #1597741 (0x869b…f522), ⬇ 6.1kiB/s ⬆ 2.8kiB/s
2021-09-14 16:05:48 [Relaychain] ✨ Imported #1597745 (0x6a94…92b9)
2021-09-14 16:05:50 [🌗] 💤 Idle (23 peers), best: #758416 (0x5fae…6bc5), finalized #758415 (0xb461…6e96), ⬇ 4.8kiB/s ⬆ 6.5kiB/s
2021-09-14 16:05:50 [Relaychain] 💤 Idle (36 peers), best: #1597745 (0x6a94…92b9), finalized #1597742 (0xa81a…6dbe), ⬇ 8.2kiB/s ⬆ 230.6kiB/s
2021-09-14 16:05:54 [Relaychain] ✨ Imported #1597746 (0x3cfc…851c)
2021-09-14 16:05:55 [🌗] 💤 Idle (23 peers), best: #758417 (0x52fd…4b9e), finalized #758416 (0x5fae…6bc5), ⬇ 3.4kiB/s ⬆ 4.8kiB/s
2021-09-14 16:05:55 [Relaychain] 💤 Idle (36 peers), best: #1597746 (0x3cfc…851c), finalized #1597743 (0xba8c…f91e), ⬇ 11.2kiB/s ⬆ 12.1kiB/s
2021-09-14 16:05:55 [🌗] ✨ Imported #758418 (0x5599…7a11)
2021-09-14 16:05:55 [🌗] ✨ Imported #758418 (0xd49b…ee65)
2021-09-14 16:05:55 [🌗] ✨ Imported #758418 (0x472b…df9e)
2021-09-14 16:06:00 [🌗] 💤 Idle (23 peers), best: #758417 (0x52fd…4b9e), finalized #758416 (0x5fae…6bc5), ⬇ 48.3kiB/s ⬆ 10.7kiB/s
2021-09-14 16:06:00 [Relaychain] 💤 Idle (37 peers), best: #1597746 (0x3cfc…851c), finalized #1597744 (0x7d3b…689c), ⬇ 6.3kiB/s ⬆ 28.4kiB/s
2021-09-14 16:06:00 [Relaychain] ✨ Imported #1597747 (0xb761…6d08)
2021-09-14 16:06:05 [🌗] 💤 Idle (23 peers), best: #758417 (0x52fd…4b9e), finalized #758416 (0x5fae…6bc5), ⬇ 1.8kiB/s ⬆ 2.3kiB/s
2021-09-14 16:06:05 [Relaychain] 💤 Idle (37 peers), best: #1597747 (0xb761…6d08), finalized #1597745 (0x6a94…92b9), ⬇ 15.8kiB/s ⬆ 12.2kiB/s
2021-09-14 16:06:06 [Relaychain] ✨ Imported #1597748 (0xde19…b75b)
2021-09-14 16:06:06 [Relaychain] ✨ Imported #1597748 (0xfb35…4df9)
2021-09-14 16:06:06 [🌗] ✨ Imported #758419 (0xda8e…e5f5)
2021-09-14 16:06:07 [🌗] ✨ Imported #758419 (0xf0af…4da7)
2021-09-14 16:06:07 [🌗] ✨ Imported #758419 (0x6879…fea6)
2021-09-14 16:06:07 [🌗] ✨ Imported #758419 (0xf636…fc3f)
2021-09-14 16:06:07 [🌗] ✨ Imported #758419 (0x2a7e…b338)
2021-09-14 16:06:10 [🌗] 💤 Idle (23 peers), best: #758418 (0x5599…7a11), finalized #758416 (0x5fae…6bc5), ⬇ 42.2kiB/s ⬆ 14.4kiB/s
2021-09-14 16:06:10 [Relaychain] 💤 Idle (37 peers), best: #1597748 (0xde19…b75b), finalized #1597745 (0x6a94…92b9), ⬇ 22.3kiB/s ⬆ 14.9kiB/s
2021-09-14 16:06:12 [Relaychain] ✨ Imported #1597749 (0x4fcf…940b)
2021-09-14 16:06:12 [Relaychain] ♻️  Reorg on #1597749,0x4fcf…940b to #1597749,0x59bf…dc39, common ancestor #1597748,0xde19…b75b
2021-09-14 16:06:12 [Relaychain] ✨ Imported #1597749 (0x59bf…dc39)
2021-09-14 16:06:15 [🌗] 💤 Idle (23 peers), best: #758418 (0x5599…7a11), finalized #758417 (0x52fd…4b9e), ⬇ 4.3kiB/s ⬆ 6.6kiB/s
2021-09-14 16:06:15 [Relaychain] 💤 Idle (37 peers), best: #1597749 (0x59bf…dc39), finalized #1597746 (0x3cfc…851c), ⬇ 28.0kiB/s ⬆ 12.6kiB/s
2021-09-14 16:06:18 [Relaychain] ✨ Imported #1597750 (0x2d3a…75ed)
2021-09-14 16:06:19 [🌗] ✨ Imported #758420 (0xbd3b…6d3b)
2021-09-14 16:06:19 [🌗] ✨ Imported #758420 (0xb182…0ef7)
2021-09-14 16:06:20 [🌗] 💤 Idle (23 peers), best: #758419 (0xf0af…4da7), finalized #758417 (0x52fd…4b9e), ⬇ 36.6kiB/s ⬆ 17.8kiB/s
2021-09-14 16:06:20 [Relaychain] 💤 Idle (37 peers), best: #1597750 (0x2d3a…75ed), finalized #1597747 (0xb761…6d08), ⬇ 7.6kiB/s ⬆ 11.0kiB/s
2021-09-14 16:06:20 [🌗] ✨ Imported #758420 (0xc15d…76ca)
2021-09-14 16:06:24 [Relaychain] ✨ Imported #1597751 (0x138b…03ee)
2021-09-14 16:06:24 [Relaychain] ♻️  Reorg on #1597751,0x138b…03ee to #1597751,0x8913…81e8, common ancestor #1597750,0x2d3a…75ed
2021-09-14 16:06:24 [Relaychain] ✨ Imported #1597751 (0x8913…81e8)
2021-09-14 16:06:25 [🌗] 💤 Idle (23 peers), best: #758419 (0xf0af…4da7), finalized #758418 (0x5599…7a11), ⬇ 17.7kiB/s ⬆ 8.1kiB/s
2021-09-14 16:06:25 [Relaychain] 💤 Idle (37 peers), best: #1597751 (0x8913…81e8), finalized #1597748 (0xde19…b75b), ⬇ 27.7kiB/s ⬆ 10.1kiB/s
2021-09-14 16:06:30 [🌗] 💤 Idle (24 peers), best: #758419 (0xf0af…4da7), finalized #758418 (0x5599…7a11), ⬇ 1.2kiB/s ⬆ 1.3kiB/s
2021-09-14 16:06:30 [Relaychain] ✨ Imported #1597752 (0x563b…ad2d)
2021-09-14 16:06:30 [Relaychain] 💤 Idle (37 peers), best: #1597752 (0x563b…ad2d), finalized #1597749 (0x59bf…dc39), ⬇ 4.3kiB/s ⬆ 8.5kiB/s
2021-09-14 16:06:31 [🌗] ✨ Imported #758421 (0x20e2…d19d)
2021-09-14 16:06:31 [🌗] ✨ Imported #758421 (0x7db8…8eee)
2021-09-14 16:06:35 [🌗] 💤 Idle (24 peers), best: #758420 (0xbd3b…6d3b), finalized #758419 (0xf0af…4da7), ⬇ 21.3kiB/s ⬆ 6.7kiB/s
2021-09-14 16:06:35 [Relaychain] 💤 Idle (37 peers), best: #1597752 (0x563b…ad2d), finalized #1597750 (0x2d3a…75ed), ⬇ 9.9kiB/s ⬆ 6.9kiB/s
2021-09-14 16:06:36 [Relaychain] ✨ Imported #1597753 (0x34ac…cf88)
2021-09-14 16:06:40 [🌗] 💤 Idle (25 peers), best: #758420 (0xbd3b…6d3b), finalized #758419 (0xf0af…4da7), ⬇ 6.2kiB/s ⬆ 8.3kiB/s
2021-09-14 16:06:40 [Relaychain] 💤 Idle (37 peers), best: #1597753 (0x34ac…cf88), finalized #1597750 (0x2d3a…75ed), ⬇ 10.1kiB/s ⬆ 6.9kiB/s
2021-09-14 16:06:42 [Relaychain] ✨ Imported #1597754 (0x9f8c…4492)
2021-09-14 16:06:43 [🌗] ✨ Imported #758422 (0x98fb…c6a1)
2021-09-14 16:06:45 [🌗] 💤 Idle (25 peers), best: #758421 (0x7db8…8eee), finalized #758420 (0xbd3b…6d3b), ⬇ 8.5kiB/s ⬆ 2.9kiB/s
2021-09-14 16:06:45 [Relaychain] 💤 Idle (37 peers), best: #1597754 (0x9f8c…4492), finalized #1597752 (0x563b…ad2d), ⬇ 10.1kiB/s ⬆ 11.2kiB/s
2021-09-14 16:06:48 [Relaychain] ✨ Imported #1597755 (0xc280…7b0c)
2021-09-14 16:06:50 [🌗] 💤 Idle (26 peers), best: #758421 (0x7db8…8eee), finalized #758420 (0xbd3b…6d3b), ⬇ 5.2kiB/s ⬆ 5.6kiB/s
2021-09-14 16:06:50 [Relaychain] 💤 Idle (37 peers), best: #1597755 (0xc280…7b0c), finalized #1597752 (0x563b…ad2d), ⬇ 8.9kiB/s ⬆ 9.0kiB/s
2021-09-14 16:06:54 [Relaychain] ✨ Imported #1597756 (0xc250…40f5)
2021-09-14 16:06:55 [🌗] 💤 Idle (25 peers), best: #758422 (0x98fb…c6a1), finalized #758420 (0xbd3b…6d3b), ⬇ 4.9kiB/s ⬆ 5.6kiB/s
2021-09-14 16:06:55 [Relaychain] 💤 Idle (37 peers), best: #1597756 (0xc250…40f5), finalized #1597753 (0x34ac…cf88), ⬇ 11.2kiB/s ⬆ 27.3kiB/s
2021-09-14 16:06:55 [🌗] ✨ Imported #758423 (0x11be…d11e)
2021-09-14 16:07:00 [🌗] 💤 Idle (25 peers), best: #758422 (0x98fb…c6a1), finalized #758421 (0x7db8…8eee), ⬇ 15.6kiB/s ⬆ 11.3kiB/s
2021-09-14 16:07:00 [Relaychain] 💤 Idle (37 peers), best: #1597756 (0xc250…40f5), finalized #1597754 (0x9f8c…4492), ⬇ 8.9kiB/s ⬆ 23.2kiB/s
2021-09-14 16:07:00 [Relaychain] ✨ Imported #1597757 (0xd141…cf06)
2021-09-14 16:07:05 [🌗] 💤 Idle (25 peers), best: #758422 (0x98fb…c6a1), finalized #758421 (0x7db8…8eee), ⬇ 5.2kiB/s ⬆ 6.2kiB/s
2021-09-14 16:07:05 [Relaychain] 💤 Idle (37 peers), best: #1597757 (0xd141…cf06), finalized #1597755 (0xc280…7b0c), ⬇ 14.5kiB/s ⬆ 10.3kiB/s
2021-09-14 16:07:06 [Relaychain] ✨ Imported #1597758 (0x8c39…9cc2)
2021-09-14 16:07:07 [🌗] ✨ Imported #758424 (0xa30c…e527)
2021-09-14 16:07:08 [🌗] ✨ Imported #758424 (0xe679…442b)
2021-09-14 16:07:08 [🌗] ✨ Imported #758424 (0xf473…0281)
2021-09-14 16:07:10 [🌗] 💤 Idle (25 peers), best: #758423 (0x11be…d11e), finalized #758422 (0x98fb…c6a1), ⬇ 33.2kiB/s ⬆ 15.5kiB/s
2021-09-14 16:07:10 [Relaychain] 💤 Idle (37 peers), best: #1597758 (0x8c39…9cc2), finalized #1597756 (0xc250…40f5), ⬇ 13.9kiB/s ⬆ 32.3kiB/s
2021-09-14 16:07:12 [Relaychain] ✨ Imported #1597759 (0xd5f9…61e9)
2021-09-14 16:07:12 [Relaychain] ✨ Imported #1597759 (0xc704…7283)
2021-09-14 16:07:15 [🌗] 💤 Idle (25 peers), best: #758423 (0x11be…d11e), finalized #758422 (0x98fb…c6a1), ⬇ 9.4kiB/s ⬆ 10.0kiB/s
2021-09-14 16:07:15 [Relaychain] 💤 Idle (37 peers), best: #1597759 (0xd5f9…61e9), finalized #1597756 (0xc250…40f5), ⬇ 31.7kiB/s ⬆ 16.1kiB/s
2021-09-14 16:07:18 [Relaychain] ✨ Imported #1597760 (0x0a63…dcbb)
2021-09-14 16:07:18 [Relaychain] ♻️  Reorg on #1597760,0x0a63…dcbb to #1597760,0x8c32…0baf, common ancestor #1597759,0xd5f9…61e9
2021-09-14 16:07:18 [Relaychain] ✨ Imported #1597760 (0x8c32…0baf)
2021-09-14 16:07:20 [🌗] 💤 Idle (26 peers), best: #758424 (0xa30c…e527), finalized #758422 (0x98fb…c6a1), ⬇ 7.8kiB/s ⬆ 11.8kiB/s
2021-09-14 16:07:20 [Relaychain] 💤 Idle (37 peers), best: #1597760 (0x8c32…0baf), finalized #1597757 (0xd141…cf06), ⬇ 19.0kiB/s ⬆ 13.3kiB/s
2021-09-14 16:07:24 [Relaychain] ✨ Imported #1597761 (0x6136…144e)
2021-09-14 16:07:24 [Relaychain] ♻️  Reorg on #1597761,0x6136…144e to #1597761,0x02ae…47f3, common ancestor #1597760,0x8c32…0baf
2021-09-14 16:07:24 [Relaychain] ✨ Imported #1597761 (0x02ae…47f3)
2021-09-14 16:07:25 [🌗] 💤 Idle (26 peers), best: #758424 (0xa30c…e527), finalized #758423 (0x11be…d11e), ⬇ 14.0kiB/s ⬆ 306.7kiB/s
2021-09-14 16:07:25 [🌗] ✨ Imported #758425 (0x0adb…8c74)
2021-09-14 16:07:25 [Relaychain] 💤 Idle (37 peers), best: #1597761 (0x02ae…47f3), finalized #1597758 (0x8c39…9cc2), ⬇ 19.4kiB/s ⬆ 10.2kiB/s
2021-09-14 16:07:25 [🌗] ✨ Imported #758425 (0x5691…f1de)
2021-09-14 16:07:30 [🌗] 💤 Idle (25 peers), best: #758424 (0xa30c…e527), finalized #758423 (0x11be…d11e), ⬇ 33.9kiB/s ⬆ 8.6kiB/s
2021-09-14 16:07:30 [Relaychain] 💤 Idle (36 peers), best: #1597761 (0x02ae…47f3), finalized #1597759 (0xd5f9…61e9), ⬇ 10.1kiB/s ⬆ 11.0kiB/s
2021-09-14 16:07:30 [Relaychain] ✨ Imported #1597762 (0x2c45…c324)
2021-09-14 16:07:35 [🌗] 💤 Idle (25 peers), best: #758424 (0xa30c…e527), finalized #758424 (0xa30c…e527), ⬇ 5.0kiB/s ⬆ 5.4kiB/s
2021-09-14 16:07:35 [Relaychain] 💤 Idle (36 peers), best: #1597762 (0x2c45…c324), finalized #1597760 (0x8c32…0baf), ⬇ 7.8kiB/s ⬆ 9.2kiB/s
2021-09-14 16:07:36 [Relaychain] ✨ Imported #1597763 (0x126c…712f)
2021-09-14 16:07:37 [🌗] ✨ Imported #758426 (0x891e…e143)
2021-09-14 16:07:37 [🌗] ✨ Imported #758426 (0xc116…6e62)
2021-09-14 16:07:40 [🌗] 💤 Idle (25 peers), best: #758425 (0x0adb…8c74), finalized #758424 (0xa30c…e527), ⬇ 33.7kiB/s ⬆ 10.0kiB/s
2021-09-14 16:07:40 [Relaychain] 💤 Idle (36 peers), best: #1597763 (0x126c…712f), finalized #1597760 (0x8c32…0baf), ⬇ 6.9kiB/s ⬆ 11.0kiB/s
2021-09-14 16:07:41 [Relaychain] 🔍 Discovered new external address for our node: /ip4/10.2.14.59/tcp/30334/ws/p2p/12D3KooWRY8Ajr48DyPXEzY4ZjFoxTNNV71FnFWb4BGjktBE9buJ
2021-09-14 16:07:42 [Relaychain] ✨ Imported #1597764 (0xf8dc…f694)
2021-09-14 16:07:42 [Relaychain] ♻️  Reorg on #1597764,0xf8dc…f694 to #1597764,0xe08b…a89f, common ancestor #1597763,0x126c…712f
2021-09-14 16:07:42 [Relaychain] ✨ Imported #1597764 (0xe08b…a89f)
2021-09-14 16:07:44 [🌗] A request asked a pooled block (0x0024…dd2a), adding it to the list of waiting requests.
2021-09-14 16:07:44 Ran out of free WASM instances
2021-09-14 16:07:44 Ran out of free WASM instances
2021-09-14 16:07:45 Ran out of free WASM instances
2021-09-14 16:07:45 Ran out of free WASM instances
2021-09-14 16:07:45 Ran out of free WASM instances
2021-09-14 16:07:45 [🌗] 💤 Idle (25 peers), best: #758425 (0x0adb…8c74), finalized #758424 (0xa30c…e527), ⬇ 2.5kiB/s ⬆ 1.7kiB/s
2021-09-14 16:07:45 Ran out of free WASM instances
2021-09-14 16:07:45 Ran out of free WASM instances
2021-09-14 16:07:45 [Relaychain] 💤 Idle (37 peers), best: #1597764 (0xe08b…a89f), finalized #1597761 (0x02ae…47f3), ⬇ 29.4kiB/s ⬆ 11.4kiB/s

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

Version: 0.11.2-ae60d2a-x86_64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/panicking.rs:627:17
   2: std::panicking::begin_panic_handler::{{closure}}
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/panicking.rs:520:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/sys_common/backtrace.rs:141:18
   4: rust_begin_unwind
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/panicking.rs:516:5
   5: core::panicking::panic_fmt
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/core/src/panicking.rs:93:14
   6: core::result::unwrap_failed
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/core/src/result.rs:1599:5
   7: <&mut dyn sp_externalities::Externalities as moonbeam_primitives_ext::moonbeam_ext::MoonbeamExt>::evm_event_version_1
   8: sp_externalities::scope_limited::with_externalities
   9: tracing::span::Span::in_scope
  10: moonbeam_primitives_ext::moonbeam_ext::evm_event_version_1
  11: <<moonbeam_primitives_ext::moonbeam_ext::HostFunctions as sp_wasm_interface::HostFunctions>::host_functions::ExtMoonbeamExtEvmEventVersion1 as sp_wasm_interface::Function>::execute
  12: sc_executor_wasmtime::imports::call_static
  13: wasmtime::func::Func::invoke
  14: wasmtime::func::Func::new::{{closure}}
  15: wasmtime::trampoline::func::stub_fn
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: wasmtime_runtime::traphandlers::catch_traps::call_closure
  26: RegisterSetjmp
  27: wasmtime_runtime::traphandlers::catch_traps
  28: wasmtime::func::typed::TypedFunc<Params,Results>::call
  29: sc_executor_wasmtime::instance_wrapper::EntryPoint::call
  30: scoped_tls::ScopedKey<T>::set
  31: sc_executor_wasmtime::runtime::perform_call
  32: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call
  33: sc_executor_common::wasm_runtime::WasmInstance::call_export
  34: std::panicking::try
  35: std::thread::local::LocalKey<T>::with
  36: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
  37: sc_executor::wasm_runtime::RuntimeCache::with_instance
  38: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
  39: sp_state_machine::execution::StateMachine<B,H,N,Exec>::execute_aux
  40: sp_state_machine::execution::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
  41: <sc_service::client::call_executor::LocalCallExecutor<Block,B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
  42: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  43: moonbeam_rpc_primitives_debug::runtime_decl_for_DebugRuntimeApi::trace_block_call_api_at
  44: <moonbase_runtime::RuntimeApiImpl<__SR_API_BLOCK__,RuntimeApiImplCall> as moonbeam_rpc_primitives_debug::DebugRuntimeApi<__SR_API_BLOCK__>>::DebugRuntimeApi_trace_block_runtime_api_impl
  45: moonbeam_rpc_primitives_debug::DebugRuntimeApi::trace_block
  46: moonbeam_rpc_trace::CacheTask<B,C,BE>::cache_block::{{closure}}
  47: std::thread::local::LocalKey<T>::with
  48: moonbeam_rpc_trace::CacheTask<B,C,BE>::cache_block
  49: tokio::runtime::task::core::Core<T,S>::poll
  50: std::panicking::try
  51: tokio::runtime::task::harness::Harness<T,S>::poll
  52: tokio::runtime::blocking::pool::Inner::run
  53: tokio::runtime::context::enter
  54: std::sys_common::backtrace::__rust_begin_short_backtrace
  55: core::ops::function::FnOnce::call_once{{vtable.shim}}
  56: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/alloc/src/boxed.rs:1572:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/alloc/src/boxed.rs:1572:9
      std::sys::unix::thread::Thread::new::thread_start
             at rustc/4e282795d7d1d28a4c6c1c6521045ae2b59f3519/library/std/src/sys/unix/thread.rs:91:17
  57: start_thread
  58: clone

Thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Error { cause: None, desc: "Could not decode `EvmEvent`, variant doesn't exist" }', primitives/ext/src/lib.rs:64

This is a bug. Please report it at:

    https://github.com/PureStake/moonbeam/issues/new

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

Our questions are following

  1. Did we configure Debug API & Trace Module correctly?
  2. Do we use a correct way to test Debug API & Trace Module?
  3. If all is configured correctly - it is a bug?
  4. How can we solve this?

Thank you!

purestaketdb commented 2 years ago

Resolution in runtime 700 upgrade, Moonbase Alpha patch for Thursday 9/16, Moonriver after a bake in period, early week following. Blocker for UI only.