Please provide as much information as possible to help the community/ team resolve your issue quicker
Error was faced by user @xorinox and reported in Discord.
Jul 17 06:47:39 node-6d subspace-farmer[68092]: 2022-07-17T10:47:39.703017Z INFO subspace_farmer::farming: Subscribing to slot info notifications
Jul 17 06:47:39 node-6d subspace-farmer[68092]: 2022-07-17T10:47:39.735619Z INFO subspace_farmer::farming: Farming stopped!
...truncated a lot of lines so you can see next
Jul 17 06:47:39 node-6d subspace-farmer[68092]: 2022-07-17T10:47:39.781752Z INFO subspace_farmer::farming: Farming stopped!
Jul 17 06:47:41 node-6d subspace-farmer[68092]: Error: Index DB open error: Corruption: Corrupted Key: '<redacted>' seq:2989609, type:8
Jul 17 06:47:42 node-6d systemd[1]: subspace-farmer.service: Main process exited, code=exited, status=1/FAILURE
Jul 17 06:47:42 node-6d systemd[1]: subspace-farmer.service: Failed with result 'exit-code'.
Jul 17 06:47:42 node-6d systemd[1]: subspace-farmer.service: Consumed 34min 38.274s CPU time.
You guys saw this before? Since I have it configured to run as daemons (systemd), it restarted immediately after the error and succeeded this time.
but now I see a lot of these errors
096449303, type = 1 in /chia/scratch/disk01/subspace/plot3/plot-index-to-offset/000017.sst offset 41499645 size 4063
Jul 17 06:52:24 node-6d subspace-farmer[80757]: 2022-07-17T10:52:24.068887Z INFO subspace_farmer::archiving: Plotted segment segment_index=15347
Jul 17 06:52:24 node-6d subspace-farmer[80757]: 2022-07-17T10:52:24.178509Z ERROR subspace_farmer::plotting: Failed to write encoded pieces error=Corruption: block checksum mismatch: stored = 216074205, computed = 1096449303, type = 1 in /chia/scratch/disk01/subspace/plot3/plot-index-to-offset/000017.sst offset 41499645 size 4063
Jul 17 06:52:24 node-6d subspace-farmer[80757]: 2022-07-17T10:52:24.963661Z INFO subspace_farmer::archiving: Plotted segment segment_index=15348
Jul 17 06:52:25 node-6d subspace-farmer[80757]: 2022-07-17T10:52:25.123088Z ERROR subspace_farmer::plotting: Failed to write encoded pieces error=Corruption: block checksum mismatch: stored = 216074205, computed = 1096449303, type = 1 in /chia/scratch/disk01/subspace/plot3/plot-index-to-offset/000017.sst offset 41499645 size 4063
This happened after I stopped the farmer service. I think the code doesn’t “sync” to storage.
Maybe plot.bin should not be opened with O_SYNC, there is a performance hit, obviously. But all the other smaller files, they appear to be meta data or index types of files?
Thanks for reporting the issue
I suspect that the issue is that fsync wasn’t enabled for rocksdb. Here is the pull request which you can follow for updates: