berkeley database failed to open database environment #29286

issue freezoloto openend this issue on January 20, 2024
  1. freezoloto commented at 8:23 am on January 20, 2024: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    Hello, I installed a new wallet for myself, the blocks started updating to the latest version, but suddenly the computer rebooted and now I can’t open my wallet. The error appears: “berkeley database failed to open database environment” 2024-01-20_11-19-18

    Expected behaviour

    Hello, I installed a new wallet for myself, the blocks started updating to the latest version, but suddenly the computer rebooted and now I can’t open my wallet. The error appears: “berkeley database failed to open database environment” 2024-01-20_11-19-18

    Steps to reproduce

    Hello, I installed a new wallet for myself, the blocks started updating to the latest version, but suddenly the computer rebooted and now I can’t open my wallet. The error appears: “berkeley database failed to open database environment” 2024-01-20_11-19-18

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v26

    Operating system and version

    Windows 11pro

    Machine specifications

    No response

  2. freezoloto commented at 8:27 am on January 20, 2024: none
    2024-01-20_11-25-48 (2)
  3. willcl-ark commented at 11:38 am on January 22, 2024: contributor

    Hello @freezoloto. Can you confirm that there is a wallet database directory at that path? This error is primarily thrown when that directory does not exist, but can be thrown for other reasons, so it would be good to confirm that it does exist before trying to investigate further.

    On Linux (or WSL) this could be done by running something like this:

     0will in ~ :
     1$ cd .bitcoin
     2
     3will in ~/.bitcoin:
     4$ ls -al
     5.rw-------   75 will 22 Jan 09:15 .cookie
     6.rw-------    0 will 12 Jan 13:19 .lock
     7.rw-r--r-- 2.8k will 22 Jan 09:12 bitcoin.conf
     8...
     9drwxr-xr-x    - will 12 Jan 13:19 wallets
    10
    11will in ~/.bitcoin:
    12$ ls -al wallets
    13drwx------ - will 12 Jan 13:19 wallet1
    14drwx------ - will 22 Jan 09:15 wallet2
    15drwx------ - will 12 Jan 13:19 test-wallet-delete
    16drwx------ - will 12 Jan 13:19 test-wallet-disable-privkeys
    

    By default new wallets are created inside the wallets directory, so you should see another directory inside the wallets one with the same name as the wallet you are trying to load.

    Also checking for similar log line entries in the debug.log file which can be found in your data directory might provide us with more information. (e.g. a line beginning with BerkeleyEnvironment::Open: Error ...)

  4. willcl-ark added the label Wallet on Jan 22, 2024
  5. willcl-ark added the label Questions and Help on Jan 22, 2024
  6. freezoloto commented at 4:51 pm on January 22, 2024: none
    Thank you my friend, I have already deleted my wallet and am re-uploading the blockchain :-)
  7. willcl-ark commented at 6:19 pm on January 22, 2024: contributor

    OK great. I’ll close this for now then.

    Do open a new issue if it happens again and you confirm that the wallet database (directory) is present, but failing to load.

  8. willcl-ark closed this on Jan 22, 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-09-28 22:12 UTC

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