-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to install Nix 2.4 and 2.5.1 on Mac OS Monterey #5498
Comments
It was not solved by deleting |
I'm not certain what this is, so I'm mostly just collecting info and connecting dots... Did the install terminate on its own, or did it hang until you had to kill it? If you look under Crash Reports in Console.app, do you see an entry that matches up with the failure? A "normal" segment here looks like:
The underlying command for the 2nd message is I don't think this is related to either linked issue:
There's some chance this is related to #3605, though I'm mostly just saying that because it is a known cause of intermittent failures. I don't specifically recall seeing any of those EOF reports mentioning |
If you have time to fiddle with this, reinstalling a few times may confirm or rule out the intermittent trouble in #3605 You can ping me in the macOS room on the NixOS Matrix if you want to run through it. |
I had a very similar failure to (re)install nix at around the same time as Peter yesterday (the issue was four minutes old when I checked GitHub). Tried it again this morning and it worked. FWIW my attempt failed right after setting up the last build user. Thanks! |
Thank you
The install terminated on its own; these lines print instantaneously:
I don't see anything in Console.app but may have overlooked it.
and
|
Thanks for the additional detail. I think it's sounding more and more like a case of #3605. I suspect reinstalling can fix it:The installer backs up some system rc/profile files in
|
Those two files don't exist:
I have also deleted |
Should be fine if they don't exist. If you have had Nix on the system before (installed multiple years ago--before the installer started making them back in 2.1) it might be worth making sure Nix isn't in either rc file, but otherwise I think you're ready to run the installer again. |
Yes, I had Nix on this system before, version 2.3.15 or 2.3.16. Maybe I should install the old version https://github.com/NixOS/nix/releases/tag/2.3.16 from source. I've removed Thanks for your time |
I guess that's a point against this being #3605, though I'm not quite convinced we should rule it out yet...
|
Thanks again I was able to install Nix 2.3.16 successfully. It was necessary to delete
Without these steps, the Nix 2.3.15 failed due to Then,
This is a single-user installation. I don't think these steps would fix the Nix 2.4 installation |
Confirming the same issue here after upgrading from 2.3.10 |
I am having the same issue as well after migrating to a new Mac. I am stuck on |
Would someone apply the "macos" label to this? https://github.com/NixOS/nix/issues?q=is%3Aissue+label%3Amacos+ |
@jonesnoaht Can you clarify how you know you have the same issue, since no one in this thread has mentioned |
Sorry I have no idea what the heck I'm doing. It may be unrelated. I'll open a new issue. |
I'm trying to install Nix on MacOS Big Sur, also facing trouble.
|
Anyone encountering this issue: it may help to have more reports to clarify whether this is indeed an intermittent/flaky failure. Please repeat this process a few (4?) times:
|
Just collecting and thinking out loud:
For comparison, here are all of the failures mentioned in this thread so far: From OP:
From mgill25's comment:
From log attached in #5798
|
@Eggham If you haven't deleted the store volume, yet, can you see what |
@abathur There were a couple of things happened before I saw your above message, which are worth mentioning to avoid mislead you. After I reported this comment #5498 (comment). I managed to install Nix 2.3.16 successfully via When I read your above request #5498 (comment), I thought I would better to give you an accurate result based on the failure I encountered when I tried to install Nix 2.5.1. So I tried to re-install Nix 2.5.1 by following the process you mentioned in this comment #5498 (comment). What surprised me was that the error this time was very different. Please see the attached log. Then I tried to delete all files within /nix without deleting /nix (it couldn't be deleted as it was readonly). After reboot I tried to install Nix 2.5.1. This time it produced the error very similar to that of #5798, as follows:
Note the last line is slightly different from that of #5798. Finally, when ran
Feel free to let me know if there are any more checks I can do. I will keep my environment unchanged for now in case you want me to do more checks or even experiments. |
So I recently did this and I had the exact same results as @Eggham. I made sure to uninstall following these instructions just for sanity and then proceeded to install with the exact same errors as @mgill25 link and @Eggham (#5798). I followed the instructions above and was able to upgrade to 2.5.1 `christopher.chalcraft@C02CT8TEMD6M ~ % nix-shell -p nix-info --run "nix-info -m"
|
@cchalc Thanks for sharing. Just wonder if you successfully installed (uninstalled first and then installed) Nix 2.5.1 by following your instructions? I would give it a try if it worked for you. Many thanks. |
I can confirm that above-mentioned approach does not solve the problem. Following it (uninstalling followed by installing) still gave me the same error:
|
@Eggham Thanks for checking on these. I don't have any other immediate thoughts. Just trying to collect information and then help the wheel squeak. @domenkozar |
@Eggham I only used those for uninstalling to make sure everything was removed (It did miss some stuff in
The only other thing I had to do was add the |
@cchalc Thanks for sharing the information. Just wonder whether or not you have successfully upgraded to Nix 2.5.1. If so, did you upgrade from Nix 2.3.16 to Nix 2.4 first and then upgraded from Nix 2.4 to Nix 2.5.1, or upgraded from Nix 2.3.16 to Nix 2.5.1 in a single step? Many thanks. |
Update: 2.5.1 worked on my laptop without any issue. I did no cleanup and nothing special. The laptop wasn't even restarted since I posted the last comment. I only re-tried the curl command from the website (no additional flags).
❯ nix-channel --version ❯ nix-shell --version
|
I agree, works for me now. Thanks! |
OK I ran into this and got it to work. Thanks all for the contributions. A note on my particular issue that may help others in the future: I have a fresh macbook and had installed nix for the first time. Only to have issues with there not being a symlink to my users profile. So, I uninstalled and tried re-installing, but produced the error leading me to this thread. echo $PATH
/usr/bin:/bin After fixing this: export PATH=/usr/bin:/bin:/usr/local/bin:/usr/sbin The installation worked! good luck all |
Yup! Confirming that's was my issue too |
Sometimes it's not clear what exactly failed, is it possible to somehow have more verbosity? That was my biggest struggle, not being able to debug it. Maybe the error message can say which was the last thing that failed.
This worked for me, thanks. |
These recent comments probably have the same underlying cause that #5951 (hopefully) fixes... (there is a test installer in the linked PR, but it will only work on intel macs; a working M1 installer has been waiting on a long hydra queue...) |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/anyone-up-for-picking-at-some-nix-onboarding-improvements/13152/8 |
Describe the bug
The
curl -L https://nixos.org/nix/install | sh
script fails for me on Mac OS 12.0.1 Monterey.Previously with Nix 2.3.* and Mac OS Big Sur, the script succeeded. I have upgraded to Monterey and Nix 2.4 at the same time, and do not know which upgrade is the issue, if either.
This issue appears similar to #5468 and #4779
Thank you
Steps To Reproduce
curl -L https://nixos.org/nix/install | sh
on Mac OS 12.0.1 MontereyExpected behavior
Successful installation
nix-env --version
outputNo working Nix installation
Additional context
The text was updated successfully, but these errors were encountered: