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

Installation failure on OSX due to UID clash #8265

Open
1 of 3 tasks
thomas-mangin opened this issue Apr 27, 2023 · 2 comments
Open
1 of 3 tasks

Installation failure on OSX due to UID clash #8265

thomas-mangin opened this issue Apr 27, 2023 · 2 comments

Comments

@thomas-mangin
Copy link

Platform

  • Linux:
  • macOS
  • WSL

Additional information

The user ID 301 was already in use by a previously installed application.

❯ id 301                                                                                            
uid=301(SonosDMS) gid=301 groups=301,12(everyone),20(staff),61(localaccounts),701(com.apple.sharepoint.group.1),703(com.apple.sharepoint.group.3),702(com.apple.sharepoint.group.2),100(_lpoperator)

Output

Output

---- 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! --------------------------------------------------------------------

@abathur
Copy link
Member

abathur commented Apr 27, 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. The bit you'd need to change is at

NIX_FIRST_BUILD_UID="301"

@thomas-mangin
Copy link
Author

Sorry, I did not provide much information as I had already resolved the issue.

But thank you for still providing me help.

I was reporting the problem as I would have expected the installer to dynamically pick the UID in case of conflict and I assumed the UID conflict must not be that frequent.

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