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

Fatal: extra db err: leveldb/storage: corrupted or incomplete CURRENT file #1601

Closed
actuallymentor opened this issue Aug 6, 2015 · 10 comments

Comments

@actuallymentor
Copy link

What I did:

Download geth 1.0.1
Put gets in the chocolatey\geth-stable\tools folder

What happened:

Geth/eth pair mining setup worked fine for a while
Computer crashed (full freeze, no BSOD)
Upon restart trying to run geth any way gives a "Fatal: extra db err: leveldb/storage: corrupted or incomplete CURRENT file"

The contents of the CURRENT files in C:\Users\Mentor\AppData\Roaming\Ethereum* is: "0000 0000 0000 0000 0000 0000 0000 0000"

EDIT: OS Windows 8.1, AMD r9 290, git bash console, previous crashes without repercussions occurred when geth+eth mining.

@fjl
Copy link
Contributor

fjl commented Aug 6, 2015

Your database is corrupted. You can fix this issue by removing the databases and syncing again.

@fjl
Copy link
Contributor

fjl commented Aug 6, 2015

Just delete the blockchain, state and extra folders in your datadir.

@fjl fjl closed this as completed Aug 6, 2015
@actuallymentor
Copy link
Author

Issue solved.

May I suggest adding this to the error? Or make deleting these folders part of the 'geth recover' protocol?

@fjl
Copy link
Contributor

fjl commented Aug 6, 2015

geth recover can recover some errors, but not this kind. We can't really detect this. Genuine corruption like this doesn't happen very often.

@stbregeon
Copy link

Hi,
may you say me where are the blockchain, state and extra folders ? what are the directories ?
tanks

@bas-vk
Copy link
Member

bas-vk commented Sep 20, 2017

The exact location is OS dependent and can be overwritten if you specify a custom datadir. You can see where the default location is with geth -h and check the default value for the datadir flag.

Keep in mind that this datadir directory also contains the keystore for mainnet and testnet. If you want to keep these keys don't delete the keystore sub-directories (each net has its own keystore).

The safest way to delete data and keep keys is to run geth removedb. This asks you what to remove but leaves the keystore intact.

@stbregeon
Copy link

ok
i will be care
tanks a lot

@ijunaid8989
Copy link

@actuallymentor hello, out of interest how you resolved that issue?

@actuallymentor
Copy link
Author

@ijunaid8989 please see @fjl's answer.

@ijunaid8989
Copy link

@actuallymentor Actually, I am not using geth, I am using the only leveldb and my manifest and LDB files are corrupt.

maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue May 12, 2023
release: add another two patches into v1.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants