-
Notifications
You must be signed in to change notification settings - Fork 59
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
macOS Ventura, /nix is empty after reboot following clean installation #212
Comments
I dug through my shell history to find out which file I sourced during the installation procedure:
What's interesting is that |
I just went through the uninstallation procedure I found here: https://iohk.zendesk.com/hc/en-us/articles/4415830650265-Uninstall-nix-on-MacOS Then I tried to install again. What I noticed is that if I tried to run the installer without root, it proceeded and ran into an error, only mentioning that it needed root along the way:
I cleaned up any files that this left behind after hitting the error, deleted the
This installation succeeded. Afterwards I was able to run So at least I can reproduce the issue now? |
More developments! I uninstalled, then ran the official installer and the contents of |
Uninstalled and then ran |
That was it! When I rebooted |
I also have experienced this issue. Haven't tried @zmitchell's proposed fix yet, though I'll probably reset my system and do so. |
During our brand new M2 (max, MacBook Pro 16) configurations this weekend we decided to give this a try instead of the official install. Ran into the same symptom ( Thanks @zmitchell for the thorough report AND reporting the workaround! And thanks to the team behind this tool for the great docs and simple tool. It makes onboarding folks into a dev ecosystem that uses nix a ton easier. |
Can confirm that using |
@zmitchell Thanks for reporting this! It seems you found a bug and found the fix! I'll work on reflecting this fix in the installer and cut a new version this week! I'm sorry about the issues! I'm not a Mac user myself and while we did test rebooting on the remote ephemeral Macs I suspect they are a bit different than a "real" user machine. |
No worries, it was fun to debug it :) I'm learning Nix and can volunteer to test things on macOS if you need a real machine to test on in the future. |
Out of curiousity, does your system have any other volumes on it called |
@Hoverbear mine may or may not have (I don't think it did). My partner's definitely did not. edit: it definitely didn't. My install failed when I did have that existing volume. I disconnected it before getting the successful install, and I haven't reattached it since (I only had it originally connected to run Migration Assistant from its contents). |
I didn't. This was my first time installing Nix and while I was debugging I deleted the Nix Store volume during each uninstall. |
Okay! Thanks! We had a report from someone else where they'd previously installed Nix and experienced this, I just wanted to see if it was isolated to that particular case. |
Okay, #215 should apply this workaround! I've tested it a few times on our ephemeral Macs and they seem quite content with themselves. If you'd be willing to be a guinea pig for me:
Then:
I hope this works. :) |
Close! |
Ah heck! Ok! Thanks! We'll make that change and a release should happen in the next day or two. |
What I did
I ran the command to install:
I ran the installation process (I don't remember the exact steps, I didn't realize there was a failure at this point yet). I sourced whatever script it mentioned and was able to run the
nix
command. That was yesterday.Symptoms
Today, likely after opening a new terminal, I'm no longer able to run the
nix
command. I looked in my.zshrc
and there's nothing sourcing anything having to do withnix
. Further investigation shows that there's nothing in/etc/nix
besidesnix.conf
.I downloaded the installer directly to see if I could use it to repair my installation:
then I ran
nix-installer plan
and immediately ran into this error:This tells me that the installation at least put some files in the right place.
Ok, what if I run the
uninstall
command?Sure enough, there's no
/nix/receipt.json
(makes sense, I said earlier that/etc/nix
only containsreceipt.json
). I thought this was supposed to be created during the installation process?Questions
The text was updated successfully, but these errors were encountered: