-
-
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
nix-shell -p nix-info --run "nix-info -m" fails after installation. #7937
Comments
I am not caught up on detail yet, but I think this is a symptom of a known issue with the 2.14.0 release. It looks like there's effort under way to get a .1 together (master...2.14-maintenance) Unless maybe one of @balsoft @cole-h @Ericson2314 @edolstra weigh in by the time you see this on whether there's a quick fix for your install, I'd personally just recommend uninstalling and reinstalling with 2.13.3 for now.
|
A brief look at the trace just makes me think channels haven't been properly set up. You might try running I can check for certain in my morning, but that's what I would try first. |
@cole-h thanks for your quick reply. I tried
I dont see anything , it's empty. Also, the unpacking the channel step in the installer does not show any errors when it runs. |
I tried 2.13.3 as suggested, and I do not get the
which I believe is because the SSL cert due to the Netskope proxy. However, my reason for doing this was to setup the NIX_SSL_CERT_FILE to our cert file and then make sure it works later on in project specific flakes, but looks like i have missed something. I had a working home-manager flake using which i setup my laptop. However, I wanted to try this setup after my company started using Netskope to intercept SSL traffic and provide cert override.
I have done the installation after NIX_SSL_CERT_FILE variable and can be seen in the installer output above.
So, it is picked up by the installer. Not sure why the home manger flake and the nix-shell command which the installer recommends run from a new Terminal are failing with the above error. |
I'm experiencing exactly the same error. I've tried to install the latest version which gave me exactly the same message and then I tried again with I confirm downgrade to 2.13.3 works |
2.14.1 was released a few hours ago. If you ran into this issue yesterday it might be worth uninstalling and just re-trying the normal installer to see if the new version works fine. Others may benefit from your report on whether this does/doesn't work :) |
Well, I can say definitively: it doesn't fix this specific issue. I'm doing a bit of looking around to see where this issue comes from, but one initial weirdness that I noticed when 2.13.3:
2.14.1:
So I'm thinking there's also a bug in the C++ code somewhere regarding the path lookups. I don't have evidence this is caused by the XDG PR (though likely since it does look like potential fallout) just yet. EDIT: Something else interesting: 2.13.3:
2.14.1:
Users' |
One thing to note for me even with 2.13.3. I get errors like the following |
Even with the downgrade I get the SSL cert errors and the URLs that are printed give me 404, do you see this ? |
@abathur I tried 2.14.1 installation and still see this error when running the following command
If I run the same command with sudo I get the following error instead.
|
I have the same problem on Linux with 2.13.3 Edit: |
I manually added the channel. Now I am get channel in the list command as opposed to empty
However, running the nix-shel still gives the same SSL Cert path error
|
I just installed on Pop os 22.04, (like, a few hours ago)) and I got the same problem. Searched for the error and found this open ticket. I've been playing with trying to get things to work for a while now, adding it to packages, adding the channel, etc. But I'm no further. Just though I'd add that it's a problem on Linux too. ;-) |
Yeah, this fully affect Linux as well and it is not fixed with 2.14.1. Downgrading and pinning to 2.13.3 till further notice. |
Any idea about my original problem that even with 2.13 i get SSL cert path
issues.
…On Sat, Mar 4, 2023, 08:06 Travis A. Everett ***@***.***> wrote:
@edolstra <https://github.com/edolstra> @Ericson2314
<https://github.com/Ericson2314> @thufschmitt
<https://github.com/thufschmitt>
—
Reply to this email directly, view it on GitHub
<#7937 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABW4SVDLWP7VEQJ5HJYOG6TW2NR73ANCNFSM6AAAAAAVMXQD7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@mohnishkodnani Sorry--I thought I'd responded with at least a couple thoughts here but I guess I got interrupted and left it half-written in a tab somewhere... With the big caveat that I haven't dealt with a proxy like this and am just kinda guessing:
|
macOS 13.2.1 here - no special SSL config on my side. First time running Nix and hit this error :) Fix for me was: nix-channel --add https://nixos.org/channels/nixpkgs-22.11-darwin nixpkgs
nix-channel --update And now the command succeeds: $ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
- host os: `Darwin 22.3.0, macOS 13.2.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.14.1`
- nixpkgs: `/Users/tylerchurch/.nix-defexpr/channels/nixpkgs` Based on other bugs I found online, I also briefly had this in my ~/.zshenv:
But I've since commented that out and things are still working. |
Thanks for the feedback @tylerc. The average Nix user actually knows about this and it is more of a workaround than a fix. Prior to this issue, I have had to take zero extra steps after installing Nix to get it working. |
First time Nix user. I followed the homepage's recommendation for a multi-user install:
The script succeeded with no errors. I'm only using Nix because obelisk insists, so next I tried to install:
My attempts to diagnose led me to this issue. I ran:
Thanks to those in this thread who posted their solutions, I was able to fix it with:
Now I can run
I have heard good things about Nix, but I have to say, this gives me a pretty bad first impression. |
I tried
mkodnani home-config % nix-shell -p nix-info --run "nix-info -m" Not sure where things are not working... |
I opened up #7984 which I think describes at least one part of this. |
Update: nix-shell -p nix-info --run "nix-info -m" It seems like i have to do sudo and then provide the env variable. Looks like the multi user install requires |
Not fixed on 2.14.1 - can you alter the install script so that it pulls a working version until this problem is reliably fixed? This is a major turn off for anyone trying out nix. Here's my write up on Stackoverflow. Clean macOS install: https://stackoverflow.com/questions/75657834/fresh-install-of-nix-fails-on-m1-mac-error-attribute-nixpkgs-in-selection-pa Yesterday, someone suggested on a different Stackoverflow question to |
Another thing to note
I am not sure if this is an issue. I have the NIX_SSL_CERT_FILE set to my internal cert file and the ps command still shows it pointing to the default one.. |
Hi folks, Just want to add my experience with this issue: I had Nix working on macOS for a couple of years now, but yesterday I decided to do a full machine reset, and had to install Nix again. Using the instructions on the main website ( I tried several suggestions, going from manually changing the LaunchDeamon file, to exporting environment variables, but nothing helped. Then, I tried what @abathur suggested on his comment... and it worked! I don't know if any newer version than 2.13.3 works, but since the Nix repository does not have any release tags between 2.13.3 and 2.16.1, I assume it does not. Does anyone know if there is a workaround to use the latest Nix on macOS at this point? |
Not certain, but you could try reinstalling latest and setting the new nix.conf option added in #8062. If that shows the same error, maybe there is a problem with cert permissions? |
I can try that, but I don't think is anything wrong with the certs. I'm not using custom certs, and Nix 2.13.3 works, so I assume is something with the latest release |
Where are you looking? https://github.com/NixOS/nix/tags and releases.nixos.org both list tags for 2.13.4, 2.14.0, 2.14.1, 2.15.0, 2.15.1, and 2.16.0.
I'm not sure what's causing trouble here, but 2.16.1 has been out for 5 weeks already--I imagine we'd be drowning in reports if no new installs were working. I tried installing it on a spare macbook and get: $ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-darwin"`
- host os: `Darwin 18.7.0, macOS 10.14.6`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.16.1`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs` |
I'll try to get a fresh mac image that is not tied to my work to see if something changes, thanks for letting me know! |
I'm also having this issue with a fresh install albeit using the DeterminateSystems installer (
|
Platform
Additional information
Set NIX_SSL_CERT_FILE to the internal certificate file.
Output
Added above. but some of the output from the installer is listed here.
I also do not find ~/.nix-profile .
I am using zsh as the default shell for my user.
I closed the
Terminal
Process on mac and then ran the nix-shell command and get this error.Shell environment variables
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: