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?
rpcuser=[username]
rpcpassword=[password]