Re: [Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-07 Thread Bjørn Forsman
On 7 July 2016 at 10:41, Domen Kožar wrote: > Can you open an issue to document them? https://github.com/NixOS/nix/issues/966 ("nix.conf option "sync-before-registering" is not documented") https://github.com/NixOS/nixpkgs/issues/16770 ("nixos-rebuild documentation doesn't mention all CLI options

Re: [Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-07 Thread Domen Kožar
Can you open an issue to document them? On Wed, Jul 6, 2016 at 1:21 PM, Bjørn Forsman wrote: > On 5 July 2016 at 17:57, Eelco Dolstra > wrote: > > Hi, > > > > On 07/05/2016 05:18 PM, Bjørn Forsman wrote: > >> Long version: > >> I wanted to see how atomic and safe a NixOS update process really i

Re: [Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-06 Thread Bjørn Forsman
On 5 July 2016 at 17:57, Eelco Dolstra wrote: > Hi, > > On 07/05/2016 05:18 PM, Bjørn Forsman wrote: >> Long version: >> I wanted to see how atomic and safe a NixOS update process really is, >> so I abused one of my systems by pulling the rootfs disk from it a >> number of times duing "nixos-rebui

Re: [Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-05 Thread Eelco Dolstra
Hi, On 07/05/2016 05:18 PM, Bjørn Forsman wrote: > Short version. > This doesn't work (what else can I try?): > > $ sudo nix-store --verify --repair --check-contents > reading the Nix store... > checking path existence... > checking hashes... > path ‘/nix/store/1f0rxsgjcsdxj6jl6qaz555wcaxs164c-x

Re: [Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-05 Thread Bjørn Forsman
On 5 July 2016 at 17:21, Vladimír Čunát wrote: > On 07/05/2016 05:18 PM, Bjørn Forsman wrote: >> And, as you saw above, "sudo nix-store --verify --repair >> --check-contents" didn't fix it. >> >> Any suggestions? > > Why not just remove the *.drv files? (GC them) I initially tried to, with "nix-s

[Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-05 Thread Bjørn Forsman
Hi all, Short version. This doesn't work (what else can I try?): $ sudo nix-store --verify --repair --check-contents reading the Nix store... checking path existence... checking hashes... path ‘/nix/store/1f0rxsgjcsdxj6jl6qaz555wcaxs164c-xsession.drv’ was modified! expected hash ‘2e527f6df7f00f91

Re: [Nix-dev] How to fix corrupt .drv files in nix store?

2016-07-05 Thread Vladimír Čunát
On 07/05/2016 05:18 PM, Bjørn Forsman wrote: > And, as you saw above, "sudo nix-store --verify --repair > --check-contents" didn't fix it. > > Any suggestions? Why not just remove the *.drv files? (GC them) --Vladimir smime.p7s Description: S/MIME Cryptographic Signature