1

I logged into my node to check the blockheight and saw that it was no longer running.

When I checked the logs I got:

Apr 07 15:27:29 btc.home.local bitcoind[222318]: 2022-04-07T15:27:29Z New outbound peer connected: version: 70016, blocks=730857, peer=19090 (block-relay-only)
Apr 07 15:28:41 btc.home.local bitcoind[222318]: 2022-04-07T15:28:41Z New outbound peer connected: version: 70015, blocks=730857, peer=19093 (block-relay-only)
Apr 07 15:29:02 btc.home.local bitcoind[222318]: 2022-04-07T15:29:02Z UpdateTip: new best=00000000000000000006f59c754697e1cbcc330e9cd6dbd51c9631d33e617e83 height=730858 version=0x20000004 log2_work=93.446902 tx=723828017 date='2022-04-07T15:28:57Z' progress=1.000000 cache=109.8MiB(777828txo)
Apr 07 15:33:12 btc.home.local bitcoind[222318]: 2022-04-07T15:33:12Z ERROR: AcceptBlockHeader: Consensus::ContextualCheckBlockHeader: 000000008b133defdf2bd580dc9c6b82ddad0ccf0e6ba0c30ab11e0491e089fe, bad-diffbits, incorrect proof of work
Apr 07 15:34:03 btc.home.local bitcoind[222318]: 2022-04-07T15:34:03Z New outbound peer connected: version: 70016, blocks=730858, peer=19185 (block-relay-only)
Apr 07 15:43:44 btc.home.local bitcoind[222318]: 2022-04-07T15:43:44Z ERROR: ReadRawBlockFromDisk: Block magic mismatch for FlatFilePos(nFile=16, nPos=811845): 4f238f1b versus expected f9beb4d9
Apr 07 15:43:44 btc.home.local bitcoind[222318]: bitcoind: net_processing.cpp:1777: void {anonymous}::PeerManagerImpl::ProcessGetBlockData(CNode&, {anonymous}::Peer&, const CInv&): Assertion `!"cannot load block from disk"' failed.

In Summary:

  1. ERROR: AcceptBlockHeader - incorrect proof of work
  2. ERROR: ReadRawBlockFromDisk - Block magic mismatch
  3. A c++ error: Assertion `!"cannot load block from disk"' failed

Previous questions are similar but do not address this situation exactly:

What is the correct way to fix this issue? (I have re-downloaded/re-indexed the blockchain before and it takes too long to be feasible)

Update June 2022:

Jun 13 17:58:48 btc bitcoind[840]: 2022-06-13T17:58:48Z New outbound peer connected: version: 70016, blocks=740639, peer=94798 (block-relay-only)
Jun 13 18:23:39 btc bitcoind[840]: 2022-06-13T18:23:39Z ERROR: ReadRawBlockFromDisk: Read from block file failed: CAutoFile::read: end of file: iostream error for FlatFilePo>
Jun 13 18:23:39 btc bitcoind[840]: bitcoind: net_processing.cpp:1777: void {anonymous}::PeerManagerImpl::ProcessGetBlockData(CNode&, {anonymous}::Peer&, const CInv&): Assert>
Jun 13 18:23:53 btc systemd[1]: bitcoind.service: Main process exited, code=killed, status=6/ABRT
Jun 13 18:23:53 btc systemd[1]: bitcoind.service: Failed with result 'signal'.

My config:

[main]
datadir=/mnt/btc/bitcoin

maxconnections=32
maxuploadtarget=2048

After changing to 32 max connections from 16 - I encountered this issue.

Update: Still not fixed

Jun 13 21:21:40 btc bitcoind[26301]: 2022-06-13T21:21:40Z New outbound peer connected: version: 70016, blocks=740662, peer=776 (block-relay-only)
Jun 13 21:29:33 btc bitcoind[26301]: 2022-06-13T21:29:33Z ERROR: ReadRawBlockFromDisk: Block magic mismatch for FlatFilePos(nFile=16, nPos=28970925): 53aeffff versus expected f9beb4d9
Jun 13 21:29:33 btc bitcoind[26301]: bitcoind: net_processing.cpp:1777: void {anonymous}::PeerManagerImpl::ProcessGetBlockData(CNode&, {anonymous}::Peer&, const CInv&): Assertion `!"cannot load >
3
  • Is your hard drive connected via USB or the blockchain data stored on a SD card?
    – Murch
    Commented Apr 11, 2022 at 17:26
  • Connected via USB
    – tread
    Commented Apr 11, 2022 at 18:10
  • I'd guess that you had a write error. You may want to try connecting it via SATA.
    – Murch
    Commented Apr 11, 2022 at 22:33

1 Answer 1

1

What worked for me is restart bitcoind.

I don't have more details unfortunately.

Have you tried turning it off and on again

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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