ERROR: WriteBlockToDisk: OpenBlockFile failed / AcceptBlock: Failed to find position to write new block to disk (code 0)) #15113

issue JamesTwitter openend this issue on January 6, 2019
  1. JamesTwitter commented at 0:14 am on January 6, 2019: none

    Description of issue: Bitcoin Core crashes with the following “Error: A fatal internal error occurred, see debug.log for details”

    The debug.log has the following:

    What behavior did you expect? I was hoping to run the node without crashing.

    What was the actual behavior (provide screenshots if the issue is GUI-related)? Whenever I load Bitcoin Core, it tries to sync and it just crashes.

    How reliably can you reproduce the issue, what are the steps to do so? Every time I boot Bitcoin Core, it crashes.

    What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)?

    I am using Bitcoin Core, downloaded from Bitcoin.org.

    What type of machine are you observing the error on (OS/CPU and disk type)?

    Mac OSX, 500gb SSD with ~100gb of free space.

    Any extra information that might be useful in the debugging process. This crash occurred after installing electrum personal server and adding several thousand watching addresses. I have since uninstalled Bitcoin Core, reinstalled it, and resynced it. It continues to crash, even without the use of electrum personal server.

    This is normally the contents of a debug.log or config.log file. Raw text or a link to a pastebin type site are preferred.

    “2019-01-05T23:52:37Z Bitcoin Core version v0.17.0.1 (release build) 2019-01-05T23:52:37Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2019-01-05T23:52:37Z Assuming ancestors of block 0000000000000000002e63058c023a9a1de233554f28c7b21380b6c9003f36a8 have valid signatures. 2019-01-05T23:52:37Z Setting nMinimumChainWork=0000000000000000000000000000000000000000028822fef1c230963535a90d 2019-01-05T23:52:37Z Using the ‘sse4(1way),sse41(4way),avx2(8way)’ SHA256 implementation 2019-01-05T23:52:37Z Using RdRand as an additional entropy source 2019-01-05T23:52:37Z Default data directory /Users/anaonanaon1/Library/Application Support/Bitcoin 2019-01-05T23:52:37Z Using data directory /Users/anaonanaon1/Library/Application Support/Bitcoin 2019-01-05T23:52:37Z Using config file /Users/anaonanaon1/Library/Application Support/Bitcoin/bitcoin.conf 2019-01-05T23:52:37Z Using at most 125 automatic connections (2560 file descriptors available) 2019-01-05T23:52:37Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements 2019-01-05T23:52:37Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements 2019-01-05T23:52:37Z Using 8 threads for script verification 2019-01-05T23:52:37Z scheduler thread start 2019-01-05T23:52:37Z HTTP: creating work queue of depth 16 2019-01-05T23:52:37Z No rpcpassword set - using random cookie authentication. 2019-01-05T23:52:37Z Generated RPC authentication cookie /Users/anaonanaon1/Library/Application Support/Bitcoin/.cookie 2019-01-05T23:52:37Z HTTP: starting 4 worker threads 2019-01-05T23:52:37Z Using wallet directory /Users/anaonanaon1/Library/Application Support/Bitcoin/wallets 2019-01-05T23:52:37Z init message: Verifying wallet(s)… 2019-01-05T23:52:37Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2019-01-05T23:52:37Z Using wallet wallet.dat 2019-01-05T23:52:37Z BerkeleyEnvironment::Open: LogDir=/Users/anaonanaon1/Library/Application Support/Bitcoin/wallets/database ErrorFile=/Users/anaonanaon1/Library/Application Support/Bitcoin/wallets/db.log 2019-01-05T23:52:37Z Cache configuration: 2019-01-05T23:52:37Z * Using 2.0MiB for block index database 2019-01-05T23:52:37Z * Using 8.0MiB for chain state database 2019-01-05T23:52:37Z * Using 4490.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space) 2019-01-05T23:52:37Z init message: Loading block index… 2019-01-05T23:52:37Z Opening LevelDB in /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/index 2019-01-05T23:52:37Z Opened LevelDB successfully 2019-01-05T23:52:37Z Using obfuscation key for /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/index: 0000000000000000 2019-01-05T23:52:40Z LoadBlockIndexDB: last block file = 1485 2019-01-05T23:52:40Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=9, size=2126192, heights=557091…557108, time=2019-01-05…2019-01-05) 2019-01-05T23:52:40Z Checking all blk files are present… 2019-01-05T23:52:43Z Opening LevelDB in /Users/anaonanaon1/Library/Application Support/Bitcoin/chainstate 2019-01-05T23:52:43Z Opened LevelDB successfully 2019-01-05T23:52:43Z Using obfuscation key for /Users/anaonanaon1/Library/Application Support/Bitcoin/chainstate: 30e54f02b376fa77 2019-01-05T23:52:43Z Loaded best chain: hashBestChain=0000000000000000002f3cb3939d8685c8976dc9e35ccec08c4e121b12688974 height=557090 date=2019-01-05T03:35:07Z progress=0.999527 2019-01-05T23:52:43Z init message: Rewinding blocks… 2019-01-05T23:52:45Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/blk01485.dat 2019-01-05T23:52:45Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/rev01485.dat 2019-01-05T23:52:45Z init message: Verifying blocks… 2019-01-05T23:52:45Z Verifying last 6 blocks at level 3 2019-01-05T23:52:45Z [0%]…[16%]…[33%]…[50%]…[66%]…[83%]…[99%]…[DONE]. 2019-01-05T23:52:46Z No coin database inconsistencies in last 6 blocks (8393 transactions) 2019-01-05T23:52:46Z block index 8721ms 2019-01-05T23:52:46Z init message: Loading wallet… 2019-01-05T23:52:46Z [default wallet] nFileVersion = 170001 2019-01-05T23:52:46Z [default wallet] Keys: 0 plaintext, 4158 encrypted, 4213 w/ metadata, 4158 total. Unknown wallet records: 1 2019-01-05T23:52:46Z [default wallet] Wallet completed loading in 66ms 2019-01-05T23:52:46Z [default wallet] setKeyPool.size() = 1999 2019-01-05T23:52:46Z [default wallet] mapWallet.size() = 217 2019-01-05T23:52:46Z [default wallet] mapAddressBook.size() = 256 2019-01-05T23:52:46Z mapBlockIndex.size() = 557226 2019-01-05T23:52:46Z nBestHeight = 557090 2019-01-05T23:52:46Z torcontrol thread start 2019-01-05T23:52:46Z AddLocal([2601:642:c400:f45:84d:337b:b4a2:647b]:8333,1) 2019-01-05T23:52:46Z Discover: IPv6 en0: 2601:642:c400:f45:84d:337b:b4a2:647b 2019-01-05T23:52:46Z Imported mempool transactions from disk: 0 succeeded, 0 failed, 0 expired, 0 already there 2019-01-05T23:52:46Z AddLocal([2601:642:c400:f45:65a9:a20f:d0ad:c2b0]:8333,1) 2019-01-05T23:52:46Z Discover: IPv6 en0: 2601:642:c400:f45:65a9:a20f:d0ad:c2b0 2019-01-05T23:52:46Z AddLocal([2601:642:c400:f45::a1cf]:8333,1) 2019-01-05T23:52:46Z Discover: IPv6 en0: 2601:642:c400:f45::a1cf 2019-01-05T23:52:46Z Bound to [::]:8333 2019-01-05T23:52:46Z Bound to 0.0.0.0:8333 2019-01-05T23:52:46Z init message: Loading P2P addresses… 2019-01-05T23:52:46Z Loaded 70405 addresses from peers.dat 205ms 2019-01-05T23:52:46Z init message: Loading banlist… 2019-01-05T23:52:46Z init message: Starting network threads… 2019-01-05T23:52:46Z dnsseed thread start 2019-01-05T23:52:46Z net thread start 2019-01-05T23:52:46Z addcon thread start 2019-01-05T23:52:46Z init message: Done loading 2019-01-05T23:52:46Z msghand thread start 2019-01-05T23:52:46Z opencon thread start 2019-01-05T23:52:46Z GUI: Platform customization: “macosx” 2019-01-05T23:52:46Z GUI: PaymentServer::LoadRootCAs: Loaded 176 root certificates 2019-01-05T23:52:55Z Leaving InitialBlockDownload (latching to false) 2019-01-05T23:52:57Z Loading addresses from DNS seeds (could take a while) 2019-01-05T23:52:57Z 163 addresses found from DNS seeds 2019-01-05T23:52:57Z dnsseed thread exit 2019-01-05T23:53:01Z New outbound peer connected: version: 70015, blocks=557225, peer=0 2019-01-05T23:53:02Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/blk01485.dat 2019-01-05T23:53:02Z ERROR: WriteBlockToDisk: OpenBlockFile failed 2019-01-05T23:53:02Z *** Failed to write block 2019-01-05T23:53:05Z ERROR: ProcessNewBlock: AcceptBlock FAILED (AcceptBlock: Failed to find position to write new block to disk (code 0)) 2019-01-05T23:53:05Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/blk01485.dat 2019-01-05T23:53:05Z ERROR: WriteBlockToDisk: OpenBlockFile failed 2019-01-05T23:53:05Z *** Failed to write block 2019-01-05T23:53:05Z ERROR: ProcessNewBlock: AcceptBlock FAILED (AcceptBlock: Failed to find position to write new block to disk (code 0)) 2019-01-05T23:53:05Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/blk01485.dat 2019-01-05T23:53:05Z ERROR: WriteBlockToDisk: OpenBlockFile failed 2019-01-05T23:53:05Z *** Failed to write block 2019-01-05T23:53:05Z tor: Thread interrupt 2019-01-05T23:53:05Z Shutdown: In progress… 2019-01-05T23:53:05Z torcontrol thread exit 2019-01-05T23:53:05Z addcon thread exit 2019-01-05T23:53:05Z net thread exit 2019-01-05T23:53:07Z ERROR: ProcessNewBlock: AcceptBlock FAILED (AcceptBlock: Failed to find position to write new block to disk (code 0)) 2019-01-05T23:53:07Z msghand thread exit 2019-01-05T23:53:07Z opencon thread exit 2019-01-05T23:53:07Z scheduler thread interrupt 2019-01-05T23:53:07Z Dumped mempool: 1.1e-05s to copy, 0.004685s to dump 2019-01-05T23:53:07Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/blk01485.dat 2019-01-05T23:53:07Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/rev01485.dat 2019-01-05T23:53:07Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/blk01485.dat 2019-01-05T23:53:07Z Unable to open file /Users/anaonanaon1/Library/Application Support/Bitcoin/blocks/rev01485.dat 2019-01-05T23:53:07Z [default wallet] Releasing wallet 2019-01-05T23:53:07Z Shutdown: done”

  2. fanquake added the label macOS on Jan 7, 2019
  3. fanquake added the label Data corruption on Jan 7, 2019
  4. MarcoFalke commented at 8:10 pm on August 1, 2019: member
    To work around this issue, you can do a -reindex
  5. fanquake closed this on Apr 26, 2020

  6. MarcoFalke commented at 11:44 am on April 26, 2020: 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

  7. MarcoFalke reopened this on Apr 26, 2020

  8. MarcoFalke closed this on Apr 26, 2020

  9. DrahtBot locked this on Feb 15, 2022

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-09-29 01:12 UTC

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