2

Hello after I got an db error.. I try to reindex my db. But I got this error:

ERROR: ReadBlockFromDisk: Errors in block header at FlatFilePos(nFile=75, nPos=117947311)

So what can I do to fix it ?

System: 4 cores 2 GB RAM 500GB ISCI Storage

4
  • 1
    The db error was that: throwbitcoins.blogspot.com/2018/11/… Also no idea to fix it ;) – Pixxelcrasher Aug 6 '19 at 14:33
  • I think this is an error caused a file blk corrupt, try to resincronize the bircoin core – vincenzopalazzo Aug 6 '19 at 18:33
  • Now I got these: 2019-08-07T05:26:28Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=68, nPos=64215124) 2019-08-07T05:26:28Z *** Failed to read block 2019-08-07T05:26:28Z Error: A fatal internal error occurred, see debug.log for details 2019-08-07T05:26:28Z Failed to connect best block (Failed to read block (code 0)) Please Help – Pixxelcrasher Aug 7 '19 at 5:32
  • The error persists, This line ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize() confirmed my thesis on the persistent file corrupt. Try to resynchronize directory with another location. Your file blk are downloaded with bitcoin core node or you downloaded it with another mode (an example torrent) – vincenzopalazzo Aug 7 '19 at 8:02
1

Your blockchain is corrupted. In Bitcoin Core's datadir, go to the blocks folder. Delete the file named blk0075.dat and ever blk*.dat file with a higher number. Also delete rev0075.dat and every rev*.dat file with a higher number. Start Bitcoin Core, it will need to reindex. At this point, it should begin building the block databases, and it will then download the blocks that you deleted once it gets to that point.

3
  • 2
    If he deletes block files corresponding to already active blocks, he'll need a reindex from scratch anyway. – Pieter Wuille Aug 9 '19 at 2:53
  • Why is it necessary to delete the following files? I have this error on my first file after moving them from SSD to HDD. However, I have the error at height 255, not at height 0. So part of the first file seems correct. I thought I just move this one file from another backup I have and it could work without reloading all the others. – Ben Nov 26 '20 at 9:56
  • Deleting the files is necessary if one or more blocks stored in the files are corrupted. Either your backup is corrupted, or the file was corrupted in transit. Typically there isn't any need to delete anything or to reindex. – Andrew Chow Nov 26 '20 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.