erigon
erigon copied to clipboard
RPC method engine_getPayloadBodiesByHashV1 crashed: runtime error: index out of range [0] with length 0
System information
Build Info:
git_branch=stable git_tag=v2.49.2-1-ga8ae8a031-dirty git_commit=a8ae8a031144e009ca26bc59cd978752cfa1646b
OS & Version:
Linux
Commit hash:
a8ae8a031144e009ca26bc59cd978752cfa1646b
Erigon Command (with flags/config):
N/A, syncing from start.
Consensus Layer:
Prysm
Consensus Layer Command (with flags/config):
N/A
Chain/Network:
Ethereum Mainnet
Expected behaviour
Continue to sync from start.
Actual behaviour
Syncing stopped at some point due to a panic.
Steps to reproduce the behaviour
- Use eth-docker
- Set up .env to use archive node
- Set up eth-docker to use Prysm and Erigon
- Start syncing erigon
Notes:
- Prysm was already synced. Erigon was syncing from scratch.
- Used eth-docker
- Used archive mode
- Disk space was not limited (2.1TB free)
- Machine has 32GB of RAM
Restarting the node seems to work, though the error continues without taking down the node.
Backtrace
[INFO] [12-16|06:41:24.491] [4/12 Execution] Executed blocks number=4949870 blk/s=22.3 tx/s=2643.4 Mgas/s=167.5 gasState=0.00 batch=0B alloc=4.0GB sys=14.7GB
[INFO] [12-16|06:41:25.166] [4/12 Execution] Executed blocks number=4949966 blk/s=142.3 tx/s=15998.3 Mgas/s=996.0 gasState=0.00 batch=1.1MB alloc=4.1GB sys=14.7GB
[INFO] [12-16|06:41:28.810] [p2p] GoodPeers eth68=33 eth66=1 eth67=31
[INFO] [12-16|06:41:28.817] [txpool] stat pending=0 baseFee=0 queued=2156 alloc=4.9GB sys=14.7GB
[INFO] [12-16|06:41:45.159] [4/12 Execution] Executed blocks number=4952135 blk/s=108.5 tx/s=17093.5 Mgas/s=759.9 gasState=0.03 batch=32.2MB alloc=3.4GB sys=14.7GB
[EROR] [12-16|06:41:50.432] RPC method engine_getPayloadBodiesByHashV1 crashed: runtime error: index out of range [0] with length 0
[service.go:219 panic.go:884 panic.go:113 engine_server.go:497 engine_server.go:609 value.go:586 value.go:370 service.go:224 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:316 asm_amd64.s:1598]
[WARN] [12-16|06:41:50.432] Served conn=172.18.0.2:44134 method=engine_getPayloadBodiesByHashV1 reqid=9 t=928.441µs err="method handler crashed"
[EROR] [12-16|06:42:01.175] RPC method engine_getPayloadBodiesByHashV1 crashed: runtime error: index out of range [0] with length 0
[service.go:219 panic.go:884 panic.go:113 engine_server.go:497 engine_server.go:609 value.go:586 value.go:370 service.go:224 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:316 asm_amd64.s:1598]
I got same error.
Have similar one on headers:
[INFO] [01-04|08:06:12.073] [2/15 Headers] Wrote block headers number=50544809 blk/second=550.050 alloc=5.3GB sys=10.2GB
[EROR] [01-04|08:06:16.145] Staged Sync err="runtime error: index out of range [0] with length 0, trace: [stageloop.go:104 panic.go:890 panic.go:113 btree_generic.go:522 btree_generic.go:779 header_algos.go:402 stage_headers.go:203 stage_headers.go:115 default_stages.go:52 sync.go:430 sync.go:331 stageloop.go:148 stageloop.go:70 asm_amd64.s:1598]"
[INFO] [01-04|08:06:17.618] [2/15 Headers] Waiting for headers... from=45499999
same error
Please re-open the issue if it still happens with v2.59.2 or later.