We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d24e50 + 6ac7085 commit aede7d3Copy full SHA for aede7d3
source/faq.rst
@@ -10,7 +10,15 @@ Secrets?
10
How do I fix: error: querying path in database: database disk image is malformed
11
--------------------------------------------------------------------------------
12
13
-No known solution yet.
+Try:
14
+
15
+ sqlite3 /nix/var/nix/db/db.sqlite "pragma integrity_check"
16
17
+Which will print the errors in the database. If the errors are due to missing
18
+references, the following may work:
19
20
+ mv /nix/var/nix/db/db.sqlite /nix/var/nix/db/db.sqlite-bkp
21
+ sqlite3 /nix/var/nix/db/db.sqlite-bkp ".dump" | sqlite3 /nix/var/nix/db/db.sqlite
22
23
24
How nix decides which parts of the environment affect a derivation and its sha256 hash
0 commit comments