bitcoin-core / packaging

Distribution-specific packaging for Bitcoin Core
40 stars 40 forks source link

snap:cannot find bitcoin.conf or open it inside the app #238

Closed snex closed 3 weeks ago

snex commented 4 weeks ago

Inside the settings there is a button to open the config file and edit it manually, but the button does nothing. There are no logs that I can find to indicate what the problem might be.

Ubuntu 22.04.4 LTS jammy

snap info:

name:      bitcoin
summary:   peer-to-peer network based digital currency
publisher: Snap Retiring
store-url: https://snapcraft.io/bitcoin
license:   MIT
description: |
  Bitcoin is a free open source peer-to-peer electronic cash system that
  is completely decentralized, without the need for a central server or
  trusted parties.  Users hold the crypto keys to their own money and
  transact directly with each other, with the help of a P2P network to
  check for double-spending.
snap-id: GCxpYnjFpWcHZ410SZhPNrdhjNTGzr7Y
channels:
  latest/stable:    0.17.1 2019-03-07 (337) 106MB -
  latest/candidate: ↑                             
  latest/beta:      0.17.1 2019-02-19 (336) 141MB -
  latest/edge:      master 2018-12-09 (333) 122MB -
sipa commented 4 weeks ago

I'm surprised that snap still exists; Bitcoin Core releases are published under the "bitcoin-core" snap. The one you are using has 0.17 as latest version, which dates from 2018. The latest version is 27.0.

snex commented 4 weeks ago

Sorry.. I'm not sure why "snap info bitcoin" was returning something as I don't have that installed. I do in fact have bitcoin-core installed. Here's the info on bitcoin-core:

name:      bitcoin-core
summary:   Fully validating Bitcoin peer-to-peer network node, wallet and GUI
publisher: Bitcoin Core
store-url: https://snapcraft.io/bitcoin-core
contact:   https://github.com/bitcoin-core/packaging/issues/new?title=snap:
license:   unset
description: |
  Bitcoin Core connects to the Bitcoin peer-to-peer network to download and fully validate blocks
  and transactions. It also includes a wallet and graphical user interface.
commands:
  - bitcoin-core.cli
  - bitcoin-core.daemon
  - bitcoin-core.qt
  - bitcoin-core.tx
  - bitcoin-core.util
  - bitcoin-core.wallet
snap-id:      lGr3hNoqLtHTp2yV1BgnqyElQtLUDPeA
tracking:     latest/stable
refresh-date: 2 days ago, at 14:28 PDT
channels:
  latest/stable:    27.0 2024-04-18 (160) 121MB -
  latest/candidate: ↑                           
  latest/beta:      ↑                           
  latest/edge:      27.0 2024-04-18 (160) 121MB -
  27.x/stable:      27.0 2024-04-18 (160) 121MB -
  27.x/candidate:   ↑                           
  27.x/beta:        ↑                           
  27.x/edge:        27.0 2024-04-18 (160) 121MB -
  26.x/stable:      26.1 2024-04-18 (156) 121MB -
  26.x/candidate:   ↑                           
  26.x/beta:        ↑                           
  26.x/edge:        26.1 2024-04-02 (156) 121MB -
  25.x/stable:      25.2 2024-04-18 (168) 120MB -
  25.x/candidate:   ↑                           
  25.x/beta:        ↑                           
  25.x/edge:        25.2 2024-04-18 (168) 120MB -
  24.x/stable:      24.2 2023-12-06 (149) 121MB -
  24.x/candidate:   ↑                           
  24.x/beta:        ↑                           
  24.x/edge:        24.2 2023-12-06 (149) 121MB -
installed:          27.0            (160) 121MB -
snex commented 4 weeks ago

Ultimately I just want to enable peerbloomfilters which does not seem to be an available option in the GUI config.

maflcko commented 3 weeks ago

I think the problem is that the system editor can not be launched or can not be found by QT?

As a workaround, you can manually open the file in the datadir + bitcoin.conf. The datadir is shown in the Bitcoin Core GUI Information windows (CTRL+I), and the conf filename is explained in https://github.com/bitcoin-core/gui/blob/master/doc/files.md#data-directory-layout. Be aware of https://github.com/bitcoin-core/gui/issues/443

snex commented 3 weeks ago

Looks like that worked. Thank you.