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

After multi-user install every command fails with SSL connect error (35) #11989

Open
hasufell opened this issue Nov 29, 2024 · 3 comments
Open
Labels

Comments

@hasufell
Copy link

Describe the bug

On a multi-user install, every nix command throws SSL connect errors when trying to fetch from the cache. A single user install works fine.

$ nix-shell -p nix-info --run "nix-info -m"
warning: error: unable to download 'https://cache.nixos.org/6c7dwicl4jn20bg2zh0sbkpnlfpplsh8.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 315 ms
warning: error: unable to download 'https://cache.nixos.org/gw0swsnbfk9l8d1il70psm8b3r5m33jv.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 281 ms
warning: error: unable to download 'https://cache.nixos.org/126zbg10gjaxgs1kxz69h05ai95266cg.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 278 ms
warning: error: unable to download 'https://cache.nixos.org/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 276 ms
warning: error: unable to download 'https://cache.nixos.org/6c7dwicl4jn20bg2zh0sbkpnlfpplsh8.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 639 ms
warning: error: unable to download 'https://cache.nixos.org/gw0swsnbfk9l8d1il70psm8b3r5m33jv.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 628 ms
warning: error: unable to download 'https://cache.nixos.org/126zbg10gjaxgs1kxz69h05ai95266cg.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 555 ms
warning: error: unable to download 'https://cache.nixos.org/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 705 ms
warning: error: unable to download 'https://cache.nixos.org/6c7dwicl4jn20bg2zh0sbkpnlfpplsh8.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 1318 ms
warning: error: unable to download 'https://cache.nixos.org/gw0swsnbfk9l8d1il70psm8b3r5m33jv.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 1265 ms
warning: error: unable to download 'https://cache.nixos.org/126zbg10gjaxgs1kxz69h05ai95266cg.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 1088 ms
warning: error: unable to download 'https://cache.nixos.org/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 1040 ms
warning: error: unable to download 'https://cache.nixos.org/126zbg10gjaxgs1kxz69h05ai95266cg.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 2522 ms
warning: error: unable to download 'https://cache.nixos.org/6c7dwicl4jn20bg2zh0sbkpnlfpplsh8.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 2736 ms
warning: error: unable to download 'https://cache.nixos.org/gw0swsnbfk9l8d1il70psm8b3r5m33jv.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 2204 ms
warning: error: unable to download 'https://cache.nixos.org/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj.narinfo': SSL connect error (35) OpenSSL/3.0.14: error:16000069:STORE routines::unregistered scheme; retrying in 2638 ms
error: Nix daemon disconnected unexpectedly (maybe it crashed?)

Steps To Reproduce

Steps to reproduce the behavior:

  1. sh <(curl -L https://nixos.org/nix/install) --daemon
  2. start a new shell
  3. nix-shell -p nix-info --run "nix-info -m"

Expected behavior

Nix commands that fetch from the cache work.

Screenshots

Screenshot_2024-11-29_13-19-23

Screenshot_2024-11-29_13-20-04

Additional context

Nix was installed previously (also as multi-user). Due to a broken store, nix was uninstalled first according to the instructions at https://nix.dev/manual/nix/2.18/installation/uninstall.

The system is OpenSUSE Tumbleweed.

A single-user install works:

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.8-1-default, openSUSE Tumbleweed, noversion, nobuild`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.25.2`
 - nixpkgs: `/home/hasufell/.nix-defexpr/channels/nixpkgs`

Metadata

Not possible to retrieve metadata.

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@abathur
Copy link
Member

abathur commented Nov 29, 2024

Is this in some work/org environment that does or might have an ssl-intercepting proxy?

I am not certain if this is right since I haven't had to deal with one myself, but a single-user install might be picking up a cert bundle from an env that isn't available/set for the nix-daemon service.

@hasufell
Copy link
Author

Is this in some work/org environment that does or might have an ssl-intercepting proxy?

No.

@electricalgorithm
Copy link

I have encountered the same error even when NIX_SSL_CERT_FILE=<CA_PATH> given on multi-user installation. After a removal and re-installation for single-user, it did work in a cooperate network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants