Stuck at 0 peers after upgrade

Hello,

I’ve been using umbrel for years now without any major problems but this time I’m stuck.

I was running umbrel on a rpi 4 but it stopped working and I could not get it back up again. I decided to upgrade to a rpi 5 since there was no longer the option to install on a 4.

I installed on a SD card, connected the network and ssd from the previous install and powered up. It came to life immediately and all the apps and settings were still there but bitcoin shows 0 peers and doesn’t sync. I’ve tried restarting, removing tor only, reindexing by removing “reindex-chainstate=1”.

How can I get connected to peers again?

Find a good peer near where you are located and get their IP Address.

sudo docker exec -it bitcoin_app_1 bitcoin-cli addnode “ipaddress:8333”

Here is a nice command to show you right from the command line too:

sudo docker exec -it bitcoin_app_1 bitcoin-cli getpeerinfo | jq -r --arg now “$(date +%s)” ‘. | sort_by(.conntime) | reverse | .[] | “(.addr) | Inbound: (.inbound) | Relay: (.relaytxes) | Uptime: ((($now | tonumber) - .conntime) / 60 | floor) min”’

2 Likes
umbrel@umbrel:~/umbrel/bin$ sudo docker exec -it bitcoin-knots_app_1 bitcoin-cli getpeerinfo
error: timeout on transient error: Could not connect to the server 127.0.0.1:8332

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
Use "bitcoin-cli -help" for more info.
umbrel@umbrel:~/umbrel/bin$

What do I do about the “Could not connect to the server” error?