Skip to content

Commit

Permalink
Merge pull request NixOS#3 from ashgillman/patch-1
Browse files Browse the repository at this point in the history
Suggestion for malformed DB that worked for me
  • Loading branch information
domenkozar authored Dec 6, 2016
2 parents 0d24e50 + 6ac7085 commit aede7d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ Secrets?
How do I fix: error: querying path in database: database disk image is malformed
--------------------------------------------------------------------------------

No known solution yet.
Try:

sqlite3 /nix/var/nix/db/db.sqlite "pragma integrity_check"

Which will print the errors in the database. If the errors are due to missing
references, the following may work:

mv /nix/var/nix/db/db.sqlite /nix/var/nix/db/db.sqlite-bkp
sqlite3 /nix/var/nix/db/db.sqlite-bkp ".dump" | sqlite3 /nix/var/nix/db/db.sqlite


How nix decides which parts of the environment affect a derivation and its sha256 hash
Expand Down

0 comments on commit aede7d3

Please sign in to comment.