Repro on Xenial
0DISTRIB_ID=Ubuntu
1DISTRIB_RELEASE=16.04
2DISTRIB_CODENAME=xenial
3DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
With Bitcoin Core version v0.16.2.0-g2848aa808f (release build)
Steps
0sudo apt-get install bitcoind
1nohup bitcoind -regtest &
2sleep 5
3bitcoin-cli -regtest getblockchaininfo
Same result with ppa:bitcoin/bitcoin.
Result
0error: incorrect rpcuser or rpcpassword (authorization failed)
Expected
Show me the result of the command
Then I tried the following:
0bitcoind -regtest -rpcuser=blah -rpcpassword=blah -printtoconsole &
1sleep 5
2bitcoin-cli -regtest -rpcuser=blah -rpcpassword=blah getblockchaininfo
Same result
0error: incorrect rpcuser or rpcpassword (authorization failed)
Something is wrong with the rpc authentication?
EDIT:
Tested without -regtest
and it works.
Tested with -testnet
and it works.
Seems this bug is limited to regtest. Tested on Windows, everything works fine.