I am running Ver 0.5.3 on an RPI. I’ve been using this device for over a year with no issues.
After the 0.5.3 upgrade, electrs is not starting. I am seeing the following message in the log:
electrs_1 | thread ‘main’ panicked at ‘DB::put failed: Error { message: “Corruption: block checksum mismatch: expected 3555791665, got 3849520208 in /data/db/bitcoin/1197733.sst offset 178101390 size 2537” }’, src/db.rs:340:14
electrs_1 | note: run withRUST_BACKTRACE= 1
environment variable to display a backtrace
electrs_1 | [2022-12-08T03:17:58.313Z INFO electrs::db] closing DB at /data/db/bitcoin
electrs_1 | Starting electrs 0.9.9 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, disable_electrum_rpc: false, server_banner: “Umbrel Electrs (0.9.9)”, args: }
electrs_1 | [2022-12-08T03:18:00.877Z INFO electrs::metrics::metrics_impl] serving Prometheus metrics on 127.0.0.1:4224
electrs_1 | [2022-12-08T03:18:00.877Z INFO electrs::server] serving Electrum RPC on 0.0.0.0:50001
electrs_1 | [2022-12-08T03:18:00.942Z INFO electrs::db] “/data/db/bitcoin”: 219 SST files, 37.977352158 GB, 4.748850328 Grows
There is a troubleshooting post from Darthcoin (quoted below) that should fix the problem. However the file hierarchy has changed in Umbrel updates and these instructions need to be updated. I believe I just need to repair and reindex the electrs database. Any guidance on how to do this is appreciated.
See if there’s some file corruption or the index is broken. If there is such thing, run this command to repair / reindex electrs database:
sudo systemctl stop umbrel-startup && sudo rm -rf ~/umbrel/electrs/!(electrs.toml) && sudo systemctl start umbrel-startup
Then wait for one day (to allow electrs to reindex) and try connecting your BlueWallet to your Umbrel (or any wallet that supports Electrum) and see if that makes any difference.