-
Notifications
You must be signed in to change notification settings - Fork 8
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
Nginx doesn't restart or reload #125
Comments
Just to complicate this a little... The above commands were from Duckling's staging server. I ran the same commands on Duckling's production server (identical OS, versions etc, just a larger machine) and they worked fine. So it seems that this issue may be intermittent from server to server... |
What version of Nginx is running on those servers? |
nginx version: nginx/1.8.1 on both staging and production. |
Could this be only an issue for projects which were installed at 1.8.X vs those which were installed on an earlier version and later upgraded to 1.8.X. Grasping at straws here. |
Hmmm... that is plausible. I could see how changing init scripts might mess things up. Staging was provisioned way before production, in this case. |
That was it! Staging's nginx had been started before the PPA was installed. Once I manually killed the master process, then all the upstart commands started working normally. Here's one way to tell if you're running an "old" master process:
The PPA version should have some command line parameters. It should look like this:
To fix it, kill the "old" process and then use the normal upstart commands:
It seems it would need a 1-time fix on any server that was running the Ubuntu-provided nginx and then upgraded to the PPA. Not sure if we should do that manually across our servers, or write something in salt to do it. |
The annoying thing about this problem is that there's nothing wrong with these systems' configurations; they've just in a state they can't get themselves out of in the normal course of deploying to them. A simple reboot would sort it out. |
The upstart script included with Nginx via the PPA doesn't work.
reload
fails with an incorrect error message.restart
claims to work but doesn't actually restart the processes:Possible workarounds:
nginx -s reload
for reloading (which I think is all we need in our case)The text was updated successfully, but these errors were encountered: