I can't define bitcoin.conf file in different folder as default #25886

issue furkandamar-ox opened this issue on August 20, 2022
  1. furkandamar-ox commented at 12:16 PM on August 20, 2022: none

    I installed the bitcoin libraries on /mnt/volume_fra1_02, ran it via the following setting

    bitcoind -datadir=/mnt/volume_fra1_02/.bitcoin -conf=/mnt/volume_fra1_02/.bitcoin/bitcoin.conf

    i get an error when i want to create a new wallet

    bitcoin-cli createwallet adminwallet

    response : No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/root/.bitcoin/bitcoin.conf)

    Probably still based on "/root/.bitcoin/bitcoin.conf" directory.

    Could you help?

  2. MarcoFalke commented at 12:24 PM on August 20, 2022: member

    You'll need to tell bitcoin-cli the auth credentials in one way or another.

    If you use cookie-auth, the -datadir should be enough to specify. If you use rpcauth in the conf file, the -conf should be enough to specify. If you don't know, you can pass both (the same you passed to bitcoind).

    See also bitcoin-cli -help.

  3. MarcoFalke added the label Questions and Help on Aug 20, 2022
  4. furkandamar-ox commented at 12:31 PM on August 20, 2022: none

    it shows as "Configuration file: (/root/.bitcoin/bitcoin.conf)" in the error message, but I specified the location differently.

  5. furkandamar-ox commented at 12:32 PM on August 20, 2022: none

    bitcoin.conf file : daemon=1 server=1 rpcuser=***** rpcpassword=**** rpcallowip=0.0.0.0 rpcport=8332

  6. kouloumos commented at 2:08 PM on August 21, 2022: contributor

    it shows as "Configuration file: (/root/.bitcoin/bitcoin.conf)" in the error message, but I specified the location differently.

    How did you specify the location? What shows in the error message is the location in which it looks for the configuration file. /root/.bitcoin/bitcoin.conf looks like the default location which means that you didn't specify /mnt/volume_fra1_02/.bitcoin correctly.

    What MarcoFalke has suggested is to try and run bitcoin-cli -datadir=/mnt/volume_fra1_02/.bitcoin -conf=/mnt/volume_fra1_02/.bitcoin/bitcoin.conf createwallet adminwallet

    If you are using a non-default path (in this case /mnt/volume_fra1_02/.bitcoin ) you'll need to append the appropriate -datadir/-conf flag on every command.

  7. MarcoFalke closed this on Aug 23, 2022

  8. bitcoin locked this on Aug 23, 2023

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-26 06:13 UTC

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