Skip to content

start benchmark test failed. #215

@cuiweixie

Description

@cuiweixie

Describe the bug

cat > start_dev_node.sh <<'EOF'
#!/bin/bash
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[0;33m'; NC='\033[0m'
log_info(){ echo -e "${GREEN}[INFO]${NC} $1"; }
log_warn(){ echo -e "${YELLOW}[WARN]${NC} $1"; }

NODE="node1"
INSTALL_DIR="/tmp"

export MOCK_CONSENSUS=true
export RETH_TXPOOL_BATCH_INSERT=1
export BATCH_INSERT_TIME=50
export USE_PARALLEL_STATE_ROOT=1
export USE_STORAGE_CACHE=1

log_info "Killing old gravity_node..."
pkill -9 gravity_node 2>/dev/null || log_warn "No running gravity_node found"

log_info "Deploying $NODE..."
bash ./deploy_utils/deploy.sh --mode single --install_dir "$INSTALL_DIR" --node "$NODE" -v release

log_info "Starting $NODE..."
bash "$INSTALL_DIR/$NODE/script/start.sh" --bin_name gravity_node

log_info "Node started"
EOF
  gravity-sdk git:(main) ✗
thread '<unnamed>' panicked at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/pipe-exec-layer-ext-v2/execute/src/onchain_config/epoch.rs:61:18:
Failed to decode getCurrentEpoch return value: Overrun
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
   1: core::panicking::panic_fmt
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
   2: core::result::unwrap_failed
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/result.rs:1732:5
   3: core::result::Result<T,E>::expect
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/result.rs:1089:23
   4: <reth_pipe_exec_layer_ext_v2::onchain_config::epoch::EpochFetcher<EthApi> as reth_pipe_exec_layer_ext_v2::onchain_config::base::ConfigFetcher>::fetch
             at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/pipe-exec-layer-ext-v2/execute/src/onchain_config/epoch.rs:60:30
   5: reth_pipe_exec_layer_ext_v2::onchain_config::base::OnchainConfigFetcher<EthApi>::fetch_epoch
             at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/pipe-exec-layer-ext-v2/execute/src/onchain_config/base.rs:93:27
   6: reth_pipe_exec_layer_ext_v2::new_pipe_exec_layer_api
             at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/pipe-exec-layer-ext-v2/execute/src/lib.rs:1060:17
   7: gravity_node::run_reth::{{closure}}::{{closure}}::{{closure}}
             at ./bin/gravity_node/src/main.rs:116:43
   8: reth_cli_commands::node::NodeCommand<C,Ext>::execute::{{closure}}
             at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/cli/commands/src/node.rs:218:43
   9: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/future/future.rs:124:9
  10: reth_cli_runner::run_until_ctrl_c::{{closure}}::{{closure}}
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/macros/select.rs:708:49
  11: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/future/poll_fn.rs:151:9
  12: reth_cli_runner::run_until_ctrl_c::{{closure}}
             at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/cli/runner/src/lib.rs:220:9
  13: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/future/future.rs:124:9
  14: reth_cli_runner::run_to_completion_or_panic::{{closure}}::{{closure}}
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/macros/select.rs:708:49
  15: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/future/poll_fn.rs:151:9
  16: reth_cli_runner::run_to_completion_or_panic::{{closure}}
  17: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/future/future.rs:124:9
  18: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/park.rs:285:60
  19: tokio::task::coop::with_budget
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/coop/mod.rs:167:5
  20: tokio::task::coop::budget
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/coop/mod.rs:133:5
  21: tokio::runtime::park::CachedParkThread::block_on
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/park.rs:285:31
  22: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/context/blocking.rs:66:9
  23: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/multi_thread/mod.rs:87:22
  24: tokio::runtime::context::runtime::enter_runtime
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/context/runtime.rs:65:16
  25: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/multi_thread/mod.rs:86:9
  26: tokio::runtime::runtime::Runtime::block_on_inner
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/runtime.rs:358:50
  27: tokio::runtime::runtime::Runtime::block_on
             at /Users/oker/go/bin/rust/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/runtime.rs:328:13
  28: reth_cli_runner::CliRunner::run_command_until_exit
             at /Users/oker/go/bin/rust/.cargo/git/checkouts/gravity-reth-71f2e4f12409e3f8/b2bedd3/crates/cli/runner/src/lib.rs:69:27
  29: gravity_node::cli::Cli<C,Ext>::run
             at ./bin/gravity_node/src/cli.rs:176:17
  30: gravity_node::run_reth::{{closure}}
             at ./bin/gravity_node/src/main.rs:77:19
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

thread 'main' panicked at bin/gravity_node/src/main.rs:144:15:
called `Result::unwrap()` on an `Err` value: RecvError
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
   1: core::panicking::panic_fmt
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
   2: core::result::unwrap_failed
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/result.rs:1732:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/result.rs:1137:23
   4: gravity_node::run_reth
             at ./bin/gravity_node/src/main.rs:144:5
   5: gravity_node::main
             at ./bin/gravity_node/src/main.rs:217:49
   6: core::ops::function::FnOnce::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

get this error!

Steps to reproduce

  1. start
cat > start_dev_node.sh <<'EOF'
#!/bin/bash
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[0;33m'; NC='\033[0m'
log_info(){ echo -e "${GREEN}[INFO]${NC} $1"; }
log_warn(){ echo -e "${YELLOW}[WARN]${NC} $1"; }

NODE="node1"
INSTALL_DIR="/tmp"

export MOCK_CONSENSUS=true
export RETH_TXPOOL_BATCH_INSERT=1
export BATCH_INSERT_TIME=50
export USE_PARALLEL_STATE_ROOT=1
export USE_STORAGE_CACHE=1

log_info "Killing old gravity_node..."
pkill -9 gravity_node 2>/dev/null || log_warn "No running gravity_node found"

log_info "Deploying $NODE..."
bash ./deploy_utils/deploy.sh --mode single --install_dir "$INSTALL_DIR" --node "$NODE" -v release

log_info "Starting $NODE..."
bash "$INSTALL_DIR/$NODE/script/start.sh" --bin_name gravity_node

log_info "Node started"
EOF
  1. get the error
Failed to decode getCurrentEpoch return value: Overrun

Node logs


Platform(s)

No response

Container Type

Not running in a container

What version/commit are you on?

./target/release/gravity_node --version
gravity_node build_branch: main
build_cargo_version: cargo 1.88.0 (873a06493 2025-05-10)
build_clean_checkout: true
build_commit_hash: ccb63c79666120f6575df22be5ac70f993b7d478
build_is_release_build: true
build_os: macos-aarch64
build_pkg_version: 0.1.0
build_profile_name: release
build_rust_channel: 1.88.0-aarch64-apple-darwin
build_rust_version: rustc 1.88.0 (6b00bc388 2025-06-23)
build_tag:
build_time: 2025-12-04 18:22:12 +08:00
build_using_tokio_unstable: true

What database version are you on?

default

Which chain / network are you on?

devnet

What type of node are you running?

Archive (default)

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

make gravity_node

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions