DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 2 million installs.
GNU Lesser General Public License v2.1
2.05k stars 52 forks source link

Uninstall can fail if Nix is GC'ing (?) #599

Open s-aditya-k opened 1 year ago

s-aditya-k commented 1 year ago

This error occurred after for no visible reason systemd could not find nix-daemon.service or nix-daemon.socket. I was in the process of reinstaling. running arch linux. can't manually sudo rm -rf /nix because the resource is busy.

Error

Error: 
   0: Error reverting
   0: Action `create_directory` errored
      Remove file `/nix`

Metadata

key value
version 0.10.0
os linux
arch x86_64
Hoverbear commented 1 year ago

That's rather interesting! I wonder if the nix store is garbage collecting or something? Hmm.... You said you wer reinstalling, so you ran the uninstall on an existing nix-installer installed Nix?

s-aditya-k commented 1 year ago

yup! i got it to uninstall fully by rebooting, killing any processes touching /nix. i believe that it was probably the daemon that got spawned, despite the fact that the actual .service file was missing.

Hoverbear commented 1 year ago

Thanks for this information!