Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geth snapshot dump fails with "missing or corrupted snapshot" #29660

Open
chfast opened this issue Apr 26, 2024 · 0 comments
Open

geth snapshot dump fails with "missing or corrupted snapshot" #29660

chfast opened this issue Apr 26, 2024 · 0 comments
Labels

Comments

@chfast
Copy link
Contributor

chfast commented Apr 26, 2024

System information

Geth
Version: 1.13.14-stable
Git Commit: 2bd6bd0
Architecture: amd64
Go Version: go1.21.6
Operating System: linux

Expected behaviour

Dump the state of the latest block.

Actual behaviour

Fails with error "missing or corrupted snapshot"

Steps to reproduce the behaviour

The geth sync is done with

geth --authrpc.port 8551 --authrpc.jwtsecret /tmp/jwtsecret --datadir /blockchain/geth --db.engine=pebble --state.scheme=path

The snapshot dump is invoked as

geth --datadir /blockchain/geth --db.engine=pebble --state.scheme=path dump --nocode --nostorage

Backtrace

geth snapshot dump logs:

INFO [04-26|07:12:57.711] Logging configured                       rotate=false format=terminal location=dump.log
INFO [04-26|07:12:57.723] Maximum peer count                       ETH=50 total=50
INFO [04-26|07:12:57.725] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [04-26|07:12:57.725] Using pebble as db engine
INFO [04-26|07:12:57.728] Set global gas cap                       cap=50,000,000
INFO [04-26|07:12:57.728] Initializing the KZG library             backend=gokzg
INFO [04-26|07:12:57.847] Using pebble as the backing database
INFO [04-26|07:12:57.847] Allocated cache and file handles         database=/blockchain/geth/geth/chaindata cache=512.00MiB handles=524,288
INFO [04-26|07:12:59.068] Opened ancient database                  database=/blockchain/geth/geth/chaindata/ancient/chain readonly=true
INFO [04-26|07:12:59.069] State dump configured                    block=19,737,906 hash=0x854788c1ec04842c6247aba8dfec1b929337596e68dd87081d1e5c1b1d322d12 skipcode=true skipstorage=true start=0x0000000000000000000000000000000000000000000000000000000000000000 limit=1
INFO [04-26|07:12:59.070] State scheme set by user                 scheme=path
ERROR[04-26|07:12:59.070] Zero trie root hash!
WARN [04-26|07:12:59.070] Path-based state scheme is an experimental feature
WARN [04-26|07:12:59.070] Failed to load snapshot                  err="missing or corrupted snapshot"

geth logs:

geth.log

When submitting logs: please submit them as text and not screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant