Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck at verifying bitcoind operation due to permission problem #1414

Closed
bioterra opened this issue Mar 17, 2024 · 3 comments
Closed

Stuck at verifying bitcoind operation due to permission problem #1414

bioterra opened this issue Mar 17, 2024 · 3 comments
Labels
support Help, I'm stuck somehow

Comments

@bioterra
Copy link

bioterra commented Mar 17, 2024

Describe the issue

I started with a clean install, and followed all steps in the Guide. When executing:

$ ls -la /home/bitcoin/.bitcoin/.cookie

I get the response:

ls: cannot access '/home/bitcoin/.bitcoin/.cookie': Permission denied

Location in guide

Bitcoin > Verification of bitcoind operations

Environment

  • Hardware platform: Raspberry Pi 4
  • Operating system: Debian GNU/Linux 12 (bookworm)

Additional context

Also, the subsequent steps in the guide lead errors:

tail -f /home/bitcoin/.bitcoin/debug.log

Returns:

tail: cannot open '/home/bitcoin/.bitcoin/debug.log' for reading: Permission denied

And,

bitcoin-cli getblockchaininfo

Returns:

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/admin/.bitcoin/bitcoin.conf)

Probably all related. I triple-checked whether I executed all previous steps in the guide and that seems to be the case... What to do?

@bioterra bioterra added the support Help, I'm stuck somehow label Mar 17, 2024
@kristapsk
Copy link
Collaborator

User from which you are running these commands must belong to the bitcoin group.

@bioterra
Copy link
Author

bioterra commented Mar 17, 2024

Thanks, I am running this from the "admin" user, as per the guide, and I added "admin" to the bitcoin group via:

sudo adduser admin bitcoin

Also as per the guide.

(If I re-run the above command it says: "adduser: The user admin is already a member of bitcoin.")

@bioterra
Copy link
Author

I found a solution, I had to give read+execute rights to members of the bitcoin group on the folder /home/bitcoin/

sudo chmod g+rx /home/bitcoin/

After that, the command ran as expected from the user admin:

admin@raspibolt:~ $ ls -la /home/bitcoin/.bitcoin/.cookie
-rw-r----- 1 bitcoin bitcoin 75 Mar 17 20:36 /home/bitcoin/.bitcoin/.cookie

I do think this chmod command is not part of the guide/walkthrough, should it be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Help, I'm stuck somehow
Projects
None yet
Development

No branches or pull requests

2 participants