CDBEnv::EnvShutdown: Error -30974 shutting down database environment: DB_RUNRECOVERY: Fatal error, run database recovery #11575

issue qubit1729 opened this issue on October 29, 2017
  1. qubit1729 commented at 5:59 PM on October 29, 2017: none

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

    This issue tracker is only for technical issues related to bitcoin-core.

    General bitcoin questions and/or support requests and are best directed to the Bitcoin StackExchange.

    For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/.

    Describe the issue

    My original wallet is from 2012. I have not done any updates for some time. My problem appears on two different computers. Sync is working but at the end there comes an error flashing-db (see screenshot). I tried -rescan and -upgradewallet. I resynced from scratch on my original computer. needed more than one week... At the end it showed a balance of zero. after rescan and upgrade wallet I got my balance but it always crashes at the end answering the error (see screenshot). The wallet.dat is updated so there is no write problem.

    Can you reliably reproduce the issue?

    If so, please list the steps to reproduce below:

    1. Tried several versions - always the same

    2. Tried two computers - same error

    Expected behaviour

    Tell us what should happen No error at end of sync

    Actual behaviour

    Tell us what happens instead flashing-db error and exit of program at end of sync

    Screenshots.

    If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.

    What version of bitcoin-core are you using?

    List the version number/commit ID, and if it is an official binary, self compiled or a distribution package such as PPA. Distributed binary v0.15.0.1

    Machine specs:

    -> see CPU-Z file JIDONG.txt

    • OS: Windows 10 64bit
    • CPU: Intel Core 2 Duo -> other computer hexacore AMD
    • RAM: Tried computer with 8GB other computer 32GB
    • Disk size: 1TB
    • Disk Type (HD/SDD): HD, other computer SDD

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

    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.

    If you need the whole Logfile please tell me a secure way for transfer. The essential Part at the end looks like this:

    2017-10-27 14:07:34 CDBEnv::EnvShutdown: Error -30974 shutting down database environment: DB_RUNRECOVERY: Fatal error, run database recovery 2017-10-27 14:07:34 Shutdown: done err-flashing-db

  2. TheBlueMatt commented at 6:08 PM on October 30, 2017: member

    It sounds like your wallet is actually corrupted (this can happen if a file just sits on a drive for some years). I'd recommend a) make sure to work on a copy of the file instead of the original and b) ask on Stackexhange for advice on how to get the private keys out of a corrupted wallet.

    On October 29, 2017 2:00:01 PM EDT, qubit1729 notifications@github.com wrote:

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

    This issue tracker is only for technical issues related to bitcoin-core.

    General bitcoin questions and/or support requests and are best directed to the Bitcoin StackExchange.

    For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/.

    Describe the issue

    My original wallet is from 2012. I have not done any updates for some time. My problem appears on two different computers. Sync is working but at the end there comes an error flashing-db (see screenshot). I tried -rescan and -upgradewallet. I resynced from scratch on my original computer. needed more than one week... At the end it showed a balance of zero. after rescan and upgrade wallet I got my balance but it always crashes at the end answering the error (see screenshot). The wallet.dat is updated so there is no write problem.

    Can you reliably reproduce the issue?

    If so, please list the steps to reproduce below:

    1. Tried several versions - always the same

    2. Tried two computers - same error

    Expected behaviour

    Tell us what should happen No error at end of sync

    Actual behaviour

    Tell us what happens instead flashing-db error and exit of program at end of sync

    Screenshots.

    If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.

    What version of bitcoin-core are you using?

    List the version number/commit ID, and if it is an official binary, self compiled or a distribution package such as PPA. Distributed binary v0.15.0.1

    Machine specs:

    -> see CPU-Z file JIDONG.txt

    • OS: Windows 10 64bit
    • CPU: Intel Core 2 Duo -> other computer hexacore AMD
    • RAM: Tried computer with 8GB other computer 32GB
    • Disk size: 1TB
    • Disk Type (HD/SDD): HD, other computer SDD

    Any extra information that might be useful in the debugging

    process. 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.

    If you need the whole Logfile please tell me a secure way for transfer. The essential Part at the end looks like this:

    2017-10-27 14:07:34 CDBEnv::EnvShutdown: Error -30974 shutting down database environment: DB_RUNRECOVERY: Fatal error, run database recovery 2017-10-27 14:07:34 Shutdown: done err-flashing-db

    -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/bitcoin/bitcoin/issues/11575

  3. qubit1729 commented at 8:54 PM on October 30, 2017: none

    Dear BlueMatt, Thank you for your repsonse. Are you developer? Is there now way to find out the consistency of the wallet? It could be checked without the blockchain. I waited more than 10 days to sync the whole blockchain. Also the errormessage could be more specific. I tried it with several copies of my wallet.dat (different age). If the wallet is currupt it has been corrupted by the software. How can I do a database recovery as told by the error message? Leopold

  4. MarcoFalke added the label Questions and Help on Nov 1, 2017
  5. MarcoFalke added the label Wallet on Nov 1, 2017
  6. qubit1729 commented at 6:23 AM on November 2, 2017: none

    Dear BlueMatt, I made a JSON dump with pywallet which worked fine. So the wallet.dat should not be corrupted. Am I right?

  7. TheBlueMatt commented at 7:52 PM on November 2, 2017: member

    BDB does not provide more granular error details as far as I know, and it may be encourtering an error when it tries to write, or at any point, not just reading the wallet in the same way pywallet does. Most likely you should just dump the wallet and create a new one using the dump, but unless you believe this to be a Bitcoin Core issue, you should seek support at StackExchange, where folks will likely know more about pywallet/be more helpful than here.

  8. MarcoFalke closed this on Nov 2, 2017

  9. 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-21 15:15 UTC

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