Bitcoin Forum
May 09, 2024, 07:00:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 0.8.1-qt Crashing with *** System error: Database Corrupted  (Read 1541 times)
BradZimdack (OP)
Member
**
Offline Offline

Activity: 87
Merit: 12


View Profile
April 02, 2013, 11:29:54 PM
 #1

My Windows 7 version of bitcoin-qt suddenly crashed while syncing with the error message "*** System error: Database Corrupted".  Now each time I try to open the program, I get the same error and it immediately closes.  Below is a dump from debug.log.  Does anyone know how I can fix this?  (Hopefully without doing a full reinstall and re-downloading the entire blockchain all over again.)


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-04-02 23:24:27
Default data directory C:\Users\BZ\AppData\Roaming\Bitcoin
Used data directory C:\Users\BZ\AppData\Roaming\Bitcoin
Using 4 threads for script verification
init message: Verifying wallet integrity...
dbenv.open LogDir=C:\Users\BZ\AppData\Roaming\Bitcoin\database ErrorFile=C:\Users\BZ\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\BZ\AppData\Roaming\Bitcoin\blocks\index
Opened LevelDB successfully
Opening LevelDB in C:\Users\BZ\AppData\Roaming\Bitcoin\chainstate
Opened LevelDB successfully
LoadBlockIndex(): last block file = 11
LoadBlockIndex(): last block file: CBlockFileInfo(blocks=256, size=46153726, heights=228582..228837, time=2013-03-29..2013-03-30)
LoadBlockIndex(): transaction index disabled
LoadBlockIndex(): hashBestChain=000000000000000c8708f0ae43cfa76aa3ec8f38037c15e1e3534641b769ddd1  height=228835 date=2013-03-30 23:14:33
init message: Verifying block database integrity...
Verifying last 288 blocks at level 3
No coin database inconsistencies in last 108 blocks (36374 transactions)
 block index           12574ms
init message: Loading wallet...
nFileVersion = 80100
 wallet                 2449ms
init message: Rescanning...
Rescanning last 297 blocks (from block 228538)...
 rescan                 2231ms
init message: Importing blocks from block database...
LevelDB read failure: Corruption: block checksum mismatch
*** System error: Database corrupted
init message: Loading addresses...
Loaded 15984 addresses from peers.dat  62ms
RandAddSeed() 168932 bytes
mapBlockIndex.size() = 228857
nBestHeight = 228835
setKeyPool.size() = 100
mapWallet.size() = 480
mapAddressBook.size() = 65
send version message: version 70001, blocks=228835, us=0.0.0.0:0, them=0.0.0.0:0, peer=127.0.0.1:0
init message: Done loading
AddLocal([2001:0:9d38:953c:3034:504:e770:bbd7]:8333,1)
ThreadIRCSeed started
ThreadIRCSeed exited
ThreadSocketHandler started
ThreadMessageHandler started
ThreadDNSAddressSeed started
Loading addresses from DNS seeds (could take a while)
ThreadDumpAddress started
ThreadOpenConnections started
ThreadOpenAddedConnections started
socket error accept failed: 10038
socket select error 10038
EnvShutdown exception: Invalid argument (22)
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715281229
Hero Member
*
Offline Offline

Posts: 1715281229

View Profile Personal Message (Offline)

Ignore
1715281229
Reply with quote  #2

1715281229
Report to moderator
1715281229
Hero Member
*
Offline Offline

Posts: 1715281229

View Profile Personal Message (Offline)

Ignore
1715281229
Reply with quote  #2

1715281229
Report to moderator
BradZimdack (OP)
Member
**
Offline Offline

Activity: 87
Merit: 12


View Profile
April 03, 2013, 04:16:13 AM
 #2

After unsuccessfully trying to get bitcoin-qt running again by deleting the most recent blockchain files, I simply uninstalled the whole program, restarted the computer, deleted everything in C:\Users\BZ\AppData\Roaming\Bitcoin, and reinstalled a fresh copy of 0.8.1.  The block chain sync had been running for several hours, and I had about 30,000 more blocks to go, when it crashed again in exactly the same way.

This seems like a pretty serious problem.  Are there any other reports of this or known solutions?

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-04-03 04:10:56
Default data directory C:\Users\BZ\AppData\Roaming\Bitcoin
Used data directory C:\Users\BZ\AppData\Roaming\Bitcoin
Using 4 threads for script verification
init message: Verifying wallet integrity...
dbenv.open LogDir=C:\Users\BZ\AppData\Roaming\Bitcoin\database ErrorFile=C:\Users\BZ\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\BZ\AppData\Roaming\Bitcoin\blocks\index
Opened LevelDB successfully
Opening LevelDB in C:\Users\BZ\AppData\Roaming\Bitcoin\chainstate
Opened LevelDB successfully
LoadBlockIndex(): last block file = 22
LoadBlockIndex(): last block file: CBlockFileInfo(blocks=1468, size=131813551, heights=197723..199190, time=2012-09-07..2012-09-17)
LoadBlockIndex(): transaction index disabled
LoadBlockIndex(): hashBestChain=000000000000037df60961cceb00c3c1fbd92b382a712064159c30132762dd7c  height=199189 date=2012-09-17 10:06:07
init message: Verifying block database integrity...
Verifying last 288 blocks at level 3
No coin database inconsistencies in last 289 blocks (49187 transactions)
 block index           10624ms
init message: Loading wallet...
nFileVersion = 80100
 wallet                  780ms
init message: Importing blocks from block database...
LevelDB read failure: Corruption: block checksum mismatch
*** System error: Database corrupted
init message: Loading addresses...
Loaded 12193 addresses from peers.dat  63ms
RandAddSeed() 173316 bytes
mapBlockIndex.size() = 199191
nBestHeight = 199189
setKeyPool.size() = 100
mapWallet.size() = 0
mapAddressBook.size() = 1
send version message: version 70001, blocks=199189, us=0.0.0.0:0, them=0.0.0.0:0, peer=127.0.0.1:0
init message: Done loading
EnvShutdown exception: Invalid argument (22)
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
April 03, 2013, 01:47:07 PM
 #3

It is possible your hard drive is dieing. Undecided 
Maybe someone will come along with a more positive solution. Wink

toffoo
Sr. Member
****
Offline Offline

Activity: 408
Merit: 261



View Profile
April 03, 2013, 03:01:28 PM
 #4

I and others have experienced similar issue with Mac version, first I've heard on Windows:

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

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!