Error initializing wallet database environment #5567

issue leongaban opened this issue on December 30, 2014
  1. leongaban commented at 12:20 AM on December 30, 2014: none

    Hi, I'm not sure how to debug this error.

    I got Bitcoin compiled and ran sudo make install. Next I tried to run bitcoind and got the following error:

    ___________________    | ~/bitcoin @ Leons-MBP (leongaban)
    | => which bitcoind
    /usr/local/bin/bitcoind
    ___________________    | ~/bitcoin @ Leons-MBP (leongaban)
    | => which bitcoin-cli
    /usr/local/bin/bitcoin-cli
    ___________________    | ~/bitcoin @ Leons-MBP (leongaban)
    | => bitcoind
    : Error initializing wallet database environment /Users/leongaban/Library/Application Support/Bitcoin!
    ___________________    | ~/bitcoin @ Leons-MBP (leongaban)
    

    Below is the full print out I'm getting after using sudo make install

    | => sudo make install
    Password:
    Making install in src
    Making install in .
     ../src/build-aux/install-sh -c -d '/usr/local/bin'
      /usr/bin/install -c bitcoind bitcoin-cli '/usr/local/bin'
    make[3]: Nothing to be done for `install-data-am'.
    Making install in qt
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  install-recursive
    Making install in .
     ../../src/build-aux/install-sh -c -d '/usr/local/bin'
      /usr/bin/install -c bitcoin-qt '/usr/local/bin'
    make[5]: Nothing to be done for `install-data-am'.
    Making install in test
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  install-am
     ../../../src/build-aux/install-sh -c -d '/usr/local/bin'
      /usr/bin/install -c test_bitcoin-qt '/usr/local/bin'
    make[6]: Nothing to be done for `install-data-am'.
    Making install in test
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  install-am
      CXXLD    test_bitcoin
    clang: warning: argument unused during compilation: '-pthread'
    clang: warning: argument unused during compilation: '-pie'
    ld: entry point (_main) undefined. for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[3]: *** [test_bitcoin] Error 1
    make[2]: *** [install] Error 2
    make[1]: *** [install-recursive] Error 1
    make: *** [install-recursive] Error 1
    

    I also went back to the bitcoin folder and ran make check here is the printout:

    | => make check
    Making check in src
    Making check in .
      CXX      version.o
      AR       libbitcoin_common.a
      CXXLD    bitcoind
    clang: warning: argument unused during compilation: '-pthread'
    clang: warning: argument unused during compilation: '-pie'
      CXXLD    bitcoin-cli
    clang: warning: argument unused during compilation: '-pthread'
    clang: warning: argument unused during compilation: '-pie'
    Making check in qt
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-recursive
    Making check in .
      OBJCXXLD bitcoin-qt
    clang: warning: argument unused during compilation: '-pie'
    Making check in test
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-am
      CXXLD    test_bitcoin-qt
    clang: warning: argument unused during compilation: '-pie'
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
    PASS: test_bitcoin-qt
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
    make[9]: Nothing to be done for `all-am'.
    ============================================================================
    Testsuite summary for Bitcoin Core 0.9.3
    ============================================================================
    # TOTAL: 1
    # PASS:  1
    # SKIP:  0
    # XFAIL: 0
    # FAIL:  0
    # XPASS: 0
    # ERROR: 0
    ============================================================================
    Making check in test
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-am
      CXXLD    test_bitcoin
    clang: warning: argument unused during compilation: '-pthread'
    clang: warning: argument unused during compilation: '-pie'
    ld: entry point (_main) undefined. for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[3]: *** [test_bitcoin] Error 1
    make[2]: *** [check] Error 2
    make[1]: *** [check-recursive] Error 1
    make: *** [check-recursive] Error 1
    
  2. leongaban commented at 2:25 AM on December 30, 2014: none

    Ok I found the debug.log will this help?

    2014-12-30 00:13:28 Bitcoin version v0.9.3rc2-beta (2014-09-12 10:25:55 +0200)
    2014-12-30 00:13:28 Using OpenSSL version OpenSSL 1.0.1j 15 Oct 2014
    2014-12-30 00:13:28 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
    2014-12-30 00:13:28 Default data directory /Users/leongaban/Library/Application Support/Bitcoin
    2014-12-30 00:13:28 Using data directory /Users/leongaban/Library/Application Support/Bitcoin
    2014-12-30 00:13:28 Using at most 125 connections (2560 file descriptors available)
    2014-12-30 00:13:28 Using 8 threads for script verification
    2014-12-30 00:13:28 Using wallet wallet.dat
    2014-12-30 00:13:28 init message: Verifying wallet...
    2014-12-30 00:13:28 CDBEnv::Open : LogDir=/Users/leongaban/Library/Application   Support/Bitcoin/database ErrorFile=/Users/leongaban/Library/Application Support/Bitcoin/db.log
    2014-12-30 00:13:28 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument
    
    2014-12-30 00:13:28 Moved old /Users/leongaban/Library/Application Support/Bitcoin/database to   /Users/leongaban/Library/Application Support/Bitcoin/database.1419898408.bak. Retrying.
    2014-12-30 00:13:28 CDBEnv::Open : LogDir=/Users/leongaban/Library/Application Support/Bitcoin/database ErrorFile=/Users/leongaban/Library/Application Support/Bitcoin/db.log
    2014-12-30 00:13:28 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument
    
    2014-12-30 00:13:28 : Error initializing wallet database environment /Users/leongaban/Library/Application Support/Bitcoin!
    2014-12-30 00:13:28 Shutdown : In progress...
    2014-12-30 00:13:28 StopNode()
    2014-12-30 00:13:28 Shutdown : done
    2014-12-30 01:33:33 
    
  3. ghost commented at 2:30 AM on December 30, 2014: none

    Ìwhat should i do? And i don`t understand. Clearly.

  4. leongaban commented at 2:40 AM on December 30, 2014: none

    Oh this is just a question, trying to run bitcoind on my computer and running into this problem. Hoping someone knows what it is. Posted my question here as well: http://stackoverflow.com/questions/27698527/running-bitcoind-error-initializing-wallet-database-environment

  5. laanwj added the label Mac on Jan 1, 2015
  6. laanwj added the label Wallet on Jan 1, 2015
  7. jonasschnelli commented at 8:43 PM on January 9, 2015: contributor

    Did you follow the file docs/build-osx.md? Did you change the bitcoin.conf or gave any starup arguments? Did you try to remove /Users/leongaban/Library/Application Support/Bitcoin to get a fresh start?

  8. leongaban commented at 10:28 PM on January 10, 2015: none

    No, I gave up.... will trash everything and start over again. This can be closed...

  9. leongaban closed this on Jan 10, 2015

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