Coder Social home page Coder Social logo

Comments (6)

BillyMabe456 avatar BillyMabe456 commented on June 24, 2024

All I know is I've had issues with these cookie permissions for a few months now, not sure what is going on exactly but something changed after upgrading to bitcoin 25.0 I've been running this node for several years and try to keep up with the changes. My power goes out occasionally or my router freaks out, and my node needs to be restarted. When it does it generates the cookie file with the wrong permissions: ( -rw------- ) and nothing can access it.

There's code in the bitcoind.service that is supposed to assign the correct permissions to this cookie on startup which doesn't seem to work (probably lacking the correct permissions somehow)
"-startupnotify="chmod g+r /home/bitcoin/.bitcoin/.cookie"

I found if I switch to the bitcoin user, then run "chmod g+r /home/bitcoin/.bitcoin/.cookie" myself, All my RPC connections like electrum or whatever work again.

Unfortunately, that's as far as my troubleshooting could take me.

from raspibolt.

jpanachida avatar jpanachida commented on June 24, 2024

As I understand the issue, it is not about .cookie permission but the absolute path of it. Members of bitcoin group (e.g. admin, electrs) should access datadir using /data/bitcoin/ or ~/.bitcoin/ path (if defined). They should not use bitcoin's home directory /home/bitcoin/ because of insufficient permissions.

from raspibolt.

dosoid avatar dosoid commented on June 24, 2024

I had the same issue, "Permission denied", even that .cookie file has group "read" access to bitcoin group....change electrs.conf file daemon_dir to /data/bitcoin, now it's working...

from raspibolt.

willcl-ark avatar willcl-ark commented on June 24, 2024

There were some permissions changes merged in bitcoin/bitcoin#17127 which mean that the cookie will be created with 0700 permissions, i.e. only readable by the user (bitcoin for you, I think?). Currently, this can't be configured at the Bitcoin Core level, requiring the -startupnotify workaround described above.

However, I have a PR open here: bitcoin/bitcoin#28167 which aims to permit setting permissions on the .cookie file, for use-cases such as this. With that patch you'd be able to add e.g. -rpccookieperms=640 to your startup options.

from raspibolt.

github-actions avatar github-actions commented on June 24, 2024

This issue is marked as stale because there was no activity for 60 days. If the issue stays inactive, it will be closed in a week.

from raspibolt.

github-actions avatar github-actions commented on June 24, 2024

This issue has been closed due to inactivity.

from raspibolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.