Unable to sync blockchain on laptop: ERROR: ReadBlockFromDisk: Deserialize or I/O error #29255

issue Xaspr openend this issue on January 16, 2024
  1. Xaspr commented at 6:41 pm on January 16, 2024: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    After installing Bitcoin Core 26.0 in Windows Pro 11 and starting IBD, Core crashes.

    I know Windows might not be exactly ideal, but I like to run a pruned node on my work laptop as well. I didn’t set pruning yet by the way, I started Core just with the standard settings.

    Bitcoin Core crashes and the following error pops up in debug.log:

    ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=327, nPos=8)

    Expected behaviour

    I expect to get to the tip of the chain, but unfortunately the chain gets corrupted every time.

    Steps to reproduce

    There are no settings, no bitcoin.conf file.

    The problem persists after reindexing. It also persists after removing Core and removing the Bitcoin folder in %appdata% and trying a fresh start.

    The disk is an NVMe Samsung 970 Evo Plus 2 TB. I read that the problem should be due to disk corruption. I tried the Samsung Magician program, which did a full scan for a whopping 18 hours, but didn’t find any issues. Also tried Minitool Partition Wizard, which found no issues either.

    I thought the problem could be the laptop going into sleep mode. However, after disabling sleep mode, and trying to sync again, I found out this doesn’t cause the issue either.

    Relevant log output

    First attempt for which I have debug.log file:

     02024-01-16T11:39:33Z UpdateTip: new best=00000000000000001240f87e370943617c128a8d098b3cad6bd06e4c0927c3fe height=372076 version=0x00000003 log2_work=83.275584 tx=81612997 date='2015-08-29T14:53:41Z' progress=0.085632 cache=115.5MiB(1048378txo)
     12024-01-16T11:39:33Z UpdateTip: new best=00000000000000000f8136ee9499e2920b99510bbc0bef7a2dfd95e49a911b99 height=372077 version=0x00000003 log2_work=83.275613 tx=81613437 date='2015-08-29T14:58:17Z' progress=0.085632 cache=115.5MiB(1048327txo)
     22024-01-16T11:39:33Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=327, nPos=8)
     32024-01-16T11:39:33Z *** Failed to read block
     42024-01-16T11:39:33Z Error: A fatal internal error occurred, see debug.log for details
     52024-01-16T13:01:41Z ERROR: ProcessNewBlock: ActivateBestChain failed (Failed to read block)
     62024-01-16T13:01:42Z New outbound-full-relay v1 peer connected: version: 70016, blocks=826027, peer=37
     72024-01-16T13:01:42Z Synchronizing blockheaders, height: 826027 (~100.00%)
     82024-01-16T13:01:42Z tor: Thread interrupt
     92024-01-16T13:01:42Z torcontrol thread exit
    102024-01-16T13:01:42Z addcon thread exit
    112024-01-16T13:01:42Z opencon thread exit
    122024-01-16T13:01:42Z Shutdown: In progress...
    132024-01-16T13:01:42Z net thread exit
    142024-01-16T13:01:43Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=327, nPos=8)
    152024-01-16T13:01:43Z *** Failed to read block
    162024-01-16T13:01:43Z Error: A fatal internal error occurred, see debug.log for details
    172024-01-16T13:01:43Z ERROR: ProcessNewBlock: ActivateBestChain failed (Failed to read block)
    182024-01-16T13:01:43Z msghand thread exit
    192024-01-16T13:01:43Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat started
    202024-01-16T13:01:43Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat completed (0.01s)
    212024-01-16T13:01:44Z scheduler thread exit
    222024-01-16T13:01:44Z Writing 0 unbroadcast transactions to disk.
    232024-01-16T13:01:44Z Dumped mempool: 2.8e-05s to copy, 0.01356s to dump
    242024-01-16T13:01:44Z Flushed fee estimates to fee_estimates.dat.
    

    Another attempt from scratch:

    2024-01-16T17:48:48Z UpdateTip: new best=0000000000000000002cf0d7bfe0db7ae76733bd0cfb72ae44db3043d60ef8fc height=385247 version=0x00000003 log2_work=83.646829 tx=94144065 date=‘2015-11-25T07:28:22Z’ progress=0.098767 cache=138.9MiB(1283001txo) 2024-01-16T17:48:48Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=380, nPos=8136310) 2024-01-16T17:48:48Z *** Failed to read block 2024-01-16T17:48:48Z Error: A fatal internal error occurred, see debug.log for details

    How did you obtain Bitcoin Core

    Pre-built binaries

    What version of Bitcoin Core are you using?

    v26.0.0

    Operating system and version

    Windows 11 Pro

    Machine specifications

    Asus ExpertBook B5 B5602CBA-MB0220X Intel Core i7-1260P 16 GB DDR5 RAM Added: NVMe Samsung SSD 970 EVO Plus 2TB.

  2. fanquake added the label Windows on Jan 16, 2024
  3. hebasto commented at 7:37 pm on January 16, 2024: member

    Does it happen with the previous versions: 25.1, 24.2?

    Does it happen, when antivirus tools/software are disabled (or the datadir is added to the excluded folders)?

  4. Xaspr commented at 9:36 pm on January 16, 2024: none

    I removed 26.0, installed 24.2 and kept the documents folder. It works well up to now, for about 2 hours already.

    I’ll post an update if this goes up to the tip. If it crashes again, I’ll try 26.0 with antivirus software disabled.

  5. maflcko added the label Data corruption on Jan 17, 2024
  6. maflcko commented at 8:59 am on January 17, 2024: member

    Which filesystem is the blocks directory on?

    Otherwise, this may be due to overheating, which will only happen under CPU load, and not if a mere filesystem check tool is run.

  7. Xaspr commented at 9:27 am on January 17, 2024: none

    The whole SSD is just 1 partition in NTFS. There are no other drives.

    I’ll look into overheating as well.

    By the way, v24.2 crashed after about 4 hours. Now looking into trying v26.0.0 with antivirus software disabled.

  8. Xaspr commented at 3:03 pm on January 18, 2024: none

    I had to stop the sync for a while due to traveling and now starting it up again. I’m now at block height 720.000 without issues.

    The CPU temperature is pretty high, with one core going up to a peak of 95 degrees Celsius. Most cores go to max 80 Celsius. screenshot

    What I’ve tried to get it working up to now:

    • Reinstalled v26.0.0.
    • Deleted antivirus software Bitdefender.
    • Enabled Microsoft Defender, with an exclusion for the %appdata%/Bitcoin folder.
    • Excluded bitcoin-qt for exploit mitigation in HitmanPro.Alert.
    • Added the following lines in bitcoin.conf:
    0connect=<<other node on LAN>>
    1assumevalid=0
    2dbcache=24000
    3disablewallet=1
    

    I’m not sure yet, but I think HitmanPro.Alert caused the issue. In an earlier try, I removed Bitdefender and Core still crashed.

  9. DocBrown101 commented at 6:23 pm on January 18, 2024: none

    I have the same problem on a raspberry pi 64 …

    0ERROR: ReadBlockFromDisk: Deserialize or I/O error - AutoFile::read: fread failed: iostream error at FlatFilePos(nFile=34   ││   80, nPos=63332608)
    
  10. Xaspr commented at 9:30 am on January 19, 2024: none

    Core just fully synced with the changes mentioned earlier:

    Reinstalled v26.0.0. Deleted antivirus software Bitdefender. Enabled Microsoft Defender, with an exclusion for the %appdata%/Bitcoin folder. Excluded bitcoin-qt for exploit mitigation in HitmanPro.Alert. Added the following lines in bitcoin.conf: connect=«other node on LAN» assumevalid=0 dbcache=24000 disablewallet=1

    The issue wasn’t caused by hardware, but must have been caused by antivirus software, most likely HitmanPro.Alert.

  11. Xaspr closed this on Jan 19, 2024

  12. Xaspr commented at 11:13 am on February 1, 2024: none

    Not sure if related, but I’m still running into issues. I’ve tried a lot by now, from changing antivirus program, disabling antivirus and anti-malware, checking CPU temperature, checking SSD integrity, updating firmware, updating BIOS, trying older versions of Bitcoin Core and more.

    This specific data corruption error hasn’t come up the last few attempts to get to IBD. But often after stopping Core and starting it up again, I get the message that I should reindex. This seems to be a problem with LevelDB not being able to remove files.

    In some cases, after a while, I try to start up Core again, and it just starts without issues.

    But then, the last log of the fail:

      02024-02-01T10:53:21Z Bitcoin Core version v26.0.0 (release build)
      12024-02-01T10:53:21Z InitParameterInteraction: parameter interaction: -proxy set -> setting -upnp=0
      22024-02-01T10:53:21Z InitParameterInteraction: parameter interaction: -proxy set -> setting -natpmp=0
      32024-02-01T10:53:21Z InitParameterInteraction: parameter interaction: -proxy set -> setting -discover=0
      42024-02-01T10:53:21Z InitParameterInteraction: parameter interaction: -onlynet excludes IPv4 and IPv6 -> setting -dnsseed=0
      52024-02-01T10:53:21Z Qt 5.15.10 (static), plugin=windows (static)
      62024-02-01T10:53:21Z Static plugins:
      72024-02-01T10:53:21Z  QWindowsIntegrationPlugin, version 331520
      82024-02-01T10:53:21Z  QWindowsVistaStylePlugin, version 331520
      92024-02-01T10:53:21Z Style: windowsvista / QWindowsVistaStyle
     102024-02-01T10:53:21Z System: Windows 11 Version 2009, x86_64-little_endian-llp64
     112024-02-01T10:53:21Z Screen: \\.\DISPLAY1 1280x720, pixel ratio=3.0
     122024-02-01T10:53:22Z Using the 'x86_shani(1way,2way)' SHA256 implementation
     132024-02-01T10:53:22Z Using RdSeed as an additional entropy source
     142024-02-01T10:53:22Z Using RdRand as an additional entropy source
     152024-02-01T10:53:22Z [qt] GUI: requestInitialize : Requesting initialize
     162024-02-01T10:53:22Z [qt] GUI: Running initialization in thread
     172024-02-01T10:53:22Z Default data directory C:\Users\xasp\AppData\Roaming\Bitcoin
     182024-02-01T10:53:22Z Using data directory C:\Users\xasp\AppData\Roaming\Bitcoin
     192024-02-01T10:53:22Z Config file: C:\Users\xasp\AppData\Roaming\Bitcoin\bitcoin.conf
     202024-02-01T10:53:22Z Config file arg: debug="1"
     212024-02-01T10:53:22Z Config file arg: listen="1"
     222024-02-01T10:53:22Z Config file arg: listenonion="1"
     232024-02-01T10:53:22Z Config file arg: onlynet="onion"
     242024-02-01T10:53:22Z Config file arg: proxy="127.0.0.1:9050"
     252024-02-01T10:53:22Z Config file arg: server="1"
     262024-02-01T10:53:22Z Config file arg: torcontrol="127.0.0.1:9051"
     272024-02-01T10:53:22Z Config file arg: txindex="1"
     282024-02-01T10:53:22Z Setting file arg: lang = "en"
     292024-02-01T10:53:22Z Using at most 125 automatic connections (2048 file descriptors available)
     302024-02-01T10:53:22Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
     312024-02-01T10:53:22Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…"
     322024-02-01T10:53:22Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
     332024-02-01T10:53:22Z Script verification uses 15 additional threads
     342024-02-01T10:53:22Z scheduler thread start
     352024-02-01T10:53:22Z [http] Allowing HTTP connections from: 127.0.0.0/8 ::1/128 
     362024-02-01T10:53:22Z Binding RPC on address ::1 port 8332
     372024-02-01T10:53:22Z Binding RPC on address 127.0.0.1 port 8332
     382024-02-01T10:53:22Z [http] Initialized HTTP server
     392024-02-01T10:53:22Z [http] creating work queue of depth 16
     402024-02-01T10:53:22Z [rpc] Starting RPC
     412024-02-01T10:53:22Z [rpc] Starting HTTP RPC server
     422024-02-01T10:53:22Z Using random cookie authentication.
     432024-02-01T10:53:22Z Generated RPC authentication cookie C:\Users\xasp\AppData\Roaming\Bitcoin\.cookie
     442024-02-01T10:53:22Z [http] Registering HTTP handler for / (exactmatch 1)
     452024-02-01T10:53:22Z [http] Registering HTTP handler for /wallet/ (exactmatch 0)
     462024-02-01T10:53:22Z [http] Starting HTTP server
     472024-02-01T10:53:22Z [http] starting 4 worker threads
     482024-02-01T10:53:22Z [http] Entering http event loop
     492024-02-01T10:53:22Z Using wallet directory C:\Users\xasp\AppData\Roaming\Bitcoin
     502024-02-01T10:53:22Z init message: Verifying wallet(s)…
     512024-02-01T10:53:22Z Using /16 prefix for IP bucketing
     522024-02-01T10:53:22Z init message: Loading P2P addresses…
     532024-02-01T10:53:22Z [addrman] CheckAddrman: new 2174, tried 1, total 2175 started
     542024-02-01T10:53:22Z [addrman] CheckAddrman: completed (1.36ms)
     552024-02-01T10:53:22Z Loaded 2175 addresses from peers.dat  5ms
     562024-02-01T10:53:22Z init message: Loading banlist…
     572024-02-01T10:53:22Z [net] Loaded 0 banned node addresses/subnets  0ms
     582024-02-01T10:53:22Z [net] setting try another outbound peer=false
     592024-02-01T10:53:22Z SetNetworkActive: true
     602024-02-01T10:53:22Z C:\Users\xasp\AppData\Roaming\Bitcoin\fee_estimates.dat is not found. Continue anyway.
     612024-02-01T10:53:22Z Cache configuration:
     622024-02-01T10:53:22Z * Using 2.0 MiB for block index database
     632024-02-01T10:53:22Z * Using 56.0 MiB for transaction index database
     642024-02-01T10:53:22Z * Using 8.0 MiB for chain state database
     652024-02-01T10:53:22Z * Using 384.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
     662024-02-01T10:53:22Z init message: Loading block index…
     672024-02-01T10:53:22Z Assuming ancestors of block 00000000000000000001a0a448d6cf2546b06801389cc030b2b18c6491266815 have valid signatures.
     682024-02-01T10:53:22Z Setting nMinimumChainWork=000000000000000000000000000000000000000052b2559353df4117b7348b64
     692024-02-01T10:53:22Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
     702024-02-01T10:53:22Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\blocks\index
     712024-02-01T10:53:22Z [leveldb:debug] Recovering log [#224](/bitcoin-bitcoin/224/)
     722024-02-01T10:53:22Z [leveldb:debug] Level-0 table [#232](/bitcoin-bitcoin/232/): started
     732024-02-01T10:53:22Z [leveldb:debug] Level-0 table [#232](/bitcoin-bitcoin/232/): 1243 bytes OK
     742024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#162](/bitcoin-bitcoin/162/)
     752024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#163](/bitcoin-bitcoin/163/)
     762024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#164](/bitcoin-bitcoin/164/)
     772024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#165](/bitcoin-bitcoin/165/)
     782024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#166](/bitcoin-bitcoin/166/)
     792024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#167](/bitcoin-bitcoin/167/)
     802024-02-01T10:53:22Z [leveldb:debug] Delete type=2 [#223](/bitcoin-bitcoin/223/)
     812024-02-01T10:53:22Z [leveldb:debug] Delete type=0 [#224](/bitcoin-bitcoin/224/)
     822024-02-01T10:53:22Z [leveldb:debug] Delete type=3 [#222](/bitcoin-bitcoin/222/)
     832024-02-01T10:53:22Z Opened LevelDB successfully
     842024-02-01T10:53:22Z Using obfuscation key for C:\Users\xasp\AppData\Roaming\Bitcoin\blocks\index: 0000000000000000
     852024-02-01T10:53:23Z [leveldb:debug] Compacting 1@0 + 5@1 files
     862024-02-01T10:53:23Z [leveldb:debug] Generated table [#234](/bitcoin-bitcoin/234/)@0: 14791 keys, 2140622 bytes
     872024-02-01T10:53:23Z [leveldb:debug] Generated table [#235](/bitcoin-bitcoin/235/)@0: 14790 keys, 2141209 bytes
     882024-02-01T10:53:23Z [leveldb:debug] Generated table [#236](/bitcoin-bitcoin/236/)@0: 7758 keys, 1122796 bytes
     892024-02-01T10:53:23Z [leveldb:debug] Generated table [#237](/bitcoin-bitcoin/237/)@0: 14790 keys, 2142962 bytes
     902024-02-01T10:53:23Z [leveldb:debug] Generated table [#238](/bitcoin-bitcoin/238/)@0: 12050 keys, 1746933 bytes
     912024-02-01T10:53:23Z [leveldb:debug] Generated table [#239](/bitcoin-bitcoin/239/)@0: 2 keys, 220 bytes
     922024-02-01T10:53:23Z [leveldb:debug] Compacted 1@0 + 5@1 files => 9294742 bytes
     932024-02-01T10:53:23Z [leveldb:debug] compacted to: files[ 0 6 24 54 0 0 0 ]
     942024-02-01T10:53:23Z [leveldb:debug] Delete type=2 [#225](/bitcoin-bitcoin/225/)
     952024-02-01T10:53:23Z [leveldb:debug] Delete type=2 [#226](/bitcoin-bitcoin/226/)
     962024-02-01T10:53:23Z [leveldb:debug] Delete type=2 [#227](/bitcoin-bitcoin/227/)
     972024-02-01T10:53:23Z [leveldb:debug] Delete type=2 [#228](/bitcoin-bitcoin/228/)
     982024-02-01T10:53:23Z [leveldb:debug] Delete type=2 [#229](/bitcoin-bitcoin/229/)
     992024-02-01T10:53:23Z [leveldb:debug] Delete type=2 [#232](/bitcoin-bitcoin/232/)
    1002024-02-01T10:53:24Z LoadBlockIndexDB: last block file = 4086
    1012024-02-01T10:53:24Z [leveldb:debug] Compacting 1@1 + 1@2 files
    1022024-02-01T10:53:24Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=31, size=53509967, heights=828340...828370, time=2024-02-01...2024-02-01)
    1032024-02-01T10:53:24Z Checking all blk files are present...
    1042024-02-01T10:53:24Z [leveldb:debug] Generated table [#240](/bitcoin-bitcoin/240/)@1: 2 keys, 220 bytes
    1052024-02-01T10:53:24Z [leveldb:debug] Compacted 1@1 + 1@2 files => 220 bytes
    1062024-02-01T10:53:24Z [leveldb:debug] compacted to: files[ 0 5 24 54 0 0 0 ]
    1072024-02-01T10:53:24Z [leveldb:debug] Delete type=2 [#230](/bitcoin-bitcoin/230/)
    1082024-02-01T10:53:24Z [leveldb:debug] Delete type=2 [#239](/bitcoin-bitcoin/239/)
    1092024-02-01T10:53:26Z Initializing chainstate Chainstate [ibd] @ height -1 (null)
    1102024-02-01T10:53:26Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
    1112024-02-01T10:53:26Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate
    1122024-02-01T10:53:26Z [leveldb:debug] Recovering log [#107836](/bitcoin-bitcoin/107836/)
    1132024-02-01T10:53:26Z [leveldb:debug] Level-0 table [#108594](/bitcoin-bitcoin/108594/): started
    1142024-02-01T10:53:26Z [leveldb:debug] Level-0 table [#108594](/bitcoin-bitcoin/108594/): 4126913 bytes OK
    1152024-02-01T10:53:26Z [leveldb:debug] Recovering log [#108593](/bitcoin-bitcoin/108593/)
    1162024-02-01T10:53:26Z [leveldb:debug] Level-0 table [#108595](/bitcoin-bitcoin/108595/): started
    1172024-02-01T10:53:26Z [leveldb:debug] Level-0 table [#108595](/bitcoin-bitcoin/108595/): 308 bytes OK
    1182024-02-01T10:53:26Z Fatal LevelDB error: IO error: C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate/108593.dbtmp: Kan het te vervangen bestand niet verwijderen.\x0d
    119
    1202024-02-01T10:53:26Z You can use -debug=leveldb to get more complete diagnostic messages
    1212024-02-01T10:53:26Z Fatal LevelDB error: IO error: C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate/108593.dbtmp: Kan het te vervangen bestand niet verwijderen.\x0d
    122
    1232024-02-01T10:53:26Z : Error opening block database.
    124Please restart with -reindex or -reindex-chainstate to recover.
    1252024-02-01T10:53:29Z Aborted block database rebuild. Exiting.
    1262024-02-01T10:53:29Z [qt] GUI: initializeResult : Initialization result:  false
    1272024-02-01T10:53:29Z [qt] GUI: requestShutdown : Requesting shutdown
    1282024-02-01T10:53:29Z [rpc] Interrupting RPC
    1292024-02-01T10:53:29Z [rpc] Stopping RPC
    1302024-02-01T10:53:29Z [rpc] RPC stopped.
    1312024-02-01T10:53:29Z [qt] GUI: Running Shutdown in thread
    1322024-02-01T10:53:29Z [http] Interrupting HTTP server
    1332024-02-01T10:53:29Z [rpc] Interrupting HTTP RPC server
    1342024-02-01T10:53:29Z Shutdown: In progress...
    1352024-02-01T10:53:29Z [rpc] Stopping HTTP RPC server
    1362024-02-01T10:53:29Z [http] Unregistering HTTP handler for / (exactmatch 1)
    1372024-02-01T10:53:29Z [http] Unregistering HTTP handler for /wallet/ (exactmatch 0)
    1382024-02-01T10:53:29Z [http] Stopping HTTP server
    1392024-02-01T10:53:29Z [http] Waiting for HTTP worker threads to exit
    1402024-02-01T10:53:29Z [http] Exited http event loop
    1412024-02-01T10:53:29Z [http] Waiting for HTTP event thread to exit
    1422024-02-01T10:53:29Z [http] Stopped HTTP server
    1432024-02-01T10:53:29Z scheduler thread exit
    1442024-02-01T10:53:29Z [estimatefee] Recorded 0 unconfirmed txs from mempool in 0s
    1452024-02-01T10:53:29Z Flushed fee estimates to fee_estimates.dat.
    1462024-02-01T10:53:29Z Shutdown: done
    1472024-02-01T10:53:29Z [qt] GUI: Shutdown finished
    1482024-02-01T10:53:29Z [qt] GUI: ~InitExecutor : Stopping thread
    1492024-02-01T10:53:29Z [qt] GUI: ~InitExecutor : Stopped thread
    

    Last log of the try a few minutes later. First it fails, then it succeeds to start :

      02024-02-01T10:54:01Z Bitcoin Core version v26.0.0 (release build)
      12024-02-01T10:54:01Z InitParameterInteraction: parameter interaction: -proxy set -> setting -upnp=0
      22024-02-01T10:54:01Z InitParameterInteraction: parameter interaction: -proxy set -> setting -natpmp=0
      32024-02-01T10:54:01Z InitParameterInteraction: parameter interaction: -proxy set -> setting -discover=0
      42024-02-01T10:54:01Z InitParameterInteraction: parameter interaction: -onlynet excludes IPv4 and IPv6 -> setting -dnsseed=0
      52024-02-01T10:54:01Z Qt 5.15.10 (static), plugin=windows (static)
      62024-02-01T10:54:01Z Static plugins:
      72024-02-01T10:54:01Z  QWindowsIntegrationPlugin, version 331520
      82024-02-01T10:54:01Z  QWindowsVistaStylePlugin, version 331520
      92024-02-01T10:54:01Z Style: windowsvista / QWindowsVistaStyle
     102024-02-01T10:54:01Z System: Windows 11 Version 2009, x86_64-little_endian-llp64
     112024-02-01T10:54:01Z Screen: \\.\DISPLAY1 1280x720, pixel ratio=3.0
     122024-02-01T10:54:02Z Using the 'x86_shani(1way,2way)' SHA256 implementation
     132024-02-01T10:54:02Z Using RdSeed as an additional entropy source
     142024-02-01T10:54:02Z Using RdRand as an additional entropy source
     152024-02-01T10:54:02Z [qt] GUI: requestInitialize : Requesting initialize
     162024-02-01T10:54:02Z [qt] GUI: Running initialization in thread
     172024-02-01T10:54:02Z Default data directory C:\Users\xasp\AppData\Roaming\Bitcoin
     182024-02-01T10:54:02Z Using data directory C:\Users\xasp\AppData\Roaming\Bitcoin
     192024-02-01T10:54:02Z Config file: C:\Users\xasp\AppData\Roaming\Bitcoin\bitcoin.conf
     202024-02-01T10:54:02Z Config file arg: debug="1"
     212024-02-01T10:54:02Z Config file arg: listen="1"
     222024-02-01T10:54:02Z Config file arg: listenonion="1"
     232024-02-01T10:54:02Z Config file arg: onlynet="onion"
     242024-02-01T10:54:02Z Config file arg: proxy="127.0.0.1:9050"
     252024-02-01T10:54:02Z Config file arg: server="1"
     262024-02-01T10:54:02Z Config file arg: torcontrol="127.0.0.1:9051"
     272024-02-01T10:54:02Z Config file arg: txindex="1"
     282024-02-01T10:54:02Z Setting file arg: lang = "en"
     292024-02-01T10:54:02Z Using at most 125 automatic connections (2048 file descriptors available)
     302024-02-01T10:54:02Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
     312024-02-01T10:54:02Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…"
     322024-02-01T10:54:02Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
     332024-02-01T10:54:02Z Script verification uses 15 additional threads
     342024-02-01T10:54:02Z scheduler thread start
     352024-02-01T10:54:02Z [http] Allowing HTTP connections from: 127.0.0.0/8 ::1/128 
     362024-02-01T10:54:02Z Binding RPC on address ::1 port 8332
     372024-02-01T10:54:02Z Binding RPC on address 127.0.0.1 port 8332
     382024-02-01T10:54:02Z [http] Initialized HTTP server
     392024-02-01T10:54:02Z [http] creating work queue of depth 16
     402024-02-01T10:54:02Z [rpc] Starting RPC
     412024-02-01T10:54:02Z [rpc] Starting HTTP RPC server
     422024-02-01T10:54:02Z Using random cookie authentication.
     432024-02-01T10:54:02Z Generated RPC authentication cookie C:\Users\xasp\AppData\Roaming\Bitcoin\.cookie
     442024-02-01T10:54:02Z [http] Registering HTTP handler for / (exactmatch 1)
     452024-02-01T10:54:02Z [http] Registering HTTP handler for /wallet/ (exactmatch 0)
     462024-02-01T10:54:02Z [http] Starting HTTP server
     472024-02-01T10:54:02Z [http] starting 4 worker threads
     482024-02-01T10:54:02Z [http] Entering http event loop
     492024-02-01T10:54:02Z Using wallet directory C:\Users\xasp\AppData\Roaming\Bitcoin
     502024-02-01T10:54:02Z init message: Verifying wallet(s)…
     512024-02-01T10:54:02Z Using /16 prefix for IP bucketing
     522024-02-01T10:54:02Z init message: Loading P2P addresses…
     532024-02-01T10:54:02Z [addrman] CheckAddrman: new 2174, tried 1, total 2175 started
     542024-02-01T10:54:02Z [addrman] CheckAddrman: completed (1.42ms)
     552024-02-01T10:54:02Z Loaded 2175 addresses from peers.dat  5ms
     562024-02-01T10:54:02Z init message: Loading banlist…
     572024-02-01T10:54:02Z [net] Loaded 0 banned node addresses/subnets  0ms
     582024-02-01T10:54:02Z [net] setting try another outbound peer=false
     592024-02-01T10:54:02Z SetNetworkActive: true
     602024-02-01T10:54:02Z [estimatefee] Reading estimates: 190 buckets counting confirms up to 48 blocks
     612024-02-01T10:54:02Z [estimatefee] Reading estimates: 190 buckets counting confirms up to 12 blocks
     622024-02-01T10:54:02Z [estimatefee] Reading estimates: 190 buckets counting confirms up to 1008 blocks
     632024-02-01T10:54:02Z Cache configuration:
     642024-02-01T10:54:02Z * Using 2.0 MiB for block index database
     652024-02-01T10:54:02Z * Using 56.0 MiB for transaction index database
     662024-02-01T10:54:02Z * Using 8.0 MiB for chain state database
     672024-02-01T10:54:02Z * Using 384.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
     682024-02-01T10:54:02Z init message: Loading block index…
     692024-02-01T10:54:02Z Assuming ancestors of block 00000000000000000001a0a448d6cf2546b06801389cc030b2b18c6491266815 have valid signatures.
     702024-02-01T10:54:02Z Setting nMinimumChainWork=000000000000000000000000000000000000000052b2559353df4117b7348b64
     712024-02-01T10:54:02Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
     722024-02-01T10:54:02Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\blocks\index
     732024-02-01T10:54:02Z [leveldb:debug] Recovering log [#233](/bitcoin-bitcoin/233/)
     742024-02-01T10:54:02Z [leveldb:debug] Delete type=0 [#233](/bitcoin-bitcoin/233/)
     752024-02-01T10:54:02Z [leveldb:debug] Delete type=3 [#231](/bitcoin-bitcoin/231/)
     762024-02-01T10:54:02Z Opened LevelDB successfully
     772024-02-01T10:54:02Z Using obfuscation key for C:\Users\xasp\AppData\Roaming\Bitcoin\blocks\index: 0000000000000000
     782024-02-01T10:54:04Z LoadBlockIndexDB: last block file = 4086
     792024-02-01T10:54:04Z [leveldb:debug] Compacting 1@2 + 1@3 files
     802024-02-01T10:54:04Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=31, size=53509967, heights=828340...828370, time=2024-02-01...2024-02-01)
     812024-02-01T10:54:04Z Checking all blk files are present...
     822024-02-01T10:54:04Z [leveldb:debug] Generated table [#243](/bitcoin-bitcoin/243/)@2: 6167 keys, 466856 bytes
     832024-02-01T10:54:04Z [leveldb:debug] Compacted 1@2 + 1@3 files => 466856 bytes
     842024-02-01T10:54:04Z [leveldb:debug] compacted to: files[ 0 5 23 54 0 0 0 ]
     852024-02-01T10:54:04Z [leveldb:debug] Delete type=2 [#221](/bitcoin-bitcoin/221/)
     862024-02-01T10:54:04Z [leveldb:debug] Delete type=2 [#240](/bitcoin-bitcoin/240/)
     872024-02-01T10:54:05Z Initializing chainstate Chainstate [ibd] @ height -1 (null)
     882024-02-01T10:54:05Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
     892024-02-01T10:54:05Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate
     902024-02-01T10:54:05Z [leveldb:debug] Recovering log [#107836](/bitcoin-bitcoin/107836/)
     912024-02-01T10:54:06Z [leveldb:debug] Level-0 table [#108594](/bitcoin-bitcoin/108594/): started
     922024-02-01T10:54:06Z [leveldb:debug] Level-0 table [#108594](/bitcoin-bitcoin/108594/): 4126913 bytes OK
     932024-02-01T10:54:06Z [leveldb:debug] Recovering log [#108593](/bitcoin-bitcoin/108593/)
     942024-02-01T10:54:06Z [leveldb:debug] Level-0 table [#108595](/bitcoin-bitcoin/108595/): started
     952024-02-01T10:54:06Z [leveldb:debug] Level-0 table [#108595](/bitcoin-bitcoin/108595/): 308 bytes OK
     962024-02-01T10:54:06Z [leveldb:debug] Recovering log [#108596](/bitcoin-bitcoin/108596/)
     972024-02-01T10:54:06Z Fatal LevelDB error: IO error: C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate/108593.dbtmp: Kan het te vervangen bestand niet verwijderen.\x0d
     98
     992024-02-01T10:54:06Z You can use -debug=leveldb to get more complete diagnostic messages
    1002024-02-01T10:54:06Z Fatal LevelDB error: IO error: C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate/108593.dbtmp: Kan het te vervangen bestand niet verwijderen.\x0d
    101
    1022024-02-01T10:54:06Z : Error opening block database.
    103Please restart with -reindex or -reindex-chainstate to recover.
    1042024-02-01T10:54:07Z Aborted block database rebuild. Exiting.
    1052024-02-01T10:54:07Z [qt] GUI: initializeResult : Initialization result:  false
    1062024-02-01T10:54:07Z [qt] GUI: requestShutdown : Requesting shutdown
    1072024-02-01T10:54:07Z [rpc] Interrupting RPC
    1082024-02-01T10:54:07Z [rpc] Stopping RPC
    1092024-02-01T10:54:07Z [rpc] RPC stopped.
    1102024-02-01T10:54:07Z [qt] GUI: Running Shutdown in thread
    1112024-02-01T10:54:07Z [http] Interrupting HTTP server
    1122024-02-01T10:54:07Z [rpc] Interrupting HTTP RPC server
    1132024-02-01T10:54:07Z Shutdown: In progress...
    1142024-02-01T10:54:07Z [rpc] Stopping HTTP RPC server
    1152024-02-01T10:54:07Z [http] Unregistering HTTP handler for / (exactmatch 1)
    1162024-02-01T10:54:07Z [http] Unregistering HTTP handler for /wallet/ (exactmatch 0)
    1172024-02-01T10:54:07Z [http] Stopping HTTP server
    1182024-02-01T10:54:07Z [http] Waiting for HTTP worker threads to exit
    1192024-02-01T10:54:07Z [http] Exited http event loop
    1202024-02-01T10:54:07Z [http] Waiting for HTTP event thread to exit
    1212024-02-01T10:54:07Z [http] Stopped HTTP server
    1222024-02-01T10:54:07Z scheduler thread exit
    1232024-02-01T10:54:07Z [estimatefee] Recorded 0 unconfirmed txs from mempool in 0s
    1242024-02-01T10:54:07Z Flushed fee estimates to fee_estimates.dat.
    1252024-02-01T10:54:07Z Shutdown: done
    1262024-02-01T10:54:07Z [qt] GUI: Shutdown finished
    1272024-02-01T10:54:07Z [qt] GUI: ~InitExecutor : Stopping thread
    1282024-02-01T10:54:07Z [qt] GUI: ~InitExecutor : Stopped thread
    129
    130
    131
    132
    133
    1342024-02-01T10:59:30Z Bitcoin Core version v26.0.0 (release build)
    1352024-02-01T10:59:30Z InitParameterInteraction: parameter interaction: -proxy set -> setting -upnp=0
    1362024-02-01T10:59:30Z InitParameterInteraction: parameter interaction: -proxy set -> setting -natpmp=0
    1372024-02-01T10:59:30Z InitParameterInteraction: parameter interaction: -proxy set -> setting -discover=0
    1382024-02-01T10:59:30Z InitParameterInteraction: parameter interaction: -onlynet excludes IPv4 and IPv6 -> setting -dnsseed=0
    1392024-02-01T10:59:30Z Qt 5.15.10 (static), plugin=windows (static)
    1402024-02-01T10:59:30Z Static plugins:
    1412024-02-01T10:59:30Z  QWindowsIntegrationPlugin, version 331520
    1422024-02-01T10:59:30Z  QWindowsVistaStylePlugin, version 331520
    1432024-02-01T10:59:30Z Style: windowsvista / QWindowsVistaStyle
    1442024-02-01T10:59:30Z System: Windows 11 Version 2009, x86_64-little_endian-llp64
    1452024-02-01T10:59:30Z Screen: \\.\DISPLAY1 1280x720, pixel ratio=3.0
    1462024-02-01T10:59:30Z Using the 'x86_shani(1way,2way)' SHA256 implementation
    1472024-02-01T10:59:30Z Using RdSeed as an additional entropy source
    1482024-02-01T10:59:30Z Using RdRand as an additional entropy source
    1492024-02-01T10:59:30Z [qt] GUI: requestInitialize : Requesting initialize
    1502024-02-01T10:59:30Z [qt] GUI: Running initialization in thread
    1512024-02-01T10:59:30Z Default data directory C:\Users\xasp\AppData\Roaming\Bitcoin
    1522024-02-01T10:59:30Z Using data directory C:\Users\xasp\AppData\Roaming\Bitcoin
    1532024-02-01T10:59:30Z Config file: C:\Users\xasp\AppData\Roaming\Bitcoin\bitcoin.conf
    1542024-02-01T10:59:30Z Config file arg: debug="1"
    1552024-02-01T10:59:30Z Config file arg: listen="1"
    1562024-02-01T10:59:30Z Config file arg: listenonion="1"
    1572024-02-01T10:59:30Z Config file arg: onlynet="onion"
    1582024-02-01T10:59:30Z Config file arg: proxy="127.0.0.1:9050"
    1592024-02-01T10:59:30Z Config file arg: server="1"
    1602024-02-01T10:59:30Z Config file arg: torcontrol="127.0.0.1:9051"
    1612024-02-01T10:59:30Z Config file arg: txindex="1"
    1622024-02-01T10:59:30Z Setting file arg: lang = "en"
    1632024-02-01T10:59:30Z Using at most 125 automatic connections (2048 file descriptors available)
    1642024-02-01T10:59:30Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
    1652024-02-01T10:59:30Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…"
    1662024-02-01T10:59:30Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
    1672024-02-01T10:59:30Z Script verification uses 15 additional threads
    1682024-02-01T10:59:30Z scheduler thread start
    1692024-02-01T10:59:30Z [http] Allowing HTTP connections from: 127.0.0.0/8 ::1/128 
    1702024-02-01T10:59:30Z Binding RPC on address ::1 port 8332
    1712024-02-01T10:59:30Z Binding RPC on address 127.0.0.1 port 8332
    1722024-02-01T10:59:30Z [http] Initialized HTTP server
    1732024-02-01T10:59:30Z [http] creating work queue of depth 16
    1742024-02-01T10:59:30Z [rpc] Starting RPC
    1752024-02-01T10:59:30Z [rpc] Starting HTTP RPC server
    1762024-02-01T10:59:30Z Using random cookie authentication.
    1772024-02-01T10:59:30Z Generated RPC authentication cookie C:\Users\xasp\AppData\Roaming\Bitcoin\.cookie
    1782024-02-01T10:59:30Z [http] Registering HTTP handler for / (exactmatch 1)
    1792024-02-01T10:59:30Z [http] Registering HTTP handler for /wallet/ (exactmatch 0)
    1802024-02-01T10:59:30Z [http] Starting HTTP server
    1812024-02-01T10:59:30Z [http] starting 4 worker threads
    1822024-02-01T10:59:30Z [http] Entering http event loop
    1832024-02-01T10:59:30Z Using wallet directory C:\Users\xasp\AppData\Roaming\Bitcoin
    1842024-02-01T10:59:30Z init message: Verifying wallet(s)…
    1852024-02-01T10:59:30Z Using /16 prefix for IP bucketing
    1862024-02-01T10:59:30Z init message: Loading P2P addresses…
    1872024-02-01T10:59:30Z [addrman] CheckAddrman: new 2174, tried 1, total 2175 started
    1882024-02-01T10:59:30Z [addrman] CheckAddrman: completed (1.02ms)
    1892024-02-01T10:59:30Z Loaded 2175 addresses from peers.dat  4ms
    1902024-02-01T10:59:30Z init message: Loading banlist…
    1912024-02-01T10:59:30Z [net] Loaded 0 banned node addresses/subnets  0ms
    1922024-02-01T10:59:30Z [net] setting try another outbound peer=false
    1932024-02-01T10:59:30Z SetNetworkActive: true
    1942024-02-01T10:59:30Z [estimatefee] Reading estimates: 190 buckets counting confirms up to 48 blocks
    1952024-02-01T10:59:30Z [estimatefee] Reading estimates: 190 buckets counting confirms up to 12 blocks
    1962024-02-01T10:59:30Z [estimatefee] Reading estimates: 190 buckets counting confirms up to 1008 blocks
    1972024-02-01T10:59:30Z Cache configuration:
    1982024-02-01T10:59:30Z * Using 2.0 MiB for block index database
    1992024-02-01T10:59:30Z * Using 56.0 MiB for transaction index database
    2002024-02-01T10:59:30Z * Using 8.0 MiB for chain state database
    2012024-02-01T10:59:30Z * Using 384.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
    2022024-02-01T10:59:30Z init message: Loading block index…
    2032024-02-01T10:59:30Z Assuming ancestors of block 00000000000000000001a0a448d6cf2546b06801389cc030b2b18c6491266815 have valid signatures.
    2042024-02-01T10:59:30Z Setting nMinimumChainWork=000000000000000000000000000000000000000052b2559353df4117b7348b64
    2052024-02-01T10:59:30Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
    2062024-02-01T10:59:30Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\blocks\index
    2072024-02-01T10:59:30Z [leveldb:debug] Recovering log [#242](/bitcoin-bitcoin/242/)
    2082024-02-01T10:59:30Z [leveldb:debug] Delete type=0 [#242](/bitcoin-bitcoin/242/)
    2092024-02-01T10:59:30Z [leveldb:debug] Delete type=3 [#241](/bitcoin-bitcoin/241/)
    2102024-02-01T10:59:30Z Opened LevelDB successfully
    2112024-02-01T10:59:30Z Using obfuscation key for C:\Users\xasp\AppData\Roaming\Bitcoin\blocks\index: 0000000000000000
    2122024-02-01T10:59:33Z LoadBlockIndexDB: last block file = 4086
    2132024-02-01T10:59:33Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=31, size=53509967, heights=828340...828370, time=2024-02-01...2024-02-01)
    2142024-02-01T10:59:33Z Checking all blk files are present...
    2152024-02-01T10:59:34Z Initializing chainstate Chainstate [ibd] @ height -1 (null)
    2162024-02-01T10:59:34Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
    2172024-02-01T10:59:34Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate
    2182024-02-01T10:59:34Z [leveldb:debug] Recovering log [#107836](/bitcoin-bitcoin/107836/)
    2192024-02-01T10:59:34Z [leveldb:debug] Level-0 table [#108594](/bitcoin-bitcoin/108594/): started
    2202024-02-01T10:59:34Z [leveldb:debug] Level-0 table [#108594](/bitcoin-bitcoin/108594/): 4126913 bytes OK
    2212024-02-01T10:59:34Z [leveldb:debug] Recovering log [#108593](/bitcoin-bitcoin/108593/)
    2222024-02-01T10:59:34Z [leveldb:debug] Level-0 table [#108595](/bitcoin-bitcoin/108595/): started
    2232024-02-01T10:59:34Z [leveldb:debug] Level-0 table [#108595](/bitcoin-bitcoin/108595/): 308 bytes OK
    2242024-02-01T10:59:34Z [leveldb:debug] Recovering log [#108596](/bitcoin-bitcoin/108596/)
    2252024-02-01T10:59:34Z [leveldb:debug] Recovering log [#108597](/bitcoin-bitcoin/108597/)
    2262024-02-01T10:59:34Z [leveldb:debug] Delete type=0 [#107836](/bitcoin-bitcoin/107836/)
    2272024-02-01T10:59:34Z [leveldb:debug] Delete type=0 [#108593](/bitcoin-bitcoin/108593/)
    2282024-02-01T10:59:34Z [leveldb:debug] Delete type=0 [#108596](/bitcoin-bitcoin/108596/)
    2292024-02-01T10:59:34Z [leveldb:debug] Delete type=0 [#108597](/bitcoin-bitcoin/108597/)
    2302024-02-01T10:59:34Z [leveldb:debug] Delete type=3 [#107835](/bitcoin-bitcoin/107835/)
    2312024-02-01T10:59:34Z Opened LevelDB successfully
    2322024-02-01T10:59:34Z Using obfuscation key for C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate: 78478a1000ecbe10
    2332024-02-01T10:59:34Z Loaded best chain: hashBestChain=000000000000000000031d97d157fa92796482295ce82a8544a7f534664629b1 height=828370 date=2024-02-01T10:50:50Z progress=0.999997
    2342024-02-01T10:59:34Z [leveldb] LevelDB using max_open_files=1000 (default=1000)
    2352024-02-01T10:59:34Z Opening LevelDB in C:\Users\xasp\AppData\Roaming\Bitcoin\chainstate
    2362024-02-01T10:59:34Z [leveldb:debug] Recovering log [#108598](/bitcoin-bitcoin/108598/)
    2372024-02-01T10:59:34Z [leveldb:debug] Delete type=0 [#108598](/bitcoin-bitcoin/108598/)
    2382024-02-01T10:59:34Z [leveldb:debug] Delete type=3 [#108593](/bitcoin-bitcoin/108593/)
    2392024-02-01T10:59:34Z Opened LevelDB successfully
    

    It’s may still be antivirus software that’s persistent in interfering with Core.

  13. Xaspr reopened this on Feb 1, 2024

  14. maflcko commented at 11:20 am on February 1, 2024: member

    It’s may still be antivirus software that’s persistent in interfering with Core.

    It would be good to check this. If you have a completely separate machine, you could try to install the “anti”-virus software there and see if the issue happens?

    Other than that, I believe this is a caused by overheating. It may be possible that the CPU itself happens to work under high heat as part of a benchmark or stress test. Also, other hardware components are fine by themselves as part of a benchmark or stress test, as long as they are not overheated. However, other hardware components may fail when the CPU’s heat adds on to them during IBD sync?

  15. Xaspr commented at 2:04 pm on February 7, 2024: none

    It would be good to check this. If you have a completely separate machine, you could try to install the “anti”-virus software there and see if the issue happens?

    I don’t have another windows machine, so unfortunately I’m not able to check this. I’m not sure if it would do much, because I’ve now gotten to IBD several times without issues, whereas before when antivirus was still active, the issues came up persistently around block height 350,000-450,000 or so.

    So I didn’t get the previous error again (ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at …….). But there’s still plenty of issues. Whenever I reboot or stop Core and start it again a few minutes later, a fatal LevelDB IO error pops up, saying it can’t delete .dbtmp files.

  16. maflcko commented at 6:10 pm on February 8, 2024: member

    Bitcoin Core makes heavy use of CPU, RAM and disk IO. Hardware defects might only become visible when running Bitcoin Core. You might want to check your hardware for defects.

    • memtest86 to check your RAM
    • to check the CPU behaviour under load, use linpack or Prime95
    • to test your storage device use smartctl or CrystalDiskInfo

    Source: https://bitcoin.stackexchange.com/a/12206

  17. Xaspr commented at 2:38 pm on February 14, 2024: none

    Thank you.

    I did a memtest86 check (the mix option), and a Prime95 stress test for about 24 hours in total. I encountered no issues.

    CrystalDiskInfo has no critical warnings and gives Health Status as Good 99%.

  18. maflcko commented at 10:12 am on October 8, 2024: member

    It would be good to check this. If you have a completely separate machine, you could try to install the “anti”-virus software there and see if the issue happens?

    I don’t have another windows machine, so unfortunately I’m not able to check this. I’m not sure if it would do much, because I’ve now gotten to IBD several times without issues, whereas before when antivirus was still active, the issues came up persistently around block height 350,000-450,000 or so.

    Bitcoin Core 28.0 was just released with a new option to xor the block files. It would be interesting to check if this makes a difference. Though, the blocksdir must be completely empty on the first start for the xor pattern to be created. See https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-28.0.md#blockstorage

  19. Xaspr commented at 11:23 am on October 9, 2024: none
    Thanks for the heads up. I’m now doing IBD with 28.0 on the same Windows installation. On earlier versions, the issue came up after a few days. I will check in again after a week if the issue is solved with blocksxor.
  20. Xaspr commented at 11:53 am on October 9, 2024: none

    No luck I’m afraid. Version 28.0 also hangs after a few hours.

    02024-10-09T11:48:11Z UpdateTip: new best=0000000000000000fee087a31f2c9c00f8a26935bf133a63ae4659bcc671460c height=287693 version=0x00000002 log2_work=76.854021 tx=33605130 date='2014-02-25T05:33:06Z' progress=0.030781 cache=323.7MiB(2627196txo)
    12024-10-09T11:48:11Z UpdateTip: new best=0000000000000000db9ac4e9bbd0335f94305fc1f6772f5b39bb7c188f610f3e height=287694 version=0x00000002 log2_work=76.854163 tx=33606248 date='2014-02-25T05:49:15Z' progress=0.030782 cache=323.9MiB(2627489txo)
    22024-10-09T11:48:11Z UpdateTip: new best=000000000000000128e48a97041efac0c72a3846aaedaa6ef676aa4d93fb73f6 height=287695 version=0x00000002 log2_work=76.854305 tx=33606473 date='2014-02-25T05:45:55Z' progress=0.030782 cache=323.9MiB(2626805txo)
    32024-10-09T11:48:14Z [error] ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=119, nPos=8)
    42024-10-09T11:48:14Z [error] A fatal internal error occurred, see debug.log for details: Failed to read block.
    52024-10-09T11:48:26Z [error] ProcessNewBlock: ActivateBestChain failed (Failed to read block.)
    62024-10-09T11:48:26Z [error] ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=119, nPos=8)
    72024-10-09T11:48:26Z [error] A fatal internal error occurred, see debug.log for details: Failed to read block.
    
  21. maflcko commented at 12:04 pm on October 9, 2024: member
    I presume this is semi-related to the “Anti”-virus software. It is possible that the software adds load on the system, which makes data corruption more likely, due to increased heat production. You could try to limit the power consumption for the machine, or limit the compute that Bitcoin Core consumes and see if it helps. However, I am not sure how to do that on Windows.
  22. Xaspr commented at 2:08 pm on October 9, 2024: none

    Ah yes, I’ll look into whether the lower load does anything.

    Just to be complete on what happened. The IBD continued after restarting Core again, but after an eventual third shutdown and restart of Core to test what would happen, the block database was corrupted again.

     02024-10-09T13:52:42Z UpdateTip: new best=00000000000000000878cd8de3dccda91cdcf6ef0e6e8536120c65f487dd0197 height=390296 version=0x00000004 log2_work=83.803743 tx=100238753 date='2015-12-26T14:25:06Z' progress=0.091811 cache=84.2MiB(686486txo)
     12024-10-09T13:52:45Z tor: Thread interrupt
     22024-10-09T13:52:45Z addcon thread exit
     32024-10-09T13:52:45Z Shutdown: In progress...
     42024-10-09T13:52:45Z opencon thread exit
     52024-10-09T13:52:45Z torcontrol thread exit
     62024-10-09T13:52:45Z net thread exit
     72024-10-09T13:52:45Z msghand thread exit
     82024-10-09T13:52:45Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat started
     92024-10-09T13:52:45Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat completed (0.00s)
    102024-10-09T13:52:45Z scheduler thread exit
    112024-10-09T13:52:45Z Writing 0 mempool transactions to file...
    122024-10-09T13:52:45Z Writing 0 unbroadcast transactions to file.
    132024-10-09T13:52:45Z Dumped mempool: 0.000s to copy, 0.004s to dump, 27 bytes dumped to file
    142024-10-09T13:52:45Z Flushed fee estimates to fee_estimates.dat.
    152024-10-09T13:52:46Z Shutdown: done
    16
    17
    18
    19
    20
    212024-10-09T13:52:50Z Bitcoin Core version v28.0.0 (release build)
    222024-10-09T13:52:50Z Qt 5.15.14 (static), plugin=windows
    232024-10-09T13:52:50Z Static plugins:
    242024-10-09T13:52:50Z  QWindowsIntegrationPlugin, version 331520
    252024-10-09T13:52:50Z  QWindowsVistaStylePlugin, version 331520
    262024-10-09T13:52:50Z Style: windowsvista / QWindowsVistaStyle
    272024-10-09T13:52:50Z System: Windows 11 Version 2009, x86_64-little_endian-llp64
    282024-10-09T13:52:50Z Screen: \\.\DISPLAY1 1280x720, pixel ratio=3.0
    292024-10-09T13:52:51Z Script verification uses 15 additional threads
    302024-10-09T13:52:51Z Using the 'x86_shani(1way,2way)' SHA256 implementation
    312024-10-09T13:52:56Z Using RdSeed as an additional entropy source
    322024-10-09T13:52:56Z Using RdRand as an additional entropy source
    332024-10-09T13:52:56Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core werd nog niet veilig afgesloten..."
    342024-10-09T13:52:56Z Default data directory C:\Users\xxxxxxx\AppData\Local\Bitcoin
    352024-10-09T13:52:56Z Using data directory C:\Users\xxxxxxx\AppData\Local\Bitcoin
    362024-10-09T13:52:56Z Config file: C:\Users\xxxxxxx\AppData\Local\Bitcoin\bitcoin.conf (not found, skipping)
    372024-10-09T13:52:56Z Using at most 125 automatic connections (2048 file descriptors available)
    382024-10-09T13:52:56Z scheduler thread start
    392024-10-09T13:52:56Z Using wallet directory C:\Users\xxxxxxx\AppData\Local\Bitcoin\wallets
    402024-10-09T13:52:56Z init message: Wallet(s) controleren...
    412024-10-09T13:52:56Z Using /16 prefix for IP bucketing
    422024-10-09T13:52:56Z init message: P2P-adressen laden...
    432024-10-09T13:52:56Z Loaded 25019 addresses from peers.dat  50ms
    442024-10-09T13:52:56Z init message: Verbanningslijst laden...
    452024-10-09T13:52:56Z SetNetworkActive: true
    462024-10-09T13:52:56Z Script verification uses 15 additional threads
    472024-10-09T13:52:56Z Cache configuration:
    482024-10-09T13:52:56Z * Using 2.0 MiB for block index database
    492024-10-09T13:52:56Z * Using 8.0 MiB for chain state database
    502024-10-09T13:52:56Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
    512024-10-09T13:52:56Z Using obfuscation key for blocksdir *.dat files (C:\Users\xxxxxxx\AppData\Local\Bitcoin\blocks): '3627471231765da0'
    522024-10-09T13:52:56Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
    532024-10-09T13:52:56Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
    542024-10-09T13:52:56Z init message: Blokindex laden...
    552024-10-09T13:52:56Z Assuming ancestors of block 000000000000000000011c5890365bdbe5d25b97ce0057589acaef4f1a57263f have valid signatures.
    562024-10-09T13:52:56Z Setting nMinimumChainWork=000000000000000000000000000000000000000088e186b70e0862c193ec44d6
    572024-10-09T13:52:56Z Opening LevelDB in C:\Users\xxxxxxx\AppData\Local\Bitcoin\blocks\index
    582024-10-09T13:52:56Z Opened LevelDB successfully
    592024-10-09T13:52:56Z Using obfuscation key for C:\Users\xxxxxxx\AppData\Local\Bitcoin\blocks\index: 0000000000000000
    602024-10-09T13:53:01Z LoadBlockIndexDB: last block file = 405
    612024-10-09T13:53:01Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=196, size=120801576, heights=390028...390913, time=2015-12-25...2015-12-30)
    622024-10-09T13:53:01Z Checking all blk files are present...
    632024-10-09T13:53:04Z Initializing chainstate Chainstate [ibd] @ height -1 (null)
    642024-10-09T13:53:04Z Opening LevelDB in C:\Users\xxxxxxx\AppData\Local\Bitcoin\chainstate
    652024-10-09T13:53:04Z Opened LevelDB successfully
    662024-10-09T13:53:04Z Using obfuscation key for C:\Users\xxxxxxx\AppData\Local\Bitcoin\chainstate: 29b031841c0fff1d
    672024-10-09T13:53:05Z Loaded best chain: hashBestChain=00000000000000000878cd8de3dccda91cdcf6ef0e6e8536120c65f487dd0197 height=390296 date=2015-12-26T14:25:06Z progress=0.091811
    682024-10-09T13:53:05Z Opening LevelDB in C:\Users\xxxxxxx\AppData\Local\Bitcoin\chainstate
    692024-10-09T13:53:05Z Fatal LevelDB error: IO error: C:\Users\xxxxxxx\AppData\Local\Bitcoin\chainstate/019218.dbtmp: Kan het te vervangen bestand niet verwijderen.\x0d
    70
    712024-10-09T13:53:05Z You can use -debug=leveldb to get more complete diagnostic messages
    722024-10-09T13:53:05Z [error] Fatal LevelDB error: IO error: C:\Users\xxxxxxx\AppData\Local\Bitcoin\chainstate/019218.dbtmp: Kan het te vervangen bestand niet verwijderen.\x0d
    73
    742024-10-09T13:53:05Z : Error opening block database.
    75Please restart with -reindex or -reindex-chainstate to recover.
    762024-10-09T13:53:11Z [error] Aborted block database rebuild. Exiting.
    772024-10-09T13:53:11Z Shutdown: In progress...
    782024-10-09T13:53:11Z scheduler thread exit
    792024-10-09T13:53:11Z Flushed fee estimates to fee_estimates.dat.
    
  23. Xaspr commented at 8:50 am on October 15, 2024: none
    Unfortunately limiting CPU and memory usage in Windows itself and in Project Lasso didn’t work. Core still hangs while indexing after a few hours & the blocks are corrupted afterwards. It must be a hardware issue, as no one else experiences this issue.
  24. maflcko commented at 9:59 am on October 15, 2024: member

    It must be a hardware issue, as no one else experiences this issue.

    Ok, closing for now, but please do provide a comment with more details, if you find anything.

  25. maflcko closed this on Oct 15, 2024


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-03 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me