getumbrel / umbrel

A beautiful home server OS for self-hosting with an app store. Buy a pre-built Umbrel Home with umbrelOS, or install on a Raspberry Pi or any x86 system.
https://umbrel.com
Other
6.9k stars 508 forks source link

Electrs/Electrum stuck waiting #1724

Open nilskp opened 6 months ago

nilskp commented 6 months ago

This is 0.10.1 image The Bitcoin node is fully synced. image

shawnyeager commented 6 months ago

I ran into the same problem setting up my newly bought Umbrel Home last week. Uninstalling and reinstalling Electrum did the trick. Unfortunately, I ran into similar oddities with Specter and Thunderhub, as well, both of which I uninstalled and reinstalled; seems to have fixed it.

nilskp commented 6 months ago

@shawnyeager I was trying to avoid that, because Umbrel doesn't allow you to uninstall, if there are any dependencies. So now I have to also uninstall Samourai to even be able to uninstall Electrum. It's really a little idiotic that I can't just stop Samourai in the interim.

nilskp commented 6 months ago

Ok, I went ahead and uninstalled/reinstalled. Same problem.

nilskp commented 6 months ago

This Docker container keeps restarting

electrs_electrs_1                   Restarting (1) Less than a second ago
nilskp commented 6 months ago

Perhaps this is helpful:

electrs_1     | Starting electrs 0.10.1 on aarch64 linux with Config { network: Bitcoin, db_path: "/data/db/bitcoin", daemon_dir: "/data/.bitcoin", daemon_auth: CookieFile("/data/.bitcoin/.cookie"), daemon_rpc_addr: 10.21.21.8:8332, daemon_p2p_addr: 10.21.21.8:8333, electrum_rpc_addr: 0.0.0.0:50001, monitoring_addr: 127.0.0.1:4224, wait_duration: 10s, jsonrpc_timeout: 15s, index_batch_size: 10, index_lookup_limit: None, reindex_last_blocks: 0, auto_reindex: true, ignore_mempool: false, sync_once: false, skip_block_download_wait: false, disable_electrum_rpc: false, server_banner: "Umbrel Electrs (0.10.1)", signet_magic: a9b4b4d8, args: [] }
electrs_1     | [2023-12-15T23:35:12.985Z INFO  electrs::metrics::metrics_impl] serving Prometheus metrics on 127.0.0.1:4224
electrs_1     | [2023-12-15T23:35:12.985Z INFO  electrs::server] serving Electrum RPC on 0.0.0.0:50001
electrs_1     | [2023-12-15T23:35:13.126Z INFO  electrs::db] "/data/db/bitcoin": 1207 SST files, 0.001228704 GB, 0.000000021 Grows
electrs_1     | [2023-12-15T23:35:13.150Z WARN  electrs::p2p] failed to shutdown p2p connection: Transport endpoint is not connected (os error 107)
electrs_1     | [2023-12-15T23:35:13.151Z INFO  electrs::db] closing DB at /data/db/bitcoin
electrs_1     | Error: electrs failed
electrs_1     | 
electrs_1     | Caused by:
electrs_1     |     receiving on an empty and disconnected channel

Seems related to https://github.com/romanz/electrs/issues/769

Radiokot commented 5 months ago

If you can't find a fix for this electrs issue or encounter any other issues, especially performance ones, consider replacing electrs with ElectrumX following this guide: https://github.com/smolgrrr/awesome-umbrel/blob/main/mods/electrumx-instead-of-electrs.md

For me, such replacement significantly increased node usage experience.