Wallets not automatically loaded #31832

issue embetrix openend this issue on February 10, 2025
  1. embetrix commented at 8:25 am on February 10, 2025: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    after starting bitcoind the wallets are not automatically loaded

    Expected behaviour

    the wallets should be automatically loaded

    Steps to reproduce

    My bitcoin.conf

     0pid=/run/bitcoin/bitcoind.pid
     1nodebuglogfile=1
     2datadir=/var/bitcoin
     3loglevel=info
     4proxy=127.0.0.1:9050
     5testnet4=1
     6
     7[testnet4]
     8walletdir=/var/wallet
     9
    10server=1
    11rpcuser=satobox
    12rpcport=8332
    13rpcconnect=127.0.0.1
    14rpcauth=satobox:c7eadc9121b2af62e92df69f1$3eecb49b2600f152f728a9f66ab38028e8c710a04ea06c69e4a2f291e7d6eee3
    

    my wallet dir:

    0ls -l /var/wallet/
    1total 28
    2drwx------ 2 64874 64874  4096 Feb 10 08:19 Wallet-01
    3drwx------ 2 64874 64874  4096 Feb  9 14:55 Wallet-02
    4drwx------ 2 64874 64874  4096 Feb  9 14:56 Wallet-03
    

    when I start bitcoind:

    /usr/bin/bitcoind -conf=/etc/bitcoin/bitcoin.conf

    Nothing shows up:

    0# bitcoin-cli listwallets
    1[
    2]
    

    I have to load them manually:

    bitcoin-cli loadwallet "Wallet-01"

    0# bitcoin-cli listwallets
    1[
    2  "Wallet-01"
    3]
    

    Relevant log output

    see above

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    master

    Operating system and version

    Ubuntu 24.04

    Machine specifications

    No response

  2. maflcko commented at 8:52 am on February 10, 2025: member

    If you want to have a wallet loaded on startup, you’ll have to set load_on_startup to True.

    To learn more about the loadwallet RPC, you can try help loadwallet.

  3. maflcko added the label Questions and Help on Feb 10, 2025
  4. maflcko added the label Wallet on Feb 10, 2025
  5. maflcko commented at 8:52 am on February 10, 2025: member

    Usually the issue tracker is used to track technical issues related to the Bitcoin Core code base.

    General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange or the #bitcoin IRC channel on Libera Chat, or one of the Bitcoin subreddits, or any other place that you feel is well suited.

  6. willcl-ark commented at 8:57 am on February 10, 2025: member
    In addition to @maflcko’s suggestion, another way to explicitly load wallets at startup is to use the -wallet=<path> startup option in your configuration (multiple times in your case, for multiple wallets).
  7. embetrix commented at 10:23 am on February 10, 2025: none

    thanks for the suggestions:

    the following command:

    bitcoin-cli loadwallet "Wallet-01" true

    make a wallet automatically loaded

  8. embetrix closed this on Feb 10, 2025


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: 2025-02-22 06:12 UTC

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