You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nix refuses to garbage collect a path with no garbage collection roots
Steps To Reproduce
$ nix-store --delete /nix/store/kazyfiacq0mfcaqy28c4micglqxw9fhb-nixos-system-nixos-22.11.20220918.f1a49e2
finding garbage collector roots...
0 store paths deleted, 0.00 MiB freed
error: Cannot delete path '/nix/store/kazyfiacq0mfcaqy28c4micglqxw9fhb-nixos-system-nixos-22.11.20220918.f1a49e2' since it is still alive. To find out why, use: nix-store --query --roots
$ nix-store --query --roots /nix/store/kazyfiacq0mfcaqy28c4micglqxw9fhb-nixos-system-nixos-22.11.20220918.f1a49e2
$ # No output from the prior command
Expected behavior
I expected the path to be garbage collected since there are no garbage collection roots protecting the path.
I also verified that there were no temp roots associated with the path either. The only thing in /nix/var/nix/temproots was /nix/var/nix/temproots/30015 which contained this:
I also tried restarting the nix-daemon and trying again.
The problem still remains but it is not urgent to fix, so I can let it stay this way and run additional commands to debug things further if that helps.
The text was updated successfully, but these errors were encountered:
Describe the bug
Nix refuses to garbage collect a path with no garbage collection roots
Steps To Reproduce
Expected behavior
I expected the path to be garbage collected since there are no garbage collection roots protecting the path.
Additional context
The relevant parts of my Nix configuration are:
I also verified that there were no temp roots associated with the path either. The only thing in
/nix/var/nix/temproots
was/nix/var/nix/temproots/30015
which contained this:I also tried restarting the
nix-daemon
and trying again.The problem still remains but it is not urgent to fix, so I can let it stay this way and run additional commands to debug things further if that helps.
The text was updated successfully, but these errors were encountered: