Removing mdbx.dat
without removing static files leads to error on ExecutionStage
#13136
Closed
1 task done
Labels
A-db
Related to the database
C-bug
An unexpected or incorrect behavior
D-good-first-issue
Nice and easy! A great choice to get started
Describe the bug
Some users when attempting to keep certain
datadir
configurations will only deletemdbx
files. Since the genesis check is only checking the static files, we never re-write the genesis related data tomdbx
. This leads eventually to an error onExecutionStage
andunwind
.We probably just want to modify this check and error out if there's not even a stage checkpoint on db, with a message hinting at this problem.
reth/crates/storage/db-common/src/init.rs
Lines 95 to 96 in 3091386
Steps to reproduce
Node logs
Platform(s)
Linux (x86)
What version/commit are you on?
What database version are you on?
Which chain / network are you on?
What type of node are you running?
Archive (default)
What prune config do you use, if any?
No response
If you've built Reth from source, provide the full command you used
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: