[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [Nix-dev] unable to delete a store path
From:       mathijs () bluescreen303 ! nl (Mathijs Kwik)
Date:       2012-09-26 21:39:24
Message-ID: CAKvOHKBg_tGnOKOhtbkUMFsK4irWA0JiscMGnm7HFehmrqC2gA () mail ! gmail ! com
[Download RAW message or body]

On Wed, Sep 26, 2012 at 10:32 PM, Eelco Dolstra
<eelco.dolstra at logicblox.com> wrote:
> Hi,
>
> On 26/09/12 08:07, Mathijs Kwik wrote:
>
>> On Wed, Sep 26, 2012 at 1:55 PM, Shea Levy <shea at shealevy.com> wrote:
>>> If you do give up, before manually deleting it try nix-store --delete
>>> --ignore-liveness. That bypasses gcroots but fails if there's another path
>>> in the path's referrers (so it shouldn't fail in your case, but it might
>>> since this seems like a bug).
>>
>> Now it gets even weirder. I tried a normal --delete again and it worked!
>
> Is it possible that when you first tried to delete it, the path was still in use
> by a running process?  The garbage collector uses open files as GC roots.  These
> do not show up in "nix-store -q --roots".
>
> See https://github.com/NixOS/nix/blob/master/scripts/find-runtime-roots.pl.in

Possibly. I might have had a shell or emacs window open on it.
We'll never know for sure, but I'll check that if this happens again.

Thanks
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic