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

[installer] It seems the build group nixbld already exists, but with the UID 30000. This script can't really handle that right now, so I'm going to give up. #11725

Open
1 of 3 tasks
samuela opened this issue Oct 21, 2024 · 6 comments

Comments

@samuela
Copy link
Member

samuela commented Oct 21, 2024

Install failure:

It seems the build group nixbld already exists, but
with the UID 30000. This script can't really handle
that right now, so I'm going to give up.

Can I just delete the nixbld group entirely and re-run the installer?

Platform

  • Linux:
  • macOS
  • WSL

Additional information

I'm running macOS 15.0.1 (24A348) and have a pre-existing, broken nix install.

Output

Output
~~> Setting up the build group nixbld

---- oh no! --------------------------------------------------------------------
It seems the build group nixbld already exists, but
with the UID 30000. This script can't really handle
that right now, so I'm going to give up.

You can export NIX_BUILD_GROUP_ID=30000 and re-run.

We'd love to help if you need it.

You can open an issue at
https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community

Priorities

Add 👍 to issues you find important.

@abathur
Copy link
Member

abathur commented Oct 21, 2024

What does "broken" mean here?

If you're running into errors that mention nixbld users when you run Nix commands, you may just need to run the migration procedure mentioned in the first post of the pinned issue:

@samuela
Copy link
Member Author

samuela commented Oct 22, 2024

What does "broken" mean here?

Broken in the sense that I expected the installer to automatically reuse or migrate existing nixbld users and the nixbld group.

If you're running into errors that mention nixbld users when you run Nix commands, you may just need to run the migration procedure mentioned in the first post of the pinned issue:

I'm seeing this error at nix installation time.

@abathur
Copy link
Member

abathur commented Oct 22, 2024

What does "broken" mean here?

Broken in the sense that I expected the installer to automatically reuse or migrate existing nixbld users and the nixbld group.

You said:

have a pre-existing, broken nix install.

In what way was that install broken?

@samuela
Copy link
Member Author

samuela commented Oct 22, 2024

In what way was that install broken?

Oh, apologies. I had a previous nix install that was broken after a macOS upgrade (I believe to 14?). I still had the /nix APFS volume but it wasn't being mounted for some mysterious reason. And I still had the nixbld group and its users. The exact state of the system may be hard to pin down but that's where I was at.

@abathur
Copy link
Member

abathur commented Oct 22, 2024

That sounds like the issue/fix in this thread/comment:

I don't feel like I have a precise enough sense of where the system's at right now to feel comfortable recommending any specific minor surgery, so as long as wiping the store volume isn't a nonstarter I'd recommend:

  1. Look into the recommendation linked above for the mount issue and follow its recommendations if you see those items toggled off. (I'm not myself certain whether this condition will persist through an uninstall, so this is to hedge against it doing so.)
  2. Follow the uninstall instructions and then reinstall: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos.

(If losing the Nix volume will be particularly painful, let's see how step 1 goes and re-evaluate.)

@samuela
Copy link
Member Author

samuela commented Oct 25, 2024

Thanks @abathur ! I ended up fixing by deleting the nixbld group and all its users and then re-installing nix with the official multi-user installation.

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

No branches or pull requests

2 participants