An unexpected update messed up my Bitcoin Core

2 replies 96 views
cryptolabMember
Posts: 24 · Reputation: 126
#1Feb 8, 2025, 11:48 PM
So I'm on Ubuntu 22.04.4 LTS and I think I had Bitcoin Core version 23.0. After it running fine for months, I noticed it just stopped working. Turns out Snap updated it to 27.0 without asking me. I tried to downgrade to version 25.2 using the Ubuntu Software package manager, hoping it would be less buggy, but no luck. It's just as broken. I can't find `bitcoind` or `bitcoin-cli` anymore like before. The symlinks are pointing to files that don’t exist. But I do see `bitcoin-core.daemon` and `bitcoin-core.cli`. I made symlinks to those: But when I try to run `bitcoind`, I just get output from Snap instead of `bitcoin-core.daemon`. Not a huge deal since I can just change `bitcoind` to `bitcoin-core.daemon` in the systemd config file, but it'd be nice to fix the symlink issue. The real problem I'm facing is getting the config file to work with it. When I run it, I get this: The file is readable:
4 Reply Quote Share
Posts: 166 · Reputation: 27
#2Feb 9, 2025, 02:00 AM
Snaps have additional sandboxing and isolation implemented, so when you run a snap app, it will generally be unable to access arbitrary locations on the filesystem. I would suggest just downloading the binary tarball from bitcoincore.org and copying the binaries to your desired target locations.
1 Reply Quote Share
blockhub968Full Member
Posts: 978 · Reputation: 317
#3Feb 9, 2025, 04:15 AM
FWIW, it's default Snap behavior which update 4 times a day[1]. Bitcoin Core on Snap already access home by default[2], although it seems to exclude hidden file/folder[3]. You probably can fix this problem by adding personal-files plug/permission to Bitcoin Core[3]. Although i also suggest you to use binary tarball instead. [1] https://snapcraft.io/docs/managing-updates [2] https://github.com/bitcoin-core/packaging/blob/main/snap/snapcraft.yaml#L16-L26 [3] https://askubuntu.com/a/1238219
3 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics