Electrs stuck at "connecting to Electrs server..."

Hi. I’ve been running Core + Electrs for quite a long time without any trouble.

Then suddenly today Sparrow couldn’t connect to my server. In Sparrow it says: “Connection failed: Illegal State Error (I/O error during a request processing)”

I then went to Umbrel.local and updated Core, Electrs, Mempool and also the Umbrel operating system to v1.3.

Core is fully synced and running, but I can see that it lags behind ~1-2 minutes when a new block is created. My mempool app is apparantly not updating as it should. It is stuck several blocks behind and is not fully loading, i.e. current transactions fees. In Electrs it says “Running”, BUT it is stuck at “Connecting to Electrs server…”.

I’ve tried to refresh / update the Electrs window many times without luck and I’ve restarted my node from the Umbrel OS.

EDIT: I should add that my internet connection is otherwise completely fine. My node stats looks great: cpu, memory, storage and temperature are all fine.

Can anyone help me?

1 Like

1 day later and Electrs is still stuck at " Connecting to Electrs server…" even though it says “Running”. Sparrow cannot connect.

1 Like

Did you find a solution to this issue? I just finished syncing Bitcoin Core and then Electrs, and now getting the same “Connecting to Electrs server…” message.

Mine is working now. I think it because I had opened Electrs in Umbrella on 2 different devices. When I went to the device I opened it on first it showed synchronized. Closed that browser, opened it again on the 2nd device, and it showed as synchronized.

I had to delete and reinstall Electrs to do the syncing process from scratch.

still not working
seems electrs uses cookie instead of RPC Login.

How to login via rpc?


electrs_electrs_1    | Caused by:
electrs_electrs_1    |     0: bitcoind RPC polling failed
electrs_electrs_1    |     1: daemon not available
electrs_electrs_1    |     2: JSON-RPC error: transport error: unexpected HTTP code: 401
electrs_electrs_1    | Starting electrs 0.10.9 on aarch64 linux with Config { network: Bitcoin, db_path: "/data/db/bitcoin", db_log_dir: None, db_parallelism: 1, daemon_auth: CookieFile("/data/.bitcoin/.cookie"), daemon_rpc_addr: 1x.2x.2x.8:8332, daemon_p2p_addr: 1x.2x.2x.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
1 Like

I have the same issue. I have tried both Electrs and Fulcrum and they both show “Running” but also “Connecting to Electrs server…”. If I try to enable them in sparrow, I get the message “Connection failed: Socket Error (SOCKS server general failure)”. I have tried to uninstall/reinstall Electrs but it didn’t help. I’m running Umbrel on a RPi 4 with 8GB of RAM and I have tried both with local network and over Tor. My Bitcoin node is fully synced and I have waited 48h for Electrs and Fulcrum (separately) to sync. But I have not seen a progress bar as others have mentioned here. Any ideas how to get this to work?

1 Like

I have the same issue. Did you get it fixed?

Same here, there was an update for it and in my case after that it isn’t working anymore.

Yeah there was a port missing after the update.

“electrs_electrs_1 | Error: Failed to resolve address 10.21.21.7:: invalid port value”

So in waiting for a patch i hard coded “docker-compose.yml” in Electrs (you can modify it in Files)

in my case i use Knots so i put (line 33 to 35) :

ELECTRS_DAEMON_RPC_ADDR: ${APP_BITCOIN_NODE_IP}:${APP_BITCOIN_RPC_PORT}
ELECTRS_DAEMON_P2P_ADDR: ${APP_BITCOIN_NODE_IP}:${APP_BITCOIN_P2P_WHITEBIND_PORT}
ELECTRS_ELECTRUM_RPC_ADDR: 0.0.0.0:${APP_ELECTRS_NODE_PORT}

To

ELECTRS_DAEMON_RPC_ADDR: ${APP_BITCOIN_NODE_IP}:9332
ELECTRS_DAEMON_P2P_ADDR: ${APP_BITCOIN_NODE_IP}:9333
ELECTRS_ELECTRUM_RPC_ADDR: 0.0.0.0:50001

i guess for Bitcoin core it’s

ELECTRS_DAEMON_RPC_ADDR: ${APP_BITCOIN_NODE_IP}:8332
ELECTRS_DAEMON_P2P_ADDR: ${APP_BITCOIN_NODE_IP}:8333
ELECTRS_ELECTRUM_RPC_ADDR: 0.0.0.0:50001

and after that you need to restart Electrs

2 Likes

I am a relative novice at this. I am having the same issues. How did you open the Files to make the changes?

you download this file and edit it with notepad or Sublime text and you reupload it

1 Like

Thank you so much. that worked great

Hope the developers can make a patch for this soon

Happy to help, i know this kind of thing is annoying (i create an account just for this lol)

1 Like

Thanks a lot, worked fine