Snapshot Sync
Snapshot sync allows a new node to join a network by downloading a recent, compressed copy of the entire application state and extracting it directly into the data directory. This reduces the initial sync time from days to minutes.Do not restore a pruned snapshot onto an archive node. It does not contain the earlier state-store versions that the archive node must retain. Use only a provider-confirmed full-history PebbleDB archive snapshot, or follow the archive-node guidance in Move off RocksDB.
Snapshot Providers
You can select from various providers for downloading snapshots:- Polkachu: Mainnet Snapshots | Testnet Snapshots
- Imperator.co
- Stakeme
- kjnodes
Snapshot providers do not consistently label the state-store backend. Ask the
provider to confirm that the snapshot uses PebbleDB before you restore it. The
post-extraction check below is a second guard against archives that contain an
obvious RocksDB path. It does not replace provider confirmation because some
legacy and custom directory names do not identify their backend.
Clean Up & Preparation
If you are not starting a node from fresh, perform the following backups and clean‑ups first.Note: This step is not needed for fresh nodes.
-
Stop the service
-
Backup Validator State (Critical for Validators)
Assuming your sei home directory is
$HOME/.sei, back uppriv_validator_key.jsonandpriv_validator_state.json: -
Reset the State
-
Check custom state-store paths
Print the state-store section from
app.toml:Ifss-db-directoryorevm-ss-db-directoryis not empty, the state store may live outside$HOME/.sei/data. Back up anything you need, then move or remove the old state-store data before you restore the snapshot. The generic commands below expect both settings to be empty so the snapshot’s default paths are used. Follow your provider’s placement instructions if you keep custom paths. Do not reuse a RocksDB directory withss-backend = "pebbledb". -
Remove data and Wasm
Download & Restore
The following commands are generic examples. Please verify the
SNAPSHOT_URL and extraction command from your chosen provider above.Prerequisites
Ensure you have the necessary tools installed (e.g.,lz4, aria2, pv, wget).
Download and Extract
-
Set the Snapshot URL
Replace
<SNAPSHOT_URL>with the link from your chosen provider. -
Extract the snapshot
Most providers compress the
dataandwasmdirectories directly. Stream the archive to avoid storing a second compressed copy:Alternative: parallel download with aria2aria2csupports parallel connections but keeps the compressed archive beside the extracted data. Put the archive on a data disk with enough free space for both:If extraction fails, remove the partially extractedThe-x 16flag sets the maximum connections per server, and-s 16splits the file into 16 segments for parallel downloading. You can adjust these values based on your network conditions.dataandwasmdirectories before you retry. Do not continue to verification. -
Verify every extracted state-store path
The check below scans every backend-labelled default state-store path
instead of stopping at the first result. It catches archives that contain
both PebbleDB and RocksDB:
The function returns a nonzero status for
FAILandUNVERIFIED. Continue only if the provider confirmed PebbleDB and the command printsPASS. A legacy EVM store atdata/evm_ss/does not identify its backend in the directory name, which is why provider confirmation is still required. If you usedaria2c, remove the downloaded archive after this check passes: -
Restore validator state
-
Enable SeiDB and configure PebbleDB
Make sure SeiDB is enabled and the state-store backend is PebbleDB:
Confirm that the output includes
ss-backend = "pebbledb". If the key is absent, add it directly below[state-store]before you restart the node. -
Restart the node
-
Monitor logs
Troubleshooting
Q: I can’t download a snapshot. A: Try another time later as these snapshots are refreshed regularly and inform us in the Sei Tech Chat. Q: The snapshot finishes, but I immediately getAppHash errors upon regular block syncing.
A: Make sure that you use the latest version of the node software. This usually means the snapshot version doesn’t match your node version, or the snapshot is corrupted. Ensure you are using the correct binary version for the block height of the snapshot.
Q: “No space left on device”
A: Snapshots require significant disk space to download and extract. Ensure you have enough free space (check with df -h).