Describe the bug
When attempting to use reth 2.1's migrate-v2 command on a pruned full node, it looks for static files that do not exist and then crashes.
Steps to reproduce
I only run reth with rocketpool but either of these commands will trigger the crash:
$ reth db --datadir /ethclient/reth migrate-v2
# or
$ docker compose -p rocketpool -f ~/.rocketpool/runtime/eth1.yml run --rm --no-deps --entrypoint reth eth1 db --datadir /ethclient/reth migrate-v2
Node logs
$ docker compose -p rocketpool -f ~/.rocketpool/runtime/eth1.yml run --rm --no-deps --entrypoint reth eth1 db --datadir /ethclient/reth migrate-v2
Container rocketpool-eth1-run-be3fa59bd02b Creating
Container rocketpool-eth1-run-be3fa59bd02b Created
2026-04-21T20:16:31.136401Z INFO Initialized tracing, debug log directory: /root/.cache/reth/logs/mainnet
2026-04-21T20:16:31.139591Z INFO Opening storage db_path="/ethclient/reth/db" sf_path="/ethclient/reth/static_files"
2026-04-21T20:16:31.197170Z INFO check_consistency{read_only=false}: Verifying storage consistency.
2026-04-21T20:16:31.242578Z WARN Storage settings mismatch detected. Using the stored settings from the existing database. stored=StorageSettings { storage_v2: false } requested=StorageSettings { storage_v2: true }
2026-04-21T20:16:31.242605Z INFO Starting v1 → v2 storage migration
2026-04-21T20:16:31.242617Z INFO Chain tip block number tip=24930625
2026-04-21T20:16:31.242622Z INFO Migrating AccountChangeSets → static files
2026-04-21T20:16:31.264980Z WARN Failed to load static file jar path="/ethclient/reth/static_files/static_file_account-change-sets_24000000_24499999" e=No such file or directory (os error 2)
2026-04-21T20:16:31.277432Z ERROR shutting down due to error err=failed to open file "/ethclient/reth/static_files/static_file_account-change-sets_24000000_24499999.conf": No such file or directory (os error 2)
Error: failed to open file "/ethclient/reth/static_files/static_file_account-change-sets_24000000_24499999.conf": No such file or directory (os error 2)
Caused by:
No such file or directory (os error 2)
Location:
/app/crates/cli/commands/src/db/migrate_v2.rs:136:13
Platform(s)
Linux (x86)
Container Type
Docker
What version/commit are you on?
2.1
What database version are you on?
Current database version: 2
Local database version: 2
Which chain / network are you on?
mainnet
What type of node are you running?
Pruned with custom reth.toml config
What prune config do you use, if any?
[prune]
block_interval = 5
[prune.segments]
sender_recovery = "full"
[prune.segments.receipts]
before = 0
[prune.segments.account_history]
distance = 10064
[prune.segments.storage_history]
distance = 10064
If you've built Reth from source, provide the full command you used
No response
Code of Conduct
Describe the bug
When attempting to use reth 2.1's migrate-v2 command on a pruned full node, it looks for static files that do not exist and then crashes.
Steps to reproduce
I only run reth with rocketpool but either of these commands will trigger the crash:
Node logs
Platform(s)
Linux (x86)
Container Type
Docker
What version/commit are you on?
2.1
What database version are you on?
Current database version: 2
Local database version: 2
Which chain / network are you on?
mainnet
What type of node are you running?
Pruned with custom reth.toml config
What prune config do you use, if any?
If you've built Reth from source, provide the full command you used
No response
Code of Conduct