[Nix-dev] Nix database error

Eelco Dolstra eelco.dolstra at logicblox.com
Fri Jun 5 12:46:42 CEST 2015


Hi,

On 05/06/15 01:03, Arseniy Seroka wrote:

> Trying to execute any nix command (nix-env, nixos-rebuild, nix-store)
> and getting this `error: querying path in database: database
> disk image is malformed`. What's that and how to repair?

It means SQLite has trouble reading the Nix database (/nix/var/nix/db/db.sqlite).

Can you make a backup of that file and then see what this says:

$ sqlite3 /nix/var/nix/db/db.sqlite 'pragma integrity_check'

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list