Bitcoin Forum
May 10, 2024, 11:48:44 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RPi 5, Bitcoin Core Installed using SNAP, bitcoin.conf not usable  (Read 64 times)
MadMacks (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 5


View Profile
March 31, 2024, 05:59:33 PM
Merited by LoyceV (2)
 #1

I have a RPi 5 running the latest Rpi OS (Bookworm) that I installed Bitcoin Core (26.0.0) on. This seemed to work fine, and when I started Bitcoin Core is successfully downloaded the blockchain and appears to be running fine.

I then decided to install Sparrow Wallet on my MacBook Pro and connect it to the local instance of Bitcoin Core on the RPi. So I went to the Pi, and went opened btw core, click on the on Options, and then click on "Open Configuration File", and get absolutely nothing.

So I spend a terminal window and went to ~/snap/bitcoin-core/common/.bitcoin and manually opened the empty bitcoin.conf file.

I added the following info to configure file to allow connections to local devices...

Code:
rpcuser=myuserid
rpcpassword=mypassword

[main]
rpcbind=127.0.0.1
rpcbind=192.168.1.33
rpcallowip=127.0.0.1
rpcallowip=192.168.1.0/16

If I understand correctly this should tell Bitcoin Core to bind to localhost and to IP address 192.168.1.33, and to allow connections using the ID and password from localhost or any device in the 192.168.1.X range.

I then restarted Bitcoin Core and tried to configure Sparrow Wallet to connect to the local Core server...and I get "Connection Refused" when I test the connection.

So I went back to the RPi and checked the log for Core and I only see the following the log...

Code:
2024-03-31T17:22:32Z Bound to 127.0.0.1:8334
2024-03-31T17:22:32Z Bound to [::]:8333
2024-03-31T17:22:32Z Bound to 0.0.0.0:8333


So, the questions...

1) If Bitcoin Core is installed using SNAP is there some extra install configuration that needs to be done to make Bitcoin Core understand it's not a "plain jane" install?

2) Is there some issue you see in the configure file I've set up?

3) If installing Bitcoin Core using SNAP creates all kinds of PITA issues, can I do a "plain jane" install of Bitcoin Core on my RPi and move the existing downloaded blockchain to the new install without having to redownload the entire thing again?

If I'd know using SNAP was going to introduce issues (assuming it did) to installed packages I'd have done a regular install of Bitcoin Core and skipped using SNAP.

Feedback would be appreciated on the above!
1715341724
Hero Member
*
Offline Offline

Posts: 1715341724

View Profile Personal Message (Offline)

Ignore
1715341724
Reply with quote  #2

1715341724
Report to moderator
1715341724
Hero Member
*
Offline Offline

Posts: 1715341724

View Profile Personal Message (Offline)

Ignore
1715341724
Reply with quote  #2

1715341724
Report to moderator
1715341724
Hero Member
*
Offline Offline

Posts: 1715341724

View Profile Personal Message (Offline)

Ignore
1715341724
Reply with quote  #2

1715341724
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715341724
Hero Member
*
Offline Offline

Posts: 1715341724

View Profile Personal Message (Offline)

Ignore
1715341724
Reply with quote  #2

1715341724
Report to moderator
MadMacks (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 5


View Profile
March 31, 2024, 06:22:59 PM
Merited by LoyceV (2), ABCbits (1)
 #2

Well, never mind...mostly...

The issue, as is usual, was me and my misconfiguration....

I went back in to the config file and changed it to...

Code:
server=1
rpcuser=myuserid
rpcpassword=mypassword

[main]
rpcbind=127.0.0.1
rpcbind=192.168.1.33
rpcport=8335
rpcallowip=127.0.0.1
rpcallowip=192.168.1.0/16


Restarted, and the config was loaded and I can now connect using port 8335...

I still don't know why trying to open the config file from within the Options panel by clicking "Open Configuration File" fails, so if someone can shed light on that it would be great.

But apparently I really needed the "server=1" and to set rpcport to some other port that was not already being used for other things...
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!