Bitcoin Forum
September 29, 2022, 03:45:58 PM *
News: Latest Bitcoin Core release: 23.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Corrupted Database: Is --reindex the only option?  (Read 620 times)
teppy (OP)
Full Member
***
Offline Offline

Activity: 184
Merit: 102


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

Posts: 1664466358

View Profile Personal Message (Offline)

Ignore
1664466358
Reply with quote  #2

1664466358
Report to moderator
1664466358
Hero Member
*
Offline Offline

Posts: 1664466358

View Profile Personal Message (Offline)

Ignore
1664466358
Reply with quote  #2

1664466358
Report to moderator
1664466358
Hero Member
*
Offline Offline

Posts: 1664466358

View Profile Personal Message (Offline)

Ignore
1664466358
Reply with quote  #2

1664466358
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
teppy (OP)
Full Member
***
Offline Offline

Activity: 184
Merit: 102


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: 2884
Merit: 5144


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!