nginx 0.8.x reloading issues/crashes

Brane F. Gračnar brane.gracnar at planet9.si
Mon May 17 20:23:59 MSD 2010


Hello there :)

We're using nginx 0.8.x in production becouse of x509 ssl ca support.

Works ok, but we're having reloading issues. Reloading is done by kill -HUP 
<nginx pid>

Problem exists in versions 0.8.15 to most recent 0.8.37. Tested on bluewhite64 
12.1 (64bit slackware) and ubuntu 10.04 LTS (64bit)

Problem is easily reproduced. Just send few HUPs and you'll be left only with 
nginx worker process (master process dies).

Nginx info:

--- snip ---
nginx version: nginx/0.8.37
TLS SNI support enabled
configure arguments: --with-cc-opt='-O2 -pipe -fomit-frame-pointer -funroll-
loops' --prefix=/usr --conf-path=/etc/nginx/nginx.conf --error-log-
path=/tmp/nginx.error --http-log-path=/tmp/nginx.access --pid-
path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=daemon --
group=daemon --http-client-body-temp-path=/var/spool/nginx/client_body_temp --
http-proxy-temp-path=/var/spool/nginx/proxy_temp --http-fastcgi-temp-
path=/var/spool/nginx/fastcgi_temp --with-ipv6 --with-http_ssl_module --with-
http_realip_module --with-http_addition_module --with-http_dav_module --with-
http_flv_module --with-http_gzip_static_module --with-http_random_index_module 
--with-http_secure_link_module --with-http_stub_status_module --with-mail --
with-mail_ssl_module --with-pcre --add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.37/modules/gnosek-nginx-
upstream-fair-2131c73 --add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.37/modules/masterzen-nginx-
upload-progress-module-ac62a29 --add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.37/modules/nginx-fancyindex 
--add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.37/modules/nginx_http_h264_streaming 
--add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.37/modules/nginx_upload_module-2.0.11
--- snip ---


Nginx error log:

--- snip ---

2010/05/17 18:15:35 [notice] 28083#0: signal 1 (SIGHUP) received, 
reconfiguring
2010/05/17 18:15:35 [notice] 28083#0: reconfiguring
2010/05/17 18:15:35 [notice] 28083#0: using the "epoll" event method
2010/05/17 18:15:35 [notice] 28083#0: start worker processes
2010/05/17 18:15:35 [notice] 28083#0: start worker process 29408
2010/05/17 18:15:35 [notice] 28084#0: gracefully shutting down
2010/05/17 18:15:35 [notice] 28084#0: exiting
2010/05/17 18:15:35 [notice] 28084#0: exit
2010/05/17 18:15:35 [notice] 28083#0: signal 17 (SIGCHLD) received
2010/05/17 18:15:35 [notice] 28083#0: worker process 28084 exited with code 0
2010/05/17 18:15:35 [notice] 28083#0: signal 29 (SIGIO) received
2010/05/17 18:15:40 [notice] 28083#0: signal 1 (SIGHUP) received, 
reconfiguring
2010/05/17 18:15:40 [notice] 28083#0: reconfiguring
2010/05/17 18:15:40 [notice] 28083#0: using the "epoll" event method
2010/05/17 18:15:40 [notice] 28083#0: start worker processes
2010/05/17 18:15:40 [notice] 28083#0: start worker process 29519
2010/05/17 18:15:40 [notice] 29408#0: gracefully shutting down
2010/05/17 18:15:40 [notice] 29408#0: exiting
2010/05/17 18:15:40 [notice] 29408#0: exit
2010/05/17 18:15:40 [notice] 28083#0: signal 17 (SIGCHLD) received
2010/05/17 18:15:40 [notice] 28083#0: worker process 29408 exited with code 0
2010/05/17 18:15:40 [notice] 28083#0: signal 29 (SIGIO) received
2010/05/17 18:15:43 [notice] 28083#0: signal 1 (SIGHUP) received, 
reconfiguring
2010/05/17 18:15:43 [notice] 28083#0: reconfiguring
2010/05/17 18:15:43 [notice] 28083#0: using the "epoll" event method
2010/05/17 18:15:43 [notice] 28083#0: start worker processes
2010/05/17 18:15:43 [notice] 28083#0: start worker process 29531
2010/05/17 18:15:43 [notice] 29519#0: gracefully shutting down
2010/05/17 18:15:43 [notice] 29519#0: exiting
2010/05/17 18:15:43 [notice] 29519#0: exit
2010/05/17 18:15:43 [notice] 28083#0: signal 17 (SIGCHLD) received
2010/05/17 18:15:43 [notice] 28083#0: worker process 29519 exited with code 0
2010/05/17 18:15:43 [notice] 28083#0: signal 29 (SIGIO) received
2010/05/17 18:15:46 [notice] 28083#0: signal 1 (SIGHUP) received, 
reconfiguring
2010/05/17 18:15:46 [notice] 28083#0: reconfiguring
--- snip ---

Best regards, Brane



More information about the nginx-devel mailing list