Open roberth opened 1 year ago
Ran into this bug after the system locked up and hard rebooted.
error: executing SQLite statement 'pragma synchronous = off': database disk image is malformed, database disk image is malformed (in '/root/.cache/nix/fetcher-cache-v1.sqlite')
Unfortunately removing the corrupted file doesn't seem to have solved the problem...
EDIT: It did, but somehow my initial sudo rm -f
didn't work. Switching to root via su -
and deleting manually fixed it
Thanks for letting us know.
Observations:
pragma synchronous = off
), or later during an actual query
Describe the bug
When querying a substituter, the following message is printed.
It's the first time I see this
It may be very remotely related to https://github.com/NixOS/nix/issues/1353.
Workaround: IF the file is a
binary-cache-v*.sqlite
, just remove it. Note that you may have two of these files; one for root (nix-daemon) and one in~/.cache/nix
for any given user that runs nix.Steps To Reproduce
Expected behavior
nix-env --version
outputnix-env (Nix) 2.15.1
hercules-ci-agent:
identical nix versions:
Additional context
Reported for completeness. I don't think this requires action yet, because of the suspicious circumstance in which I found the error. However, if more reports come in, some improvements may be in order (docs, error messages, a fix? ...)
Priorities
Add :+1: to issues you find important. (and leave a comment if you think you have possibly relevant details, such as different / better circumstances than the original report)