Welcome! Log In Create A New Profile

Advanced

nginx 0.8.x reloading issues/crashes

Brane F. Gračnar
May 17, 2010 12:26PM
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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

nginx 0.8.x reloading issues/crashes

Brane F. Gračnar 5258 May 17, 2010 12:26PM

Re: nginx 0.8.x reloading issues/crashes

Maxim Dounin 1797 May 18, 2010 05:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready