UID 301 is reserved on macOS Sequoia (Beta) #18

Closed
opened 2024-07-17 14:10:57 +00:00 by yvan-sraka · 2 comments

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `create_users_and_group` errored
   3: Action `create_user` errored
   4: Failed to execute command with status 55 `"/usr/bin/dscl" "." "-create" "/Users/_nixbld1" "UniqueID" "301"`, stdout: 
      stderr: <main> attribute status: eDSRecordAlreadyExists
      <dscl_cmd> DS Error: -14135 (eDSRecordAlreadyExists)


Metadata

key value
version 0.17.1
os macos
arch aarch64

Notes

I tried yesterday to install Lix, on a fresh macOS 15 Sequoia Beta 3 setup, using curl -sSf -L https://install.lix.systems/lix | sh -s -- install and it fails but DetSys installer worked, AFAIU it's because it uses another range of build users IDs (UID 451-482).

Then I gave a try to the following section of the tutorial without more success:

% sudo --preserve-env=PATH nix run \
     --experimental-features "nix-command flakes" \
     --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \
     'git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90.0-rc1' -- \
     upgrade-nix \
     --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="

building '/nix/store/wpw8i48xbhdlg96kp9dazc6kcfvsvdd9-user-environment.drv'...
installing 'lix-2.90.0'
building '/nix/store/4wfkz1nl8r3sn1pvfv82d56m80dfhm54-user-environment.drv'...
error: Unable to build profile. There is a conflict for the following files:

         /nix/store/7hhkbhcqj9rii306yv83g6k26rcflssh-lix-2.90.0/bin/nix-prefetch-url
         /nix/store/kcjwh67xvb3kkjp16p8nn0krzvanp3rl-nix-2.23.3/bin/nix-prefetch-url
error: builder for '/nix/store/4wfkz1nl8r3sn1pvfv82d56m80dfhm54-user-environment.drv' failed with exit code 1
error: program '/nix/store/z1bdccwsk34iv491aygh0mm1lgpf7yy1-lix-2.90.0-rc1/bin/nix-env' failed with exit code 100

End-up to have a working Lix 2.90 on my machine using nix.package = pkgs.lix; in my nix-darwin config :)

## Error ``` Error: 0: Install failure 1: Error executing action 2: Action `create_users_and_group` errored 3: Action `create_user` errored 4: Failed to execute command with status 55 `"/usr/bin/dscl" "." "-create" "/Users/_nixbld1" "UniqueID" "301"`, stdout: stderr: <main> attribute status: eDSRecordAlreadyExists <dscl_cmd> DS Error: -14135 (eDSRecordAlreadyExists) ``` ## Metadata |key|value| |--|--| |**version**|0.17.1| |**os**|macos| |**arch**|aarch64| ## Notes I tried yesterday to install Lix, on a fresh macOS 15 Sequoia Beta 3 setup, using `curl -sSf -L https://install.lix.systems/lix | sh -s -- install` and it fails but [DetSys installer](https://github.com/DeterminateSystems/nix-installer) worked, AFAIU it's because it uses another range of build users IDs (UID 451-482). Then I gave a try to [the following section of the tutorial](https://lix.systems/install/#existing-installs) without more success: ``` % sudo --preserve-env=PATH nix run \ --experimental-features "nix-command flakes" \ --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \ 'git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90.0-rc1' -- \ upgrade-nix \ --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" building '/nix/store/wpw8i48xbhdlg96kp9dazc6kcfvsvdd9-user-environment.drv'... installing 'lix-2.90.0' building '/nix/store/4wfkz1nl8r3sn1pvfv82d56m80dfhm54-user-environment.drv'... error: Unable to build profile. There is a conflict for the following files: /nix/store/7hhkbhcqj9rii306yv83g6k26rcflssh-lix-2.90.0/bin/nix-prefetch-url /nix/store/kcjwh67xvb3kkjp16p8nn0krzvanp3rl-nix-2.23.3/bin/nix-prefetch-url error: builder for '/nix/store/4wfkz1nl8r3sn1pvfv82d56m80dfhm54-user-environment.drv' failed with exit code 1 error: program '/nix/store/z1bdccwsk34iv491aygh0mm1lgpf7yy1-lix-2.90.0-rc1/bin/nix-env' failed with exit code 100 ``` End-up to have a working Lix 2.90 on my machine using `nix.package = pkgs.lix;` in my [nix-darwin](https://daiderd.com/nix-darwin/) config :)
Author

This seems to have been fixed upstream here!

This seems to have been fixed upstream [here](https://github.com/DeterminateSystems/nix-installer/commit/0adc599c1e08b79c4f69ffdaabb3b05b94af5ccd#diff-4f91d834bba4a3a432715f3ccf4ebc7c10d7ecfb974f1e78f56108dd80581a53R254)!
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/1907 ("[DetSys#1123] Synchronize macOS UIDs and GIDs with upstream scripts to prepare for Sequoia")
  • commit message in cl/1913 ("store: add a hint on how to fix Lix installs broken by macOS Sequoia")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix-installer/+/1907", "number": 1907, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/1913", "number": 1913, "kind": "commit message"}], "cl_meta": {"1907": {"change_title": "[DetSys#1123] Synchronize macOS UIDs and GIDs with upstream scripts to prepare for Sequoia"}, "1913": {"change_title": "store: add a hint on how to fix Lix installs broken by macOS Sequoia"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/1907](https://gerrit.lix.systems/c/lix-installer/+/1907) ("[DetSys#1123] Synchronize macOS UIDs and GIDs with upstream scripts to prepare for Sequoia") * commit message in [cl/1913](https://gerrit.lix.systems/c/lix/+/1913) ("store: add a hint on how to fix Lix installs broken by macOS Sequoia")
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix-installer#18
No description provided.