DB corruption when computer goes to sleep

I’ve been using Syncthing for a while now and just started having this issue with my windows laptop. Every time I close the lid and put the laptop to sleep then open the laptop back up I get this panic log:

panic: leveldb/table: corruption on data-block (pos=917207): checksum mismatch, want=0x0 got=0x1d92c4ea [file=043817.ldb]

This only started happening after I updated to v0.11.6. I then delete the file 043817.ldb - start synching and the DB starts repairing itself:

[ZS4OK] 21:49:04 INFO: db repair: rewriting global version list for 4d696b655f50726f66696c6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 4d757369632f48696c6c736f6e67204175737472616c69612f50656f706c65204a757374204c696b652055732f303120496e74726f64756374696f6e2e6d7033

When it finishes everything works again until I put the computer to sleep.

Can you verify that it doesn’t happen with earlier versions?

Turns out I had a bad hard drive – haven’t had a problem since I repaired it.

1 Like