-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Fatal: Could not open database #1996
Comments
”After successfully run geth , the file in node/geth/chaindata/ancient will lost and can't run next time“ |
Step3:delete --pruneancient=true flag try again. note: don't replace snapshot's ancient/chain data. |
@joeylichang The snapshot downloaded from 48club, there is no xxxxx.cidx files in snapshot/geth/chaindata/ancient/ folder, if I don't replace folder created with genesis.json , Geth will show can't open DB which can't find these files. After Delete --pruneancient=true flag , same error . the main reason is missing xxxx files which open db needed |
@RenRick same error, After First Success run, all file (eg. xxxx.cidx ) all missed in ancient folder. |
This should be due to the pruneancient bug, which has been fixed in this PR #1986. |
Compile geth with v1.3.1 + this PR #1986, and try run with the same snapshot and the commands as the issue descriped, it sync successfully .
Pls notice it is not needed to replace original ancient/chain data after fixed now. |
problem is fixed with this PR, Thx! |
problem is fixed with this PR, Thx! |
Using Geth v1.3.1
Following Official Documentation:
https://docs.bnbchain.org/docs/validator/fullnode/
I download Geth fast node Snapshot from 48Club:
https://github.com/48Club/bsc-snapshots#geth-fast-node
First I create datadir using this command:
geth --datadir ./node --db.engine=pebble init ./genesis.json
then I replace donwloaded snapshot chaindata to replace folder in node's same place
./node/geth/chaindata
then I run Geth with this command:
geth --config ./config.toml --datadir ./node --cache 8000 --rpc.allow-unprotected-txs --txlookuplimit=0 --syncmode=full --tries-verify-mode=none --pruneancient=true --history.transactions=0 --db.engine=pebble
It shows error:
I have tried backup files in ancient/chain after first initial with genesis.json, which it included database needed files, after move 48club snapshot chaindata to datadir, I replace original ancient/chain data in it. And Geth finally run and sync successfully
After successfully run geth , the file in node/geth/chaindata/ancient will lost and can't run next time
Is any wrong step I maked?
The text was updated successfully, but these errors were encountered: