Re: [Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-18 Thread Peter Simons
Hi Oliver,

 > Unfortunately I am still stuck in the same situation - verify is
 > unhappy, but repair does nothing. Does anyone else have any ideas?

what does smartd say about the state of your drive? Does it pass its
self tests?

I've had this same problem on my laptop a few weeks ago, and it was
caused by a dying SSD. I also had all kinds of other issues with the
installation, like, builds would sometimes fail with bizarre error
messages because of /nix/store corruption. I ended up re-installing the
system from scratch on a new SSD to fix these issues. Maybe your drive
is in a weird state, too?

If the disk doesn't give any indication of trouble, then it might also
be worthwhile to boot into a RAM disk and force-efsck the various file
systems, just to make sure there's no issue on that layer either.

I hope this helps,
Peter

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-18 Thread Oliver Charles
Unfortunately I am still stuck in the same situation - verify is unhappy,
but repair does nothing.

Does anyone else have any ideas?

On Tue, Mar 14, 2017 at 5:41 PM obadz  wrote:

> Ollie, you may want to try this procedure if indeed sqlite is corrupted:
> https://github.com/NixOS/nix/issues/995#issue-167190248
>
> On Mar 14, 2017 10:26 AM, "Christian Kauhaus"  wrote:
>
> Am 14.03.2017 um 00:18 schrieb Oliver Charles:
> > Hmm, how did you reach that conclusion?
>
> Re-downloading from a trusted source (cache.nixos.org) gives the same
> "incorrect" checksum again. Of course it could be possible that the file is
> corrupted on cache.nixos.org, but following the "select isn't broken"
> rule[1] I would start to search elsewhere. This is just a suspicion not a
> hard proof. Perhaps you get the checksum errors due to something completely
> different.
>
> BR
>
> Christian
>
> [1] https://pragprog.com/the-pragmatic-programmer/extracts/tips
>
> --
> Dipl-Inf. Christian Kauhaus <>< · k...@flyingcircus.io · +49 345 219401-0
> Flying Circus Internet Operations GmbH · http://flyingcircus.io
> Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
> HR Stendal 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-14 Thread obadz
Ollie, you may want to try this procedure if indeed sqlite is corrupted:
https://github.com/NixOS/nix/issues/995#issue-167190248

On Mar 14, 2017 10:26 AM, "Christian Kauhaus"  wrote:

Am 14.03.2017 um 00:18 schrieb Oliver Charles:
> Hmm, how did you reach that conclusion?

Re-downloading from a trusted source (cache.nixos.org) gives the same
"incorrect" checksum again. Of course it could be possible that the file is
corrupted on cache.nixos.org, but following the "select isn't broken"
rule[1] I would start to search elsewhere. This is just a suspicion not a
hard proof. Perhaps you get the checksum errors due to something completely
different.

BR

Christian

[1] https://pragprog.com/the-pragmatic-programmer/extracts/tips

--
Dipl-Inf. Christian Kauhaus <>< · k...@flyingcircus.io · +49 345 219401-0
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
HR Stendal 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-14 Thread Christian Kauhaus
Am 14.03.2017 um 00:18 schrieb Oliver Charles:
> Hmm, how did you reach that conclusion?

Re-downloading from a trusted source (cache.nixos.org) gives the same 
"incorrect" checksum again. Of course it could be possible that the file is 
corrupted on cache.nixos.org, but following the "select isn't broken" rule[1] I 
would start to search elsewhere. This is just a suspicion not a hard proof. 
Perhaps you get the checksum errors due to something completely different.

BR

Christian

[1] https://pragprog.com/the-pragmatic-programmer/extracts/tips

-- 
Dipl-Inf. Christian Kauhaus <>< · k...@flyingcircus.io · +49 345 219401-0
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
HR Stendal 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-13 Thread Oliver Charles
Hmm, how did you reach that conclusion?

On Mon, Mar 13, 2017 at 8:48 AM Christian Kauhaus 
wrote:

> Am 12.03.2017 um 20:07 schrieb Oliver Charles:
> > Any idea what's going on here?
>
> Looks like the corruption is rather in the sqlite than in the tree. No
> idea how to fix this, though.
>
> Regards
>
> Christian
>
> --
> Dipl-Inf. Christian Kauhaus <>< · k...@flyingcircus.io · +49 345 219401-0
> Flying Circus Internet Operations GmbH · http://flyingcircus.io
> Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
> HR Stendal 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-13 Thread Christian Kauhaus
Am 12.03.2017 um 20:07 schrieb Oliver Charles:
> Any idea what's going on here?

Looks like the corruption is rather in the sqlite than in the tree. No idea how 
to fix this, though.

Regards

Christian

-- 
Dipl-Inf. Christian Kauhaus <>< · k...@flyingcircus.io · +49 345 219401-0
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
HR Stendal 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Nix-store --repair doesn't seem to be repairing

2017-03-12 Thread Oliver Charles
Any idea what's going on here?

➜  ~ sudo nix-store --verify-path
/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12

~
path ‘/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12’ was modified!
expected hash
‘84e441a23c8487315633fcd4a609cb4cb6044c0e82e0c98851fe155a1ae79568’, got
‘1b2101d3abb7
ea991b5c72e9746163551560f3c6a173161a4dae61eb811f77e3’

➜  ~ sudo nix-store --repair-path
/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12

~
fetching path ‘/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12’...

*** Downloading ‘
http://cache.nixos.org/nar/1b9hwwq4vmzhyc4mb9pml8nwy2zb8zcj9bzm5f5s2bl8nyarinkv.nar.xz’
to ‘/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12’...
 % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
Dload  Upload   Total   SpentLeft
 Speed
100  132k  100  132k0 0   464k  0 --:--:-- --:--:-- --:--:--
 465k

➜  ~ sudo nix-store --verify-path
/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12

~
path ‘/nix/store/2s0mb3dfp8bjmdckmzfp1vr3w3kr8s4v-gdbm-1.12’ was modified!
expected hash
‘84e441a23c8487315633fcd4a609cb4cb6044c0e82e0c98851fe155a1ae79568’, got
‘1b2101d3abb7
ea991b5c72e9746163551560f3c6a173161a4dae61eb811f77e3’
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev