-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Installing on MacOS fails when user UID is already in use #2242
Comments
This is definitely a serious issue! We may be able to just skip user id that is taken. /cc @grahamc |
I'm not sure how to approach this. Having some non-nix UIDs in the nix block would seem sub-optimal to me as well; it would seem better to just choose a different contiguous block. |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
Duplicate(?) issue still open here: #6153 |
on macos sequoia the uid 301 is now being used by _modelmanagerd:
resulting in
|
Hi there, just upgraded to sequoia to day, would recommend https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file and set the following NIX_INSTALLER_NIX_BUILD_USER_ID_BASE=400 curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install Though I do think build user id should just start at 400 since Apple might add new build users in the future |
I woke up today to see that
These users overwrote the Nix build users overnight. Maybe the default user ID base should be bumped? |
I have noticed this issue on MacOS Sequoia read my issue that linked this one. |
I have found that the following works for the canonical installer:
Source: https://github.com/NixOS/nix/blob/master/scripts/install-darwin-multi-user.sh#L7 Here is a way to list all taken uids: % dscacheutil -q user | grep uid | awk '{ print $2 }' | sort -h | uniq
-2
0
1
4
13
24
25
26
27
31
... |
PR #11095 should solve this issue. Please feel free +1. |
I received the following error with this command:
Edit: Running |
Fixed in: #10919 |
Sort of but not a permanent solution so not really but It's under decision as of this: #10919 (comment) |
It is not solved via |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/macos-15-sequoia-update-clobbers-nixbld1-4-users/52223/3 |
I could have a look at making a pr that changes the users but that still doesn’t fix the issue, right? |
@Eveeifyeve my linked PRs don't attempt to directly address this issue (nor is this issue directly related to the sequoia migration). My PRs just move macos installs to a different UID range. |
While installing nix on MacOS it fails while creating build user 5:
After some investigation, I realized it fails because I have a
_sophos
user with UniqueID "30005"yields:
Is there a way to work around this?
The text was updated successfully, but these errors were encountered: