Welcome! Log In Create A New Profile

Advanced

Re: nginx 0.8.x reloading issues/crashes

Maxim Dounin
May 18, 2010 05:18AM
Hello!

On Mon, May 17, 2010 at 06:23:59PM +0200, Brane F. Gračnar wrote:

> 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 ---

Are you able to reproduce the problem without third party modules?

> Nginx error log:

[...]

> 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 ---

Last line logged is one before configuration parsing. Looks like
something wrong happens during parsing of some configuration
directives. What does

gdb /path/to/nginx /path/to/core
bt

show? And could you please provide some minimal config on which
you are able to reproduce the problem?

If you have problems with obtaining core please see
http://wiki.nginx.org/NginxDebugging#Core_dump for simple
instructions.

Maxim Dounin

_______________________________________________
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 5262 May 17, 2010 12:26PM

Re: nginx 0.8.x reloading issues/crashes

Maxim Dounin 1800 May 18, 2010 05:18AM



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

Online Users

Guests: 254
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