Bitcoin Forum
July 04, 2024, 08:59:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind not recognising bitcoin.conf  (Read 1883 times)
tupelo (OP)
Member
**
Offline Offline

Activity: 99
Merit: 10


View Profile
November 24, 2015, 11: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=<password> 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
spidergoat
Member
**
Offline Offline

Activity: 103
Merit: 10


View Profile
November 24, 2015, 12:16:18 PM
 #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=<password> 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]
tupelo (OP)
Member
**
Offline Offline

Activity: 99
Merit: 10


View Profile
November 24, 2015, 12:43:21 PM
 #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.
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!