Bitcoin Forum
May 25, 2024, 11:08:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Seem like bitcoin -daemon not run  (Read 147 times)
donno20 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
August 21, 2018, 03:32:51 PM
 #1

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.
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
August 21, 2018, 04:34:26 PM
 #2

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.

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
August 21, 2018, 04:38:33 PM
Merited by Foxpup (1)
 #3

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.

TheArchaeologist
Sr. Member
****
Offline Offline

Activity: 310
Merit: 727


---------> 1231006505


View Profile WWW
August 21, 2018, 04:41:16 PM
 #4

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.

Sooner or later you're going to realize, just as I did, that there's a difference between knowing the path and walking the path
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!