Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: donno20 on August 21, 2018, 03:32:51 PM



Title: Seem like bitcoin -daemon not run
Post by: donno20 on August 21, 2018, 03:32:51 PM
In terminal I key in following

ubuntu@ip-111:/etc/bitcoin$ bitcoind -daemon
Bitcoin server starting
ubuntu@ip-111:/etc/bitcoin$ bitcoin-cli uptime
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/ubuntu/.bitcoin/bitcoin.conf)

Then I check netstat -ltap but no bitcoind appear as one of PID listening to port.


Please guide me what has wrong.


Title: Re: Seem like bitcoin -daemon not run
Post by: AdolfinWolf on August 21, 2018, 04:34:26 PM
I don't think you configured/ran it correctly.

A quick google search on your error gives a lot of instances with people that seem to have the exact same problem.

See

Quote
You're getting this error because bitcoind isn't running. Once it is, it will create an authentication cookie, and bitcoin-cli will be able to connect.

To start bitcoind from cmd prompt, type:
Code:
cd C:/Program\ Files/Bitcoin/daemon/
Press enter, then type:
Code:
bitcoind
And press enter.
https://bitcoin.stackexchange.com/questions/59140/could-not-locate-rpc-credentials-error?rq=1

Obviously replace the paths with your respective paths.

Let me know if this resolves anything.


Title: Re: Seem like bitcoin -daemon not run
Post by: achow101 on August 21, 2018, 04:38:33 PM
That error means that bitcoind started, ran into a problem (usually in the configuration) and then shut down.

Please post the contents of your debug.log file.


Title: Re: Seem like bitcoin -daemon not run
Post by: TheArchaeologist on August 21, 2018, 04:41:16 PM
Can you check the debug.log file because it seems your bitcoind is not running based on the error message you gave.

Code:
tail /home/ubuntu/.bitcoin/debug.log

The output of the debug.log could help a lot to see what's your problem. But there is a good chance the directory bitcoind is trying to access either doesn't exist or is doesn't have access right to read/write there. Or you are having errors in your confguration file. In the last case delete your bitcoin.conf file all together and try again.