Bitcoin Forum
May 11, 2024, 07:14:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Currupted block database detected error  (Read 187 times)
3axap (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
October 26, 2018, 04:44:59 PM
Merited by Foxpup (1)
 #1

Hello everyone !
I've had the follow issue:
on one machine I've launced Bitcoin Core v0.16.0 and Litecoin Core v0.16.0.
Each application work in separate datadir also each application have setted callback call for event walletnotify . For now I use both application with testnets.
Recently, there have been frequent cases when these applications stop sending transactions, when restarting, an error occurs:
"Corrupted block database detected. Do you whant to rebuild the block database now ?".
It happens on both apps Bitcoin Core and Litecoin Core, after rebuild applications continue to work, but after a while it happens again

Please help me, what I doing wrong?
Thank you for any advice

1715411640
Hero Member
*
Offline Offline

Posts: 1715411640

View Profile Personal Message (Offline)

Ignore
1715411640
Reply with quote  #2

1715411640
Report to moderator
1715411640
Hero Member
*
Offline Offline

Posts: 1715411640

View Profile Personal Message (Offline)

Ignore
1715411640
Reply with quote  #2

1715411640
Report to moderator
1715411640
Hero Member
*
Offline Offline

Posts: 1715411640

View Profile Personal Message (Offline)

Ignore
1715411640
Reply with quote  #2

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

Posts: 1715411640

View Profile Personal Message (Offline)

Ignore
1715411640
Reply with quote  #2

1715411640
Report to moderator
1715411640
Hero Member
*
Offline Offline

Posts: 1715411640

View Profile Personal Message (Offline)

Ignore
1715411640
Reply with quote  #2

1715411640
Report to moderator
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
October 26, 2018, 05:13:14 PM
 #2

Well.. something is happening which corrupts the blockchain.

Where do you have the blockchain stored ? If it's an external hard drive, this might cause the issue.
Core needs a continuous connection to the hard drive. That's not that easy to achieve with an external USB drive. 


What OS are you using ? And what drive do you use to store the data (SSD / HD / external / ... ) ?

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
October 26, 2018, 05:35:51 PM
 #3

Try deleting the last blk file in the blocks folder and then reminded the database a lot of the time this error gets caused by the last block being corrupted and the node compromising itself because of that.

If that fails, do as tryninja said and switch out the drive.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
October 26, 2018, 06:33:13 PM
Merited by Foxpup (3), NeuroticFish (2), bob123 (2)
 #4

You are using versions of Bitcoin Core and Litecoin Core that are vulnerable to CVE-2018-17144. Any block that exploits this vulnerability will have the side effect of causing block database corruption when the block is being reorged out of the blockchain. Furthermore, testnet is known to have blocks exploiting this vulnerability, and because you are using vulnerable versions, you are likely running into these invalid blocks which is causing your error.

If you upgrade to the latest versions of Bitcoin Core and Litecoin Core, do you still see the same problem?

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!