Can’t start bitcoind if rpcuser and rpcpassword are specified #14261

issue hiddenvs openend this issue on September 18, 2018
  1. hiddenvs commented at 4:06 pm on September 18, 2018: none

    I am running Bitcoin Core v016.2 on Ubuntu Server 16.04.03 and I have interesting problem. I can start and run bitcoind only if no rpcuser and rpcpassword is specified inside bitcoin.conf. If bitcoin.conf contains this two parameters set, it will start for a while and ends with that:

    2018-09-18 16:00:04 Bitcoin Core version v0.16.2 (release build) 2018-09-18 16:00:04 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2018-09-18 16:00:04 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures. 2018-09-18 16:00:04 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc 2018-09-18 16:00:04 Using the ‘sse4’ SHA256 implementation 2018-09-18 16:00:04 Using RdRand as an additional entropy source Bitcoin server starting

    That’s it. No daemon is running. Without rpcuser and rpcpassword there, it’s running fine, but communication with daemon is not posible due to authentication. Any idea ?

    bitcoin.conf content: listen=1 server=1 daemon=1 txindex=1 testnet=0 rpcuser=admin rpcpassword=verylongrandompassword

  2. ali8889 commented at 10:04 am on September 19, 2018: none
    Oky
  3. laanwj added the label Linux/Unix on Sep 19, 2018
  4. teknari commented at 3:47 pm on September 20, 2018: none

    I get a similar problem, except for me, it is having txindex=1. If I remove this line from the config file, or set txindex=0, bitcoind will start up fine. Otherwise, bitcoind shuts down right away.

    Running Ubuntu 16.04 LTS bitcoind version 160300

  5. MarcoFalke commented at 5:01 pm on September 20, 2018: member
    @teknari Note that you can’t change txindex between restarts without a reindex. bitcoind should print an appropriate error in that case.
  6. MarcoFalke commented at 5:02 pm on September 20, 2018: member
    @hiddenvs Note that you have to provide the datadir and chain to bitcoin-cli, so that the appropriate authentication values can be read from the cookie file
  7. teknari commented at 12:17 pm on September 21, 2018: none
    @MarcoFalke That worked for me. Thank you very much!
  8. MarcoFalke closed this on Sep 21, 2018

  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: 2024-12-21 15:12 UTC

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