Author

Topic: Bitcoind not recognising bitcoin.conf (Read 1881 times)

member
Activity: 99
Merit: 10
November 24, 2015, 08:43:21 AM
#3
wumpus on IRC solved the issue.

The problem was the permission of the directory

sudo chown -R ubuntu:ubuntu /home/ubuntu/.bitcoin  solved this issue.
member
Activity: 103
Merit: 10
November 24, 2015, 08:16:18 AM
#2
Hello, I am trying to set up a full node on ubuntu (should add I am a complete noob)

bitcoind -daemon prompts: Bitcoin server starting
~$ Error: Cannot obtain a lock on data directory /home/ubuntu/.bitcoin. Bitcoin Core is probably already running. Permission denied.

But there is nothing running. To be sure I killed it with sudo pkill -9 -f bitcoind
Go to your data directory, delete the file with .lock extension. It should solve your problem.

bitcoin-cli getinfo prompts: error: You must set rpcpassword= in the configuration file: /home/ubuntu/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.


But I have set a bitcoin.conf and also sudo chown + sudo chmod on it.


Can somebody help me?
Thanks
Do you have these lines in your bitcoin.conf?
Code:
rpcuser=[username]
rpcpassword=[password]
member
Activity: 99
Merit: 10
November 24, 2015, 07:16:06 AM
#1
Hello, I am trying to set up a full node on ubuntu (should add I am a complete noob)

bitcoind -daemon prompts: Bitcoin server starting
~$ Error: Cannot obtain a lock on data directory /home/ubuntu/.bitcoin. Bitcoin Core is probably already running. Permission denied.


But there is nothing running. To be sure I killed it with sudo pkill -9 -f bitcoind

bitcoin-cli getinfo prompts: error: You must set rpcpassword= in the configuration file: /home/ubuntu/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.


But I have set a bitcoin.conf and also sudo chown + sudo chmod on it.


Can somebody help me?
Thanks
Jump to: