Comments (6)
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.
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.
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.
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.
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.
This issue has been closed due to inactivity.
from raspibolt.
Related Issues (20)
- Upgrading to Debian Bookworm HOT 5
- OpenTimestamps client requires virtual environment to run HOT 1
- Initial block download is incredibly slow HOT 6
- [BUG] RTL upgrade to 0.15 should reference nodejs install instructions HOT 2
- Instructions for Bitcoin Knots HOT 6
- [FEATURE REQ] Add Liquid Network / Elements bonus guide? HOT 2
- [FEATURE REQ] Consider check for TRIM support for SSD HOT 2
- Stuck at verifying bitcoind operation due to permission problem HOT 3
- Unable to upgrade Electrum Server to v0.10.4 HOT 5
- LNDg: 502 Bad Gateway error even after adding user 'www-data' to group 'lndg' HOT 5
- Permission cookie HOT 1
- Zeus will not connect HOT 1
- Migrating Raspibolt from Raspberry Pi4 to Pi5
- [BUG] v3 LNbits.service --debug not supported
- [FEATURE REQ] Harddisk upgrade? 1TB SSD getting full HOT 3
- Installation process of Homer Raspibolt Dashboard HOT 2
- Errors begining install of joinmarket clientserver bonus guide HOT 1
- [BUG] latest lnbits v0.12.5 ยป lnbits-reverse-proxy.conf doesn't allow topup and restart HOT 3
- RasPi5: BTC won't install: sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-$VERSION/bin/* HOT 6
- Debian GNU/Linux 12 (bookworm) Unable to install NGINX - directive "stream" (install libnginx-mod-stream not working)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspibolt.