Bitcoin

Bitcoin Core – Bitcoind cannot find RPC credentials, but rpcuser and password are set.

I installed bitoind and synced it. But when I try to connect from a PHP website I get the following message: Unable to connect to http://user:(email protected):18332/. Also, when I try to view the password via command

bitcoin-cli -stdinrpcpass getblockchaininfo

it comes back

could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/blockchain/.bitcoin/bitcoin.conf).

My bitcoin.conf file is set up and works fine.

rpcuser=USER
rpcpassword=PASS
testnet=0
daemon=1
rpcport=18332
rpcallowip=*
server=1
datadir=/blockchain/.bitcoin
txindex=1

Related Articles

Back to top button