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

Error uninstalling after upgrading to macOS 15 beta #1092

Closed
rscorer opened this issue Aug 16, 2024 · 5 comments · Fixed by #1143
Closed

Error uninstalling after upgrading to macOS 15 beta #1092

rscorer opened this issue Aug 16, 2024 · 5 comments · Fixed by #1143
Labels
MacOS Darwin/MacOS
Milestone

Comments

@rscorer
Copy link

rscorer commented Aug 16, 2024

Error

Error: 
   0: Error reverting
   0: Action `create_users_and_group` errored
      Multiple child errors

      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld1"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld2"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld3"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld4"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)




Metadata

key value
version 0.16.0
os macos
arch aarch64
@cole-h
Copy link
Member

cole-h commented Aug 16, 2024

Did you update this machine to the macOS 15 beta while Nix was already installed?

@cole-h cole-h added the MacOS Darwin/MacOS label Aug 16, 2024
@rscorer
Copy link
Author

rscorer commented Aug 16, 2024

I did, I wondered about that just after sending the bug report...

@cole-h
Copy link
Member

cole-h commented Aug 16, 2024

Was there something specific that caused you to want to uninstall? (Like Nix not working in some specific way after the upgrade?)

We don't currently have a good path for macOS <15 users to upgrade to macOS 15 (though we do have preliminary support for fresh installations as of v0.20.2). There's some more information on this issue upstream: NixOS/nix#10892

If you want to uninstall and reinstall (with v0.20.2 or newer), you may need to do some surgery on the receipt (/nix/receipt.json) we generated to trick the uninstaller into thinking we never actually created the _nixbld{1,2,3,4} users (which macOS stole from us in the update). I can provide more in-depth instructions on what I'd try, if that would be helpful.

@cole-h cole-h changed the title Error while uninstalling (auto generated error message below :) Error uninstalling after upgrading to macOS 15 beta Aug 16, 2024
@rscorer
Copy link
Author

rscorer commented Aug 17, 2024

I was getting the error "the user '_nixbld1' in the group 'nixbld' does not exist" when trying to update my flakes

After searching for the error, I didn't find anything relevant (one person talking about migrating a Mac system didn't seem relevant -- perhaps it was!)

So I thought I'll simply uninstall and re-install, I've got all my nix setup files safely stored it would appear to be the easiest option.

@koalazub
Copy link

I was able to resolve this issue on Beta 2: https://discord.com/channels/1116012109709463613/1116012112360251445/1270949139458424832

You essentially do just have to uninstall and reinstall and it should function fine. I'm using M3 Pro for clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MacOS Darwin/MacOS
Projects
None yet
3 participants