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

Failed to "Creating the Nix build user (#1), _nixbld1" #8016

Closed
2 tasks
TorstenRobitzki opened this issue Mar 9, 2023 · 2 comments
Closed
2 tasks

Failed to "Creating the Nix build user (#1), _nixbld1" #8016

TorstenRobitzki opened this issue Mar 9, 2023 · 2 comments

Comments

@TorstenRobitzki
Copy link

TorstenRobitzki commented Mar 9, 2023

Platform

  • Linux:
  • [X ] macOS
  • WSL

Additional information

I tried to install Nix on my MacBook (macOS Version 13.2.1).

Output

Output

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/sbin/dseditgroup -o create -r Nix build group for nix-daemon -i 30000 nixbld

Create the Nix build group, nixbld

            Created:	Yes

~~> Setting up the build user _nixbld1

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/dscl . create /Users/_nixbld1 UniqueID 301

Creating the Nix build user (#1), _nixbld1

<main> attribute status: eDSRecordAlreadyExists
<dscl_cmd> DS Error: -14135 (eDSRecordAlreadyExists)

---- oh no! --------------------------------------------------------------------
Oh no, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

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

Looks like the installation script did a lot of changes before it failed. At the beginning of the script, there was a promise, that every change can be undone quite easily. What do I have to do now, to revert the changes done?

Update: I've remove that user (_nixbld1 [it was the only one created]) und rerun the installation script, with the very same result. Looks like the script is creating the user and then somehow stumbles over it (maybe tries to create it a second time?).

Priorities

Add 👍 to issues you find important.

@abathur
Copy link
Member

abathur commented Mar 9, 2023

Same issue as #6153.

You'll have to follow the uninstall instructions to clean up first: https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos

There's more context in the linked issue, but you'll either need to clear out whatever is holding the uid, or modify the installer to use a new one.

@TorstenRobitzki
Copy link
Author

Yes, it seems to be exactly the same issue. I have already a user with the ID 301

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