"Error opening block database" after regular startup. Works again once after each fresh install. #9454

issue Compunologist opened this issue on January 1, 2017
  1. Compunologist commented at 8:13 PM on January 1, 2017: none

    <!--- Remove sections that do not apply -->

    Happy New Year everybody!

    Describe the issue

    I have installed Bitcoin Core (64-bit) and changed the data directory to one on my NAS. I ran Bitcoin Core and after 2 days of synchronizing the Bitcoin Core window shows "Up to date". The program exits without any problems.

    After each following regular startup however Bitcoin Core (64-bit) reports "Error opening block database. Do your want to rebuild the block database now?" and I have to abort the operation.

    When I install Bitcoin Core again and choose to "Run Bitcoin Core (64-bit)" everything works again, including the already synchronized blocks.

    Can you reliably reproduce the issue?

    If so, please list the steps to reproduce below:

    1. Start Bitcoin Core
    2. Message: "Error opening block database. Do your want to rebuild the block database now?"

    error opening block database do your want to rebuild the block database now - 2017-01-01 19_33_06-bitcoin

    1. Run the Bitcoin Core installer again: "bitcoin-0.13.1-win64-setup.exe"
    2. Choose "Run Bitcoin Core (64-bit)", everything works again

    2017-01-01 20_54_08-bitcoin core - wallet

    What version of bitcoin-core are you using?

    Bitcoin Core version v0.13.1 (64-bit)

    Machine specs:

    • OS: Windows 10 Pro
    • CPU: Intel Core i7
    • RAM: 8.00 GB
    • Disk size: 256GB & 4TB
    • Disk Type (HD/SDD): SSD & HD

    Any extra information that might be useful in the debugging process.

    This is how the debug.log looks like when the error occurs: Bitcoin debug_not working on regular startup.txt

    This is how the debug.log looks like after a reinstall with Bitcoin Core correctly running: Bitcoin debug_working again after fresh install.txt

  2. MarcoFalke added the label Windows on Jan 1, 2017
  3. MarcoFalke commented at 9:02 PM on January 1, 2017: member

    Relevant highlights from debug.log:

    2017-01-01 18:33:00 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
    [...]
    2017-01-01 18:33:01 Opening LevelDB in \\diskstation\incoming\Bitcoin\blocks\index
    2017-01-01 18:33:01 IO error: C:\Program Files\Bitcoin\\diskstation\incoming\Bitcoin\blocks\index\LOCK: Could not lock file.
    
  4. MarcoFalke added the label Utils and libraries on Jan 1, 2017
  5. robmcl4 commented at 10:30 PM on January 1, 2017: contributor

    I suspect the problem exists in src/leveldb/util/env_win.cc in ModifyPath(), which assumes paths beginning with a backslash are relative paths.

  6. MarcoFalke added this to the milestone 0.13.2 on Jan 1, 2017
  7. MarcoFalke removed this from the milestone 0.13.2 on Jan 1, 2017
  8. unsystemizer commented at 6:28 AM on January 2, 2017: contributor

    NAS? Has Bitcoin on Windows ever supported SMB? I don't think it did. Furthermore, #3641 (comment)

  9. jonasschnelli commented at 8:33 AM on January 2, 2017: contributor

    AFAIK LevelDB doesn't support SMB/AFP and other network based file-systems.

  10. jonasschnelli commented at 7:58 AM on January 3, 2017: contributor

    Duplicate of #9157. Closing

  11. jonasschnelli closed this on Jan 3, 2017

  12. MarcoFalke locked this on Sep 8, 2021

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: 2026-04-13 15:15 UTC

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