Bitcoin Forum
July 19, 2024, 11:44:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: An unsolicited update broke my Bitcoin Core  (Read 95 times)
Picaflor (OP)
Jr. Member
*
Offline Offline

Activity: 30
Merit: 6


View Profile
May 24, 2024, 10:32:45 PM
Merited by LoyceV (4)
 #1

Ubuntu 22.04.4 LTS. I had Bitcoin Core 23.0 if I remember correctly. After months of it running I realized it had stopped working.

It turned out Snap had updated it to 27.0. I downgraded it to 25.2 using Ubuntu Software package manager in the hope it would be less broken, but it's equally broken.

I don't have `bitcoind` or `bitcoin-cli` like I used to. The symlinks point to non-existent files.
However, I do have `bitcoin-core.daemon` and `bitcoin-core.cli`. I created symlinks to them as follows:

Code:
sudo ln -s /snap/bin/bitcoin-core.daemon /usr/local/bin/bitcoind
sudo ln -s /snap/bin/bitcoin-core.cli /usr/local/bin/bitcoin-cli

but when I run `bitcoind`, it gives me output from Snap and not from `bitcoin-core.daemon`.

This is not the main issue, as I can replace `bitcoind` with `bitcoin-core.daemon` in the systemd config file (but it would be handy to fix).

What I'm struggling with is passing the config file to it. When I run:
Code:
/snap/bin/bitcoin-core.daemon -conf=/home/sov/.bitcoin/bitcoin.conf
I get:
Code:
Error: Error reading configuration file: specified config file "/home/sov/.bitcoin/bitcoin.conf" could not be opened.

The file is readable:
Code:
-rw-r--r-- 1 sov sov 617 Aug 22  2023 /home/sov/.bitcoin/bitcoin.conf

 Huh
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3458
Merit: 6793


Just writing some code


View Profile WWW
May 25, 2024, 12:59:35 AM
Merited by LoyceV (4), DaveF (2)
 #2

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.

ABCbits
Legendary
*
Offline Offline

Activity: 2940
Merit: 7680


Crypto Swap Exchange


View Profile
May 25, 2024, 09:53:18 AM
 #3

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!