Closed AskAlexSharov closed 4 months ago
Then i did:
erigon snapshots rm-state-snapshots --step=1536-99999 --datadir="/erigon-data"
and at startup got this error:
[CRIT] [06-13|08:24:07.981] lookupByShortenedKey panics err="file: v1-accounts.1024-1536.kv, runtime error: slice bounds out of range [48990140:48990139], [decompress.go:741 panic.go:770 panic.go:160 decompress.go:760 archive.go:62 domain_committed.go:217 domain_shared.go:419 commitment.go:368 domain_shared.go:399 domain_shared.go:359 domain_shared.go:1012 hex_patricia_hashed.go:821 hex_patricia_hashed.go:929 hex_patricia_hashed.go:1306 commitment.go:946 collector.go:259 collector.go:345 collector.go:261 commitment.go:945 hex_patricia_hashed.go:1286 domain_shared.go:1146 domain_shared.go:612 rw_v3.go:185 exec3.go:844 stage_execute.go:297 stage_execute.go:428 default_stages.go:320 sync.go:513 sync.go:383 stageloop.go:126 ethereum_execution.go:313 asm_amd64.s:1695]" domain=AccountKeys offset=48990139 short=bb8fae17 cleanFilesCount=2 dirtyFilesCount=2 file=v1-accounts.1024-1536.kv
Same problem, how can temporary fix?
@blxdyx you have to remove most recently meged files of range bigger than 2 steps (e.g. 4 steps in it). Also pull main because issue seems solved.
To ensure data files are correct would be easier just remove some file range with
$ ./build/bin/erigon snapshots rm-state-snapshots --datadir <datadir> --step FROM-9999
$ rm -rf <datadir>/chaindata
Some discrepancy will be harder to fix later on so i assume you to pull main and do cleanup before restart.
Closed by #11011
restarted ethmainnet in the middle of merge: