-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Restarting nginx hangs forever #33172
Comments
On similar machines deployed the same way, but that are not in the middle of a
|
I am suspecting that there is a race condition between nixops or Here is the systemd code that issues this warning. |
The commit message of the commit that introduced this logic in systemd also gives some hints: The problem might be that if a The commit message says
I'm not sure if this is problematic or not: we certainly "change the unit file command list" while a command (nginx) is running, but we have only one |
Urgh it's getting really strange here. On the machine where I'm not in the middle of a nixops deploy and corresponding nginx restart hang, I can run
as expected. But on the problematic machine, if I run that command, I get reliably instead:
which is a completely different service I wrote that seems to have no dependency with nginx whatsoever. What's going on? Is this some weird offset error in systemd that gets triggered during the deserialisation of |
Is this still a problem with 18.03? Did you manage to find a NixOS config that reliably reproduces this issue? |
I can't tell yet, I have only upgraded these servers to 18.03 very recently and thus haven't collected much data on it yet.
No. I did get
Only |
Should this be closed? Only one report so far in 1 year, we can reopen if it turns out to still be an issue. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Issue description
On one of my servers, when I deploy it with
nixops
, or simply runsystemctl restart nginx.service
(which nixops also calls), that just hangs without any output.systemctl status nginx.service
says:The weird thing here is that there's no
Starting ...
line after theStopped ...
line, so I'm wondering if this is a systemd bug or a bug in my config or NixOS's way of configuring nginx in this case.I'm also not sure why I'm getting
Current command vanished from the unit file
here.Steps to reproduce
Not sure yet.
Technical details
On top of nixpkgs commit a2845aa.
The text was updated successfully, but these errors were encountered: