-
-
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
Installation crashes macOS 12.1 (21C52) "Monterey" #5801
Comments
First I can recall hearing of these symptoms, so we'll have to explore a bit I guess. If you check console.app, is there a crash report that matches the time of the install/reboot? |
There was no crash report, and unfortunately the earliest entry in launchd.log was an hour too late. When I attempt to run
I was able to adjust the permissions of that directory using |
What do You can also drop by the "Nix on macOS" room in the NixOS space on Matrix if doing this in real-time would be better (though I'll be out for a bit this evening). |
I had to run take care of some things. I really appreciate your help.
|
Those look fine. I have a hunch, at least. Does the installer hang for a long time at the final line in your initial output? I have been assuming you meant that the crash happened immediately, but I have seen a small number of reports of the Mostly just confirming for now--not really sure what the next steps are yet. I guess you could look in Console.app while this is running and see if there's any clues? |
I apologize for taking so long to circle back. I went through the install script, and I found that my system crashes when I run
Running Thank you so much for your time!! I have no idea how to approach this problem. In the future, I'm switching completely to Linux. |
Two questions:
Knowing that it is in the cacert step makes me wonder if this is a manifestation of that EOF error (since we have documented cases of the EOF error, there.) Since you say it happens on any nix-env -i invocation, I'm also wondering if something else is getting corrupted (perhaps by the same issue as the EOF?) |
Status bar at the top of the screen disappears, the desktop wallpaper disappears, all applications crash including the dock, finder, etc., and then the status bar reappears sans any additional services (e.g., Dropbox), the desktop wallpaper reappears, Finder starts again (so the icons on the desktop appear again), and the dock reappears. All GUI applications are no-longer running except for the Finder. Emacs, which was started from the terminal and run in the background
Awesome. I will do this now. |
Unfortunately I still do not have a verbose output. IMG_1586.mp4IMG_1587.mp4
Interesting. I can try to recreate the issue that this user was having to see if it's related.
Any suggestions as to what I should try? Again, many thanks!! |
I disabled system-integrity protection to see if that made a difference. I again filmed the process because a couple of times prior I thought I had seen an output flash just before the system shut down. However, each time there would be no error logged on the console. I was able to capture a few frames with the output in a video. I extracted that frame, ran OCR, and then cleaned up the output (may still not be perfect). The output was as follows:
It is truncated because my terminal window is only like 80 by 24. I will try again but with a larger window and a smaller font size. |
I think I have misconfigured something so that it kills itself? Under which UID should this be running? |
Haven't fully looked at this, just seeing it on my phone and the videos aren't loading, but AFAIK the build users should just be nixbld{1,32}. Not certain how nix looks up the build users, but if it is just by group this might mean your user is in the nixbld group? |
There may be a more-efficient way to check, but you can at least run something like (I don't imagine it is, but you might want to also confirm that your user's primary group isn't set to nixbld with If your user is in the group, I think you can remove it with |
I marked this as stale due to inactivity. → More info |
Describe the bug
Installing Nix on a Mac Mini running macOS 12.1 (21C52) on Intel architecture returns the following to the standard output after which the entire screen goes black except for the cursor, the desktop reloads, the computer reconnects to Wi-Fi, and it is apparent that all running applications had been quit.
Steps To Reproduce
Run
curl -L https://nixos.org/nix/install | sh
and enter super-user password when prompted.Expected behavior
I would have expected the progression to the next step.
nix-env --version
outputerror: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
Additional context
I have installed Nix successfully on a previous Mac running macOS 11.
I doubt it is relevant, but I used zsh.
The text was updated successfully, but these errors were encountered: