Post
Topic
Board Development & Technical Discussion
Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node
by
n0nce
on 16/11/2022, 21:08:49 UTC
Hi N0nce,

I followed the steps you outlined to install bitcoin-cli.  Doesn't appear to have worked, unfortunately.  I am getting the same error after installation in the debug file and when I ran bitcoin-cli echo 'hello world', I got the following:

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

I'm thinking I don't actually have bitcoin-cli installed as when I entered the command sudo install -m 0755 -o root -g root -t /usr/local/bin bin/bitcoin-cli, the command line simply reloaded to the base user and nothing was communicated about installation.
No, no, that all looks good. It just means Bitcoin Core is running as a different user. I get that when running bitcoin-cli as a different user than the actual Bitcoin Core bitcoind daemon.

I seriously hope it isn't the case, but it is possible that on default Futurebit OS, Core runs as root. To verify, try sudo bitcoin-cli getinfo.

If my suspicion holds true, you would need to create RPC credentials like the error message suggests.