Bitcoin Forum
December 11, 2017, 06:04:13 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2] 3 4 5 »  All
  Print  
Author Topic: "Error opening block database. Do you want to rebuild the block database now?"  (Read 46675 times)
maxmint
Hero Member
*****
Offline Offline

Activity: 700



View Profile
April 01, 2013, 05:17:45 PM
 #21

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.

My PGP-Key: 462D02D8
Verify my messages using keybase: https://keybase.io/maxmint
1512972253
Hero Member
*
Offline Offline

Posts: 1512972253

View Profile Personal Message (Offline)

Ignore
1512972253
Reply with quote  #2

1512972253
Report to moderator
1512972253
Hero Member
*
Offline Offline

Posts: 1512972253

View Profile Personal Message (Offline)

Ignore
1512972253
Reply with quote  #2

1512972253
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1512972253
Hero Member
*
Offline Offline

Posts: 1512972253

View Profile Personal Message (Offline)

Ignore
1512972253
Reply with quote  #2

1512972253
Report to moderator
maxmint
Hero Member
*****
Offline Offline

Activity: 700



View Profile
April 01, 2013, 05:19:20 PM
 #22

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?

My PGP-Key: 462D02D8
Verify my messages using keybase: https://keybase.io/maxmint
mobile4ever
Hero Member
*****
Offline Offline

Activity: 518


View Profile
April 01, 2013, 05:40:16 PM
 #23

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.                           
mobile4ever
Hero Member
*****
Offline Offline

Activity: 518


View Profile
April 01, 2013, 07:02:55 PM
 #24

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
maxmint
Hero Member
*****
Offline Offline

Activity: 700



View Profile
April 01, 2013, 08:03:39 PM
 #25

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.

My PGP-Key: 462D02D8
Verify my messages using keybase: https://keybase.io/maxmint
JustJake
Member
**
Offline Offline

Activity: 61


Numisalis - Physical Tradable Bitcoin


View Profile WWW
April 01, 2013, 09:24:34 PM
 #26

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.
redwraith
Full Member
***
Offline Offline

Activity: 188



View Profile
April 02, 2013, 02:15:38 PM
 #27

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.
mobile4ever
Hero Member
*****
Offline Offline

Activity: 518


View Profile
April 02, 2013, 06:13:36 PM
 #28


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.
mobile4ever
Hero Member
*****
Offline Offline

Activity: 518


View Profile
April 02, 2013, 08:41:14 PM
 #29

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.
maxmint
Hero Member
*****
Offline Offline

Activity: 700



View Profile
April 02, 2013, 08:59:34 PM
 #30

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.

My PGP-Key: 462D02D8
Verify my messages using keybase: https://keybase.io/maxmint
toffoo
Sr. Member
****
Offline Offline

Activity: 403



View Profile
April 03, 2013, 03:03:57 PM
 #31

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

maxmint
Hero Member
*****
Offline Offline

Activity: 700



View Profile
April 11, 2013, 11:44:20 AM
 #32

... 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.

My PGP-Key: 462D02D8
Verify my messages using keybase: https://keybase.io/maxmint
salfter
Hero Member
*****
Offline Offline

Activity: 628


My PGP Key: 92C7689C


View Profile WWW
April 17, 2013, 02:49:10 PM
 #33

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.

My Bitgem Pool - PPLNS, Stratum | BTG Explorer
Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR BTG gTipsVB9qmyYHuqMMKTuCYMHpfkUFBXKrZ | My Bitcoin Note Generator
maxmint
Hero Member
*****
Offline Offline

Activity: 700



View Profile
April 22, 2013, 06:17:18 AM
 #34

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.

My PGP-Key: 462D02D8
Verify my messages using keybase: https://keybase.io/maxmint
seleme
Legendary
*
Offline Offline

Activity: 1106



View Profile
April 29, 2013, 02:28:56 AM
 #35

I got it now too

  ██  ██  ██ 
██  ██  ██  ██
  ██  ██  ██ 
██  ██  ██  ██
  ██  ██  ██ 









        ███████████
      █████████████████
    ███████████████████████
  ███████████████████████████        ██████
  ████████████████████████████
   ████████████████████        ████████████
      ▀█▀              ▀█▀        ██ ████████████████
    ████████████████████████████████
██████████████████
   ██                                ███████████████████
  ██  ██████████████████████████████████████████████████
     ███████████████████████████████████████████████████
      ███████████████████████████████████████████████████
      ███████████████████████████████████████████████████
       ██████████████████████████████████████████████████
       █████████████████████████████████████████████████
             ██████                          ██████
              ▀██▀                            ▀██▀
  ██  ██  ██ 
██  ██  ██  ██
  ██  ██  ██ 
██  ██  ██  ██
  ██  ██  ██ 

.

salfter
Hero Member
*****
Offline Offline

Activity: 628


My PGP Key: 92C7689C


View Profile WWW
May 03, 2013, 02:36:08 PM
 #36

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.

My Bitgem Pool - PPLNS, Stratum | BTG Explorer
Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR BTG gTipsVB9qmyYHuqMMKTuCYMHpfkUFBXKrZ | My Bitcoin Note Generator
dansmith
Full Member
***
Offline Offline

Activity: 202


View Profile
May 10, 2013, 12:26:48 PM
 #37

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.

https://tlsnotary.org
Transferable webpage content notarization.
keystroke
Hero Member
*****
Offline Offline

Activity: 842


advocate of a cryptographic attack on the globe


View Profile
May 14, 2013, 05:34:54 AM
 #38

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.

"The difference between a castle and a prison is only a question of who holds the keys."
2GOOD
Hero Member
*****
Offline Offline

Activity: 524


First bits: 12good


View Profile WWW
May 16, 2013, 01:30:29 AM
 #39

I have the same issue probably by bad shutdown, is there a way to fix this without redownloading the whole blockchain.

Code:
init message: Verifying block database integrity...
Verifying last 288 blocks at level 3
ERROR: bool CBlock::ReadFromDisk(const CDiskBlockPos&)() : deserialize or I/O error
ERROR: VerifyDB() : *** block.ReadFromDisk failed at 236342, hash=00000000000000643e739da0ba2ee988369423f186df6e8b22cc7a1c6a$
: Corrupted block database detected.
Do you want to rebuild the block database now?
Flush(false)
DBFlush(false) ended               0ms
StopNode()
Flushed 0 addresses to peers.dat  1ms
Committing 0 changed transactions to coin database...
Flush(true)
DBFlush(true) ended               0ms
Bitcoin exited

Thank you

P.S.
===
Ubuntu 12.04 x64
bitcoind 8.0.1

Български Биткойн Форум - BitcoinBG.eu
Tips accepted at: 12good4Buys8cvTj6EB4MTGNTSC4w9Swnz
P_Shep
Legendary
*
Offline Offline

Activity: 1134


View Profile WWW
May 16, 2013, 04:50:04 PM
 #40

I'm getting this error too.
updating from 7.1 to 8.1.

Tried 8.2rc1... same

went back to 7.1... loads

Tried wiping bitcoin (uninstalling, deleting all directories), re installing 8.1... same.

db.log is empty.

debug.log just shows:
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-05-16 15:44:00
Default data directory C:\Users\Casa\AppData\Roaming\Bitcoin
Used data directory C:\Users\Casa\AppData\Roaming\Bitcoin
Using 4 threads for script verification
init message: Verifying wallet integrity...
dbenv.open LogDir=C:\Users\Casa\AppData\Roaming\Bitcoin\database ErrorFile=C:\Users\Casa\AppData\Roaming\Bitcoin\db.log
Bound to [::]:8333
Bound to 0.0.0.0:8333
init message: Loading block index...
Opening LevelDB in C:\Users\Casa\AppData\Roaming\Bitcoin\blocks\index
init message: Loading block index...
Wiping LevelDB in C:\Users\Casa\AppData\Roaming\Bitcoin\blocks\index
Opening LevelDB in C:\Users\Casa\AppData\Roaming\Bitcoin\blocks\index
Pages: « 1 [2] 3 4 5 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!