romanz / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
1.1k stars 408 forks source link

DB seems to be corrupted after running out of disk space #996

Closed sha-265 closed 8 months ago

sha-265 commented 10 months ago

Describe the bug Unable to start Electrs, after I ran out of disk space, Electrs stop working.

The log shows:

Error: electrs failed

Caused by: 0: failed to open DB: /data/electrs-db/bitcoin 1: IO error: No such file or directoryWhile open a file for random read: /data/electrs-db/bitcoin/233685.ldb: No such file or directory

Any suggestions?

Electrs version 0.9.13

Kixunil commented 10 months ago

I'm afraid you'll have to delete the database and resync. :( But it's weird that rocksdb doesn't handle out of space errors more reasonably.

romanz commented 10 months ago

@sha-265 Did the resync succeed?

sha-265 commented 10 months ago

@sha-265 Did the resync succeed?

I don't know, now I think bitcoind DB is corrupted too, so I need to resync it before I can resync Electrs.

romanz commented 8 months ago

@sha-265 Ping :)

sha-265 commented 8 months ago

I didn't try to resync Electrs, I just gave up. But why wouldn't resyncing work?

romanz commented 8 months ago

Sounds good, thanks!