Repro on Xenial
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
With Bitcoin Core version v0.16.2.0-g2848aa808f (release build)
Steps
sudo apt-get install bitcoind
nohup bitcoind -regtest &
sleep 5
bitcoin-cli -regtest getblockchaininfo
Same result with ppa:bitcoin/bitcoin.
Result
error: incorrect rpcuser or rpcpassword (authorization failed)
Expected
Show me the result of the command
Then I tried the following:
bitcoind -regtest -rpcuser=blah -rpcpassword=blah -printtoconsole &
sleep 5
bitcoin-cli -regtest -rpcuser=blah -rpcpassword=blah getblockchaininfo
Same result
error: 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.