Post
Topic
Board Bitcoin Technical Support
Merits 7 from 2 users
Re: electrs panic, what to do ?
by
ABCbits
on 08/07/2024, 09:08:26 UTC
⭐ Merited by LoyceV (4) ,DaveF (3)
I am running bitcoin-25.1 and electrs 0.1.0 on an ubuntu-server linux box.


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

I know this is lazy answer, but electrs 0.1.0 released 6 years ago[1] while latest electrs version is 0.10.5. So it's probably faster to delete all electrs file/application and then install latest version of electrs. But looking at commit for version 0.1.0[2], it shows cargo run --release -- -vvv --timestamp --db-dir ./db can be used to make index.

[1] https://github.com/romanz/electrs/releases/tag/v0.1.0
[2] https://github.com/romanz/electrs/tree/7a170c6e1153cabb4f3508f8f6a96ba9a0740faf