Bitcoin Forum
May 27, 2024, 02:43:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Corrupted Database: Is --reindex the only option?  (Read 642 times)
teppy (OP)
Full Member
***
Offline Offline

Activity: 185
Merit: 114


View Profile
November 30, 2015, 02:05:34 PM
 #1

I've tried restarting with --rescan, but get this:

2015-11-30 13:34:22 Verifying last 288 blocks at level 3
2015-11-30 13:34:22 ERROR: DisconnectBlock() : added transaction mismatch? database corrupted
2015-11-30 13:34:24 ERROR: DisconnectBlock() : added transaction mismatch? database corrupted
2015-11-30 13:34:24 ERROR: DisconnectBlock() : added transaction mismatch? database corrupted
2015-11-30 13:34:27 ERROR: DisconnectBlock() : added transaction mismatch? database corrupted
2015-11-30 13:34:28 ERROR: DisconnectBlock() : undo data overwriting existing transaction
2015-11-30 13:34:29 ERROR: DisconnectBlock() : added transaction mismatch? database corrupted
2015-11-30 13:34:30 ERROR: DisconnectBlock() : added transaction mismatch? database corrupted
2015-11-30 13:35:27 ERROR: VerifyDB() : *** coin database inconsistencies found (last 7 blocks, 106434 good transactions before that)

2015-11-30 13:35:29 : Corrupted block database detected.


The last time I had to do a --reindex it took 4-5 days to complete, and that's a long time to be down. Any other options? Should --reindex take that long?


Dragon's Tale is the longest running Bitcoin enterprise in the world.
teppy (OP)
Full Member
***
Offline Offline

Activity: 185
Merit: 114


View Profile
November 30, 2015, 02:18:41 PM
 #2

Also, I do have the blocks and chainstate directories backed up as of a month ago. Would replacing the current directories (and only those two directories) with the backups be safe?

Dragon's Tale is the longest running Bitcoin enterprise in the world.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
November 30, 2015, 02:32:24 PM
 #3

Also, I do have the blocks and chainstate directories backed up as of a month ago. Would replacing the current directories (and only those two directories) with the backups be safe?

Yes, that would be safe

BitAurum
Sr. Member
****
Offline Offline

Activity: 318
Merit: 250


View Profile
November 30, 2015, 02:52:22 PM
 #4

Also, I do have the blocks and chainstate directories backed up as of a month ago. Would replacing the current directories (and only those two directories) with the backups be safe?

Yes, it would be safe and faster than -reindex but make sure to backup your wallet.dat before doing anything.
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!