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.09k stars 52 forks source link

An APFS volume labelled `Nix Store` does not exist, but there exists an fstab entry for that volume #1176

Open matthiasdebernardini opened 2 weeks ago

matthiasdebernardini commented 2 weeks ago

Error

Error: 
   0: Planner error
   1: Error executing action
   2: Action `create_nix_volume` errored
   3: Action `create_volume_service` errored
   4: An APFS volume labelled `Nix Store` does not exist, but there exists an fstab entry for that volume, as well as a service file at `/Library/LaunchDaemons/org.nixos.darwin-store.plist`. Consider removing the line containing `/nix` from the `/etc/fstab` and running `sudo rm /Library/LaunchDaemons/org.nixos.darwin-store.plist`

Metadata

key value
version 0.26.0
os macos
arch aarch64
cole-h commented 2 weeks ago

If you do the suggestions in the error message, does that allow you to get further in the install process?

matthiasdebernardini commented 2 weeks ago

Yes I removed the entire entry from fstab using vifs

but when I tried to reinstall nix I got this;

➜  coastline git:(master) ✗ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
info: downloading installer https://install.determinate.systems/nix/tag/v0.26.0/nix-installer-aarch64-darwin
 INFO nix-installer v0.26.0
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
 INFO nix-installer v0.26.0
Error:
   0: Planner error
   1: Error executing action
   2: Action `create_users_and_group` errored
   3: Action `create_user` errored
   4: User `_nixbld1` existed but had a different gid (30000) than planned (350)

Location:
   src/cli/subcommand/install.rs:200

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Planner+error%0A+++1%3A+Error+executing+action%0A+++2%3A+Action+%60create_users_and_group%60+errored%0A+++3%3A+Action+%60create_user%60+errored%0A+++4%3A+User+%60_nixbld1%60+existed+but+had+a+different+gid+%2830000%29+than+planned+%28350%29%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C0.26.0%7C%0A%7C**os**%7Cmacos%7C%0A%7C**arch**%7Caarch64%7C%0A
cole-h commented 2 weeks ago

Ah, I see. To get past this, you have two options:

  1. Accept the existing GID and pass --nix-build-group-id 30000
  2. Follow the upstream uninstallation instructions and retry the installation: https://nix.dev/manual/nix/latest/installation/uninstall.html#macos