-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
sslh depends on nscd #105353
Comments
I marked this as stale due to inactivity. → More info |
It still happened to me today, on 21.05. The PR fixing this is still open #106336 |
NSS modules are now globally provided (by providing a `/run/nss-modules` symlink), similar to how we handle OpenGL drivers. This removes the need for nscd as a proxy for all NSS requests, and avoids DNS requests leaking across network namespaces. While doing this upgrade, existing applications need to be restarted, so they know how to pick up NSS modules from `/run/nss-modules`. If you want to defer application restart to a later time, explicitly enable `nscd` via `services.nscd.enable` until the application restart. We can mix NSS modules from any version of glibc according to https://sourceware.org/legacy-ml/libc-help/2016-12/msg00008.html, so glibc upgrades shouldn't break old userland loading more recent NSS modules (and most likely, NSS modules are already loaded) Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment)
NSS modules are now globally provided (by providing a `/run/nss-modules` symlink). See the text added to `rl-2111.section.md` for further details. Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment)
NSS modules are now globally provided by a symlink in `/run`. See the description in `add-extra-module-load-path.patch` for further details. Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment) Co-authored-by: Erik Arvstedt <erik.arvstedt@gmail.com>
NSS modules are now globally provided by a symlink in `/run`. See the description in `add-extra-module-load-path.patch` for further details. Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment) Co-authored-by: Erik Arvstedt <erik.arvstedt@gmail.com>
Can you check if the problem happens less often when you do |
I saw your message but I don't have time to dedicate this right now (and I think I don't keep logs long enough to get stats from my existing system to compare with). I intend to answer later. |
NSS modules are now globally provided by a symlink in `/run`. See the description in `add-extra-module-load-path.patch` for further details. Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment) Co-authored-by: Erik Arvstedt <erik.arvstedt@gmail.com>
NSS modules are now globally provided by a symlink in `/run`. See the description in `add-extra-module-load-path.patch` for further details. Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment) Co-authored-by: Erik Arvstedt <erik.arvstedt@gmail.com>
NSS modules are now globally provided (by providing a `/run/nss-modules` symlink). See the text added to `rl-2111.section.md` for further details. Fixes: NixOS#55276 Fixes: NixOS#135888 Fixes: NixOS#105353 Cc: NixOS#52411 (comment)
So I took the time to make some rough statistics: it happened about twice a month in 2021 and once a month in 2022 (it's not 100% reliable because I don't keep logs so long). I'm adding |
We have that in our downstream repo and we haven't had any issues like this for months (years?) so I hope this fixes it for you |
I finally wrote nscd-wait, this should make it possible to wait for nscd to start, eliminating most races. {
systemd.services.nscd.ExecStartPost = "${pkgs.wait-nscd}/bin/wait-nscd";
} |
the issue does not happen anymore. Honestly I lost track of all the attempted fixes, and anyway nscd is not used for non overlaid packages anymore, so feel free to close or not. |
Describe the bug
Since 20.09, sslh runs as a DynamicUser but its iptables require the username to resolve. If nscd and sslh are restarted as the same time (happens on system update) nscd is not ready and the username does not resolve, and sslh fails.
To Reproduce
(Untested):
enable sslh with
services.sslh.transparent = true
restart sslh and nscd at the same time
Expected behavior
sslh starts successfully on the first try
I'll open a PR shortly
Notify maintainers
@fpletz @koral
Metadata
"x86_64-linux"
Linux 5.8.18, NixOS, 20.09.2090.e111e9d4c05 (Nightingale)
yes
yes
nix-env (Nix) 2.3.9
"nixos-20.09.2090.e111e9d4c05, nixos-unstable-21.03pre246543.24c9b05ac53"
"home-manager-20.09"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: