Post
Topic
Board Bitcoin Technical Support
Merits 1 from 1 user
Topic OP
electrs panic, what to do ?
by
Rexall
on 08/07/2024, 05:37:34 UTC
⭐ Merited by ABCbits (1)
Hi All,

I am running bitcoin-25.1 and electrs 0.1.0 on an ubuntu-server linux box.
Something has gotten corrupted, perhaps due to a power outage.
I can look up blocks in mempool but not addresses.
When I try to look up an address mempool returns:

Error loading address data.
(Connection to server lost, please retry)

bitcoind seems to be ok:
{
  "chain": "main",
  "blocks": 851208,
  "headers": 851208,
  "bestblockhash": "00000000000000000002ccc5f0d8854b61026a419c8930e6b92106158fc028f7",
  "difficulty": 79495195323031.48,
  ...

Looking in /var/log/syslog I see:

Jul  8 00:00:18 nodebox electrs[109893]: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { message: "Corruption: block checksum mismatch: stored = 2965610381, computed = 3759059513, type = 1  in /home/satoshi/electrs/bitcoin/232529.sst offset 73693426 size 2770" }', src/db.rs:279:44

Then it seems that electrs restarts itself and the same thing happens again. Over and over.
What do I have to do to sort this?  Is there a way to re-index everything?

Thanks in advance for any tips.

Rex