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

Cannot reconfigure nginx by sending the SIGHUP signal (server reload) #33

Closed
zhan opened this issue Nov 23, 2009 · 2 comments
Closed

Cannot reconfigure nginx by sending the SIGHUP signal (server reload) #33

zhan opened this issue Nov 23, 2009 · 2 comments

Comments

@zhan
Copy link

zhan commented Nov 23, 2009

If I compile the NHPM module, I cannot force the nginx master process to re-read the configuration file by sending SIGHUP signal to it. Nginx's worker processes on my box run as
non privileged user.

nginx -v

nginx version: nginx/0.7.64

Here is log from the error_log

cat /var/log/nginx/comet/error_log | tail -n 30

2009/11/23 23:23:02 [info] 25539#0: *15 client 127.0.0.1 closed keepalive connection
2009/11/23 23:25:20 [notice] 25538#0: signal 1 (SIGHUP) received, reconfiguring
2009/11/23 23:25:20 [notice] 25538#0: reconfiguring
2009/11/23 23:25:20 [info] 25538#0: Using 131072KiB of shared memory for push module in /usr/local/nginx/comet.conf:134
2009/11/23 23:25:20 [notice] 25538#0: using the "epoll" event method
2009/11/23 23:25:20 [notice] 25538#0: start worker processes
2009/11/23 23:25:20 [notice] 25538#0: start worker process 25594
2009/11/23 23:25:20 [notice] 25538#0: start worker process 25595
2009/11/23 23:25:20 [notice] 25539#0: gracefully shutting down
2009/11/23 23:25:20 [notice] 25539#0: exiting
2009/11/23 23:25:20 [notice] 25539#0: exit
2009/11/23 23:25:20 [alert] 25594#0: epoll_ctl(1, 0) failed (1: Operation not permitted)
2009/11/23 23:25:20 [alert] 25594#0: failed to register channel handler while initializing push module worker (1: Operation not permitted)
2009/11/23 23:25:20 [notice] 25538#0: signal 17 (SIGCHLD) received
2009/11/23 23:25:20 [notice] 25540#0: gracefully shutting down
2009/11/23 23:25:20 [notice] 25538#0: worker process 25539 exited with code 0
2009/11/23 23:25:20 [notice] 25540#0: exiting
2009/11/23 23:25:20 [notice] 25540#0: exit
2009/11/23 23:25:20 [alert] 25595#0: epoll_ctl(1, 0) failed (1: Operation not permitted)
2009/11/23 23:25:20 [alert] 25595#0: failed to register channel handler while initializing push module worker (1: Operation not permitted)
2009/11/23 23:25:20 [notice] 25538#0: signal 17 (SIGCHLD) received
2009/11/23 23:25:20 [notice] 25538#0: worker process 25594 exited with code 2
2009/11/23 23:25:20 [alert] 25538#0: worker process 25594 exited with fatal code 2 and can not be respawn
2009/11/23 23:25:20 [notice] 25538#0: signal 17 (SIGCHLD) received
2009/11/23 23:25:20 [notice] 25538#0: worker process 25540 exited with code 0
2009/11/23 23:25:20 [notice] 25538#0: signal 17 (SIGCHLD) received
2009/11/23 23:25:20 [notice] 25538#0: worker process 25595 exited with code 2
2009/11/23 23:25:20 [alert] 25538#0: worker process 25595 exited with fatal code 2 and can not be respawn
2009/11/23 23:26:01 [notice] 25538#0: signal 15 (SIGTERM) received, exiting
2009/11/23 23:26:01 [notice] 25538#0: exit

@slact
Copy link
Owner

slact commented Nov 24, 2009

will fix for the next release.

@slact
Copy link
Owner

slact commented Feb 5, 2010

Is fixed.

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

No branches or pull requests

2 participants