[Nix-dev] error: querying path in database: database disk image is malformed

Marco Maggesi maggesi at math.unifi.it
Tue Jul 26 09:13:21 CEST 2016


Thanks Domen.

But how I do (re)install Nix?
>From sources?

M.

2016-07-25 10:46 GMT+02:00 Domen Kožar <domen at dev.si>:

> Happened to me once, I deleted the sqlite db (made a backup of it first)
> and just installed Nix again.
>
> On Mon, Jul 25, 2016 at 10:23 AM, Marco Maggesi <maggesi at math.unifi.it>
> wrote:
>
>> Hi,
>>
>> during the last upgrade I got this error:
>>
>> # nix-env --always -u
>> error: querying path in database: database disk image is malformed
>> (use ‘--show-trace’ to show detailed location information)
>>
>> Here is what sqlite says:
>>
>> ./sqlite3 /nix/var/nix/db/db.sqlite "pragma integrity_check"
>> *** in database main ***
>> Page 5033: btreeInitPage() returns error code 11
>> Page 3988: btreeInitPage() returns error code 11
>> Page 1926: btreeInitPage() returns error code 11
>> Page 2363: btreeInitPage() returns error code 11
>> Page 3146: btreeInitPage() returns error code 11
>> Page 5090: btreeInitPage() returns error code 11
>> Page 5124: btreeInitPage() returns error code 11
>> Page 283: btreeInitPage() returns error code 11
>> Error: database disk image is malformed
>>
>> Can you give me a suggestion on the cheapest way to recover from this?
>>
>> Thanks,
>> Marco
>>
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160726/e5ad17fe/attachment-0001.html>


More information about the nix-dev mailing list