Bitcoin Forum
May 10, 2024, 05:53:20 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.
1715320400
Hero Member
*
Offline Offline

Posts: 1715320400

View Profile Personal Message (Offline)

Ignore
1715320400
Reply with quote  #2

1715320400
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715320400
Hero Member
*
Offline Offline

Posts: 1715320400

View Profile Personal Message (Offline)

Ignore
1715320400
Reply with quote  #2

1715320400
Report to moderator
1715320400
Hero Member
*
Offline Offline

Posts: 1715320400

View Profile Personal Message (Offline)

Ignore
1715320400
Reply with quote  #2

1715320400
Report to moderator
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: 3388
Merit: 6631


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!