Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matthiasdebernardini opened this issue Sep 18, 2024 · 3 comments
Labels
MacOS Darwin/MacOS

Comments

@matthiasdebernardini
Copy link

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
Copy link
Member

cole-h commented Sep 18, 2024

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

@cole-h cole-h added the MacOS Darwin/MacOS label Sep 18, 2024
@cole-h cole-h changed the title <autogenerated-issue> An APFS volume labelled Nix Store does not exist, but there exists an fstab entry for that volume Sep 18, 2024
@matthiasdebernardini
Copy link
Author

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
Copy link
Member

cole-h commented Sep 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MacOS Darwin/MacOS
Projects
None yet
Development

No branches or pull requests

2 participants