-
Notifications
You must be signed in to change notification settings - Fork 35.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
Corrupted database? #2305
Comments
What OS? Clean shutdown the run before, or did your machine or bitcoin crash? This might be a case of "your disk drive was flaky for some unknowable reason." |
OSX 10.6.8, HFS+ journaled disk. i.e. it is not very good if you have to re-download the whole blockchain for a single corrupted element, especially since not it is made of many small files, if would make more sense if only that file was re-downloaded... |
@Lohoris The problem is not a corrupted downloaded file - that's easy. In your case, the database is corrupted, despite several systems which try to prevent ever getting an inconsistent state on disk. You also don't need to redownload anything. Starting with -reindex will rebuild the database using the block chain data you already have. |
Oh! I'll try, thanks. Of course if this works it could be considered fixed... |
reindex at block ~100000 started re-downloading, so I can't go on testing it right now (I've got a limited bandwidth). |
I'll spam this bug, for interesting reading: http://www.codeofhonor.com/blog/whose-bug-is-this-anyway On a properly functioning computer this stress test should never fail, but surprisingly we discovered that on about 1% of the computers being used to play Guild Wars it did fail! One percent might not sound like a big deal, but when one million gamers play the game on any given day that means 10,000 would have at least one crash bug. Our programming team could spend weeks researching the bugs for just one day at that rate!A lot of bug hunting on something as processor and ram intensive and requiring 100% math accuracy like Bitcoin, is likely to be unrepeatable - it's going to be Bitcoin revealing to users their hardware problems. A similar hardware fitness test like the article describes, running before initial-download or during idle cpu, to certify a system's error-free crypto and 8GB of it's storage before attempting to assemble and verify a bit-accurate database, may prevent tears later. |
Didn't have time to test it properly so far, sorry. |
Ok this happened again right now. I'll reindex and see what happens. |
Reindex worked, as expected. |
I am having this error i dunno what to do i have bitcoin wallet on Windows Vista when i open it i get Bitcoin-QT: System Error: Database Corrupted what shall i do to fix it? |
Try running it from command line: |
do you have Skype we can chat on sir? Date: Thu, 18 Apr 2013 10:18:02 -0700 Try running it from command line: bitcoind -reindex — |
I think this functionality should be added to the GUI too.. Not everybody is a computer pro, and knows how to handle the command shell.. if the index is broken, a window should pop up "it crashed - should we reindex blabla... yes/no?" |
I'm going to close this as "corruption probably due to the run-out-of-file-descriptors" bug that was fixed. |
Good, I'll update and let you know if anything happens. |
This keeps happening to me with version v0.8.3-beta on OS X 10.8.3 Bitcoin-qt spends a few hours "Reindexing blocks on disk.." and then all is well for a day or so, until I gracefully shutdown bitcoin-qt and upon opening I am greeted with the Corrupt database error dialog. Any updates on this? |
I'm getting this on ubuntu 12.04. it re-indexed once when upgrading to 0.8.4 and a few days later its doing it again. I'm running on a SSD for another possible data point that might be relevant. Will running -reindex on the cli compete faster? |
I've just stated seeing this issue on ubuntu 13.04 on a laptop with an SSD. I saw the error earlier today, re-indexed successfully and got the error again now. |
See https://bitcointalk.org/index.php?topic=290922.0 or just update to 0.8.5 |
Thank you for the information. |
@nikolajsheller Yes, though the official Linux binaries in tar form are for ubuntu. |
I confirm the issue on MacOS. I got my database corrupted a few times already. I always recover using bitcoin-qt -reindex. That works fine but takes hours. Is there a version that does not have this issue? |
On Mac OS X 10.9 (Mavericks) with Bitcoin-Qt 0.8.5, I was getting the "System Error: Database Corrupted" error every time I started the Bitcoin-Qt client. I tried deleting everything in my Bitcoin directory except What fixed it for me was deleting everything including For the record, here's what
So, it appears to have been an issue with |
|
@sipa The only two files that I kept were |
Macbook just crashed trying to sync the blockchain for the first time from Bitcoin QT. Now I'm getting the "System error: Database corrupted" I didn't have any coins in the wallet. Does anyone know how I can reset and trying to sync again? The data directory library file -> ~/Library/Application Support/Bitcoin/ isn't found in terminal when I enter it. Thanks. |
I am getting those db corruptions again those days. I tried restoring my
|
How does one reindex the blockchain?? |
Bitcoin-qt -reindex
|
@tahoeboarder909 Using Terminal
|
2017-08-25 19:26:16 Bitcoin version v0.14.2 bitcoin-qt.exe -reindex -chainstate, it doesn´´t work. I have removed chainstate folder, because it was corrupted and I get to access again and recovery (C:\Users\Miguel\AppData\Roaming\Bitcoin). How can I repair original chainstate folder? |
@mapalmalemus hmm, I cant reproduce, but if you simply delete the files in C:\Users\Miguel\AppData\Roaming\Bitcoin\chainstate and then run with bitcoin-qt.exe -reinded-chainstate (note its not separate), that should do it. |
Yes, I have done, thanks! |
Launching bitcoind I get the following error:
Using version v0.8.0rc1
The text was updated successfully, but these errors were encountered: