rpcpassword supposedly unset with -testnet #455

issue Plasma opened this issue on August 8, 2011
  1. Plasma commented at 8:49 AM on August 8, 2011: none

    PROBLEM Hi,

    Running bitcoind.exe under Windows with the -testnet flag shows:

    C:\Program Files (x86)\Bitcoin\daemon>bitcoind.exe -testnet Warning: To use bitcoind, you must set rpcpassword=<password> in the configuration file: C:/Users/Andrew/AppData/Roaming/Bitcoin/testnet/bitcoin.conf

    If the file does not exist, create it with owner-readable-only file permissions.

    I created and verified this file existed at the location, and had the rpcpassword (and rpcuser etc lines) all set.

    The error persisted.

    I then round Issue #78 which indicates the config file really being read is at C:/Users/Andrew/AppData/Roaming/Bitcoin/bitcoin.conf for -testnet (contrary to what the error message says).

    I then created C:/Users/Andrew/AppData/Roaming/Bitcoin/testnet.conf and then ran:

    bitcoind.exe -testnet -conf=testnet.conf

    And my problem disappeared.

    SOLUTION The error message should be updated to point to the right config file that bitcoind.exe is looking for, instead of being misleading.

    Thanks

  2. jgarzik commented at 9:40 PM on July 5, 2012: contributor

    It looks in the testnet (now testnet3) directory by default, when -testnet is specified

  3. jgarzik closed this on Jul 5, 2012

  4. zathras-crypto referenced this in commit d3eae60756 on Mar 26, 2017
  5. ptschip referenced this in commit 3c2b68917e on May 4, 2017
  6. DrahtBot 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-15 15:16 UTC

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