Pages:
Author

Topic: "Error opening block database. Do you want to rebuild the block database now?" - page 4. (Read 48060 times)

hero member
Activity: 900
Merit: 1014
advocate of a cryptographic attack on the globe
Happened to me today on 0.8.1 after a clean shutdown:

Quote
Error opening block database.
Do you want to rebuild the block database now?
Relevant part of debug.log:
Quote
LevelDB read failure: IO error: /home/default/.bitcoin/chainstate/031746.sst: No such file or directory

Brand new HDD here.

How about 0.8.2rc1? So far I haven't experienced the issue with it.
full member
Activity: 202
Merit: 100
Happened to me today on 0.8.1 after a clean shutdown:

Quote
Error opening block database.
Do you want to rebuild the block database now?
Relevant part of debug.log:
Quote
LevelDB read failure: IO error: /home/default/.bitcoin/chainstate/031746.sst: No such file or directory

Brand new HDD here.
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
AFAICT, the only thing likely to get it running again is to redownload the blockchain.  I moved .litecoin to a safe location, created a new .litecoin directory, copied over my litecoin.conf and wallet.dat, and am now letting litecoin-qt pull in the blockchain again.  It's set to only talk to the litecoind on my mining rig, so the transfer's only running across the LAN and should be done in less than a half-hour.  It's halfway done as I write this; if it ends up working properly, I'll do the same thing with bitcoin-qt.

As a bit of follow-up, this method worked.  It took a little longer to pull the Litecoin blockchain through (and it took a few hours to rebuild the Bitcoin blockchain), but it beats having to download them from outside the LAN.
legendary
Activity: 2772
Merit: 1028
Duelbits.com
hero member
Activity: 700
Merit: 500
Wow, this is really getting annoying. Had the same error again, tried rebuilding the database which made bitcoin-qt completely crash.
Downloaded new block chain and now getting "wallet.dat corrupt, salvage failed".

Any hints on what could be causing this? Bitcoin-qt is almost unusable for me, since I have to redownload the block chain every week.
Also reported this here at github.
hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
Just opened 0.8.1 after having successfully opened it a few times and received:
"Error opening block database. Do you want to rebuild the block database now?"

I started getting this error today on a machine on which I had upgraded LibreOffice to 4.0.  litecoind and litecoin-qt were throwing database-related exceptions as well.  The LibreOffice upgrade pulled in a newer version of Boost, which meant everything else that uses Boost (including *coind and *coin-qt) needed to be rebuilt as well.  No problem, right?  Gentoo is good at this sort of thing.

It looks like there's some interaction between Boost and the database used such that the on-disk format changed in a way that *coind/*coin-qt don't like.  AFAICT, the only thing likely to get it running again is to redownload the blockchain.  I moved .litecoin to a safe location, created a new .litecoin directory, copied over my litecoin.conf and wallet.dat, and am now letting litecoin-qt pull in the blockchain again.  It's set to only talk to the litecoind on my mining rig, so the transfer's only running across the LAN and should be done in less than a half-hour.  It's halfway done as I write this; if it ends up working properly, I'll do the same thing with bitcoin-qt.
hero member
Activity: 700
Merit: 500
... and I get the same error again. I had it about 3 weeks ago, decided to re-download the whole blockchain and not get the same error again.
I don't have any idea on what could be causing this.
sr. member
Activity: 408
Merit: 261
I and others have reported similar issue on Mac:

https://github.com/bitcoin/bitcoin/issues/2435

After 5 crashes and reindexes I've downgraded to v0.7.2
hero member
Activity: 700
Merit: 500
Will this work?

Download the blockchain and then upload it to one of those download sites. It wont be totally current, but it may be faster than having to wait for the bitcoin wallet to redownload it. The uploader may even make some money off of it.

I now keep a local backup copy of the block chain, so in case of getting errors again I can copy over my backup.
hero member
Activity: 546
Merit: 500
Will this work?

Download the blockchain and then upload it to one of those download sites. It wont be totally current, but it may be faster than having to wait for the bitcoin wallet to redownload it. The uploader may even make some money off of it.
hero member
Activity: 546
Merit: 500

Oh boy, this is one those "geeky" things that the masses won't understand.  How did you implement this solution, in layman's terms?  This is happening to me as well.


The masses should learn to backup their wallet and the bitcoin folder itself. 7zip is free software (but please make a donation if you can, its good software )


http://www.7-zip.org/download.html

There may be software available to do it automatically. If not, just for the sake of bitcoin, it should be made. I dont believe in the online wallet thing.
full member
Activity: 188
Merit: 102
Same problem, immediately upon upgrading from bitcoin-0.8.0rc1-win32 to 0.8.1, on Win7-64.

Chose Cancel. The .sst file referenced did not exist, but no problem creating the .sst file with Cygwin "touch". Deleted the .sst file I had created, restarted Bitcoin-Qt, ran fine the second time, no further mention of .sst files in the debug.log. 2-month old SATA laptop drive with no problems.

Code:
Bitcoin version v0.8.1-beta (2013-03-17 15:35:36 -0400)
Using OpenSSL version OpenSSL 1.0.1c 10 May 2012
Startup time: 2013-03-20 12:52:37
Default data directory C:\Users\username\AppData\Roaming\Bitcoin
Used data directory C:\Users\username\AppData\Local\LargeDB\Bitcoin
Using 4 threads for script verification
init message: Verifying wallet integrity...
dbenv.open LogDir=C:\Users\username\AppData\Local\LargeDB\Bitcoin\database ErrorFile=C:\Users\username\AppData\Local\LargeDB\Bitcoin\db.log
Bound to [::]:8333
Bound to 0.0.0.0:8333
init message: Loading block index...
Opening LevelDB in C:\Users\username\AppData\Local\LargeDB\Bitcoin\blocks\index
Opened LevelDB successfully
Opening LevelDB in C:\Users\username\AppData\Local\LargeDB\Bitcoin\chainstate
Opened LevelDB successfully
LoadBlockIndex(): last block file = 14
LoadBlockIndex(): last block file: CBlockFileInfo(blocks=789, size=119258104, heights=225479..226267, time=2013-03-12..2013-03-17)
LoadBlockIndex(): transaction index disabled
LoadBlockIndex(): hashBestChain=00000000000002e60135b76ddd31d727f4ca44c28f142e85ff38c199b1a098e8  height=226267 date=2013-03-17 02:17:42
init message: Verifying block database integrity...
Verifying last 288 blocks at level 3
LevelDB read failure: IO error: C:\Users\username\AppData\Local\LargeDB\Bitcoin\chainstate\013292.sst: Could not create random access file.

Oh boy, this is one those "geeky" things that the masses won't understand.  How did you implement this solution, in layman's terms?  This is happening to me as well.
member
Activity: 60
Merit: 10
Numisalis - Physical Tradable Bitcoin
I have gone from scratch several times and have even grabbed the torrent of the blockchain to see if it would load more smoothly pulling transactions from the .dat file instead of downloading from peers.  I get a checksum error every single time and it is never in the same place so I know that it isn't like there is some embedded corruption.  I do appreciate that the blockchain loads significantly faster than in 0.7 days but I would prefer it loading correctly as well.
hero member
Activity: 700
Merit: 500
Just got the same error again, decided to rebuild. Bitcoin-qt crashed, I re-ran the app now get this error:
"System error: Database corrupted" and the programm crashes again.

Not sure what to do know. Should I delete everything (expect my wallet) and re-download the block chain?

It does not matter if you delete your wallet. Just save the "wallet.dat" file, because that is where your transactions are.


https://bitcointalk.org/index.php?topic=112429.0;all

Yeah thanks, I know that. My question was rather if I have to re-download the whole block chain now or if there's a way to repair it somehow.
Anyhow, this is really strange and right now weakens my trust in the official client. I really hope that the problem is on my side (SSD defect?) and not within the current client, that would be really bad.
hero member
Activity: 546
Merit: 500
Just got the same error again, decided to rebuild. Bitcoin-qt crashed, I re-ran the app now get this error:
"System error: Database corrupted" and the programm crashes again.

Not sure what to do know. Should I delete everything (expect my wallet) and re-download the block chain?

It does not matter if you delete your wallet. Just save the "wallet.dat" file, because that is where your transactions are.


https://bitcointalk.org/index.php?topic=112429.0;all
hero member
Activity: 546
Merit: 500
I will learn someday to back up the wallet. I got the same thing as you guys.... but I dont have time to do anything but redownload the blockchain again.                           
hero member
Activity: 700
Merit: 500
Just got the same error again, decided to rebuild. Bitcoin-qt crashed, I re-ran the app now get this error:
"System error: Database corrupted" and the programm crashes again.

Not sure what to do know. Should I delete everything (expect my wallet) and re-download the block chain?
hero member
Activity: 700
Merit: 500
It's been a few hours now  and I tried to open my bitcoin-qt client again. It's working now without any errors.
I'm on a brand new iMac, the blockchain is on a SSD and I just checked the disk integrity, everything is good.

So strange, I just don't know what was causing this.

Please post the issue on Github so developers can have a look at it.

https://github.com/bitcoin/bitcoin/issues/new
Will do.
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
It's been a few hours now  and I tried to open my bitcoin-qt client again. It's working now without any errors.
I'm on a brand new iMac, the blockchain is on a SSD and I just checked the disk integrity, everything is good.

So strange, I just don't know what was causing this.

Please post the issue on Github so developers can have a look at it.

https://github.com/bitcoin/bitcoin/issues/new
hero member
Activity: 700
Merit: 500
It's been a few hours now  and I tried to open my bitcoin-qt client again. It's working now without any errors.
I'm on a brand new iMac, the blockchain is on a SSD and I just checked the disk integrity, everything is good.

So strange, I just don't know what was causing this.
Pages:
Jump to: