I run it like the below.
bitcoind -datadir=/Users/varunvb/Downloads -conf=/Users/varunvb/Downloads/bitcoin.conf -daemon
When I run (Using the user name and password as in the config file)
bitcoin-cli -rpcuser=<USER> -rpcpassword=<PWD> getinfo
I get
error: incorrect rpcuser or rpcpassword (authorization failed)
I see the below in the debug log
ThreadRPCServer incorrect password attempt from 127.0.0.1
My bitcoin.conf file looks like this:
-e
rpcuser=<USER>
rpcpassword=<PWD>
bitcoin.conf
? Is there anotherbitcoin-core
instance running at the same time on the same machine? – George Kimionis Jan 12 '15 at 16:38-e
beforerpcuser
. Please consult this sample configuration. – George Kimionis Jan 12 '15 at 17:04-conf=/Users/varunvb/Downloads/bitcoin.conf
to bitcoin-cli. – Nick ODell Jan 12 '15 at 17:13bitcoin-cli -conf=/Users/varunvb/Downloads/bitcoin.conf -datadir=/Users/varunvb/Downloads getinfo
and that should be it. – George Kimionis Jan 12 '15 at 17:43