While trying nixos-rebuild, I’m getting a lot of error: failed to read compressed data (truncated input) errors. I’m using lix 2.93.3. In 8 years of nixos I’ve never seen this error before, nor have I found anything about it online. Any ideas? The only other potentially relevant information that comes to mind is that the previous nixos-rebuild failed because of lack of disk space. Might that have corrupted the store somehow?
Probably it was an unreliable network connection. I ran nix-store --verify --check-contents --repair which didn’t produce any output, and at the same time repeated the rebuild. This time it went through without errors.