Switched to Bitcoin Knots and Electrs Doesn't Work Anymore

I recently switched from Bitcoin core to Bitcoin Knots and my Electrs app doesn’t work anymore. I tried uninstalling and reinstalling. I tried installing it via SSH. and still no luck. The logs show that the container keeps crashing.

Can anyone help me with this?

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: 12.22.21.7:8332, daemon_p2p_addr: 12.22.21.7: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.9)", signet_magic: f9beb4d9 }
[2025-06-13T18:34:24.380Z INFO  electrs::metrics::metrics_impl] serving Prometheus metrics on 127.0.0.1:4224
[2025-06-13T18:34:24.380Z INFO  electrs::server] serving Electrum RPC on 0.0.0.0:50001
[2025-06-13T18:34:24.562Z INFO  electrs::db] "/data/db/bitcoin": 1593 SST files, 0.612273724 GB, 0.046923681 Grows
[2025-06-13T18:34:26.286Z INFO  electrs::chain] loading 212770 headers, tip=000000000000022da79f2be8e500b85d2a5b4f7268edf301ec9e21bcf4c5d776
[2025-06-13T18:34:27.842Z INFO  electrs::chain] chain updated: tip=000000000000022da79f2be8e500b85d2a5b4f7268edf301ec9e21bcf4c5d776, height=212770
[2025-06-13T18:34:28.012Z INFO  electrs::index] indexing 2000 blocks: [212771..214770]
thread 'index_build' panicked at 'core returned invalid block: MoreBytesNeeded', src/index.rs:317:49
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'reader thread panic: Any { .. }', src/index.rs:229:27
[2025-06-13T18:34:28.141Z INFO  electrs::db] closing DB at /data/db/bitcoin

Is Electrs pointed to the right folder since you are using Knots? Consider switching back to core until you figure this out.

I found this: Using Knots instead of Bitcoin Core

Yeah I already saw the guide but wasn’t helpful. It would be nice if there was a clear thorough guide available from the Umbrel team.

When I switched to Knots, Electrs stopped for 2 days. It seems that it needs to resync, so once it did that, it started working again. Unfortunately Electrs does not communicate what it’s doing real well and we all think that something has gone wrong.

By the way, there are a few videos on YouTube regarding Knots settings that are helpful, but the default ones are pretty good. I might have only changed one of them.

1 Like

Similar issue for me: I was already running Knots and then installed Electrs. Electrs somehow stopped Knots from connecting to other Peers and stopped working. I had to uninstall Electrs and restart Knots. Knots is now running fine - but I have not reinstalled Electrs until I figure out what’s going on. Quite frustrating.