Nginx 1.17.6 ignores kill -HUP

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Nginx 1.17.6 ignores kill -HUP

Luciano Mannucci

I have an istallation of nginx in a FreeBSD PPC64 server (running
11.3 RELEASE) which seems to ignore kill -HUP: it doesn't reload
configuration and doesn't log the fact that kill has reached it, even
if I set the debug level in error_log to "debug".

nginx -V says:

nginx version: nginx/1.17.6
built by gcc 9.2.0 (FreeBSD Ports Collection)
built with OpenSSL 1.0.2t  10 Sep 2019
TLS SNI support enabled
configure arguments: --prefix=/usr/local --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--pid-path=/var/run/nginx_pool/nginx.pid --user=httpd --group=nagcmd
--with-cc=/usr/local/bin/gcc9 --with-cpp=/usr/local/bin/cpp9
--with-cpu-opt=ppc64 --with-http_dav_module --with-http_ssl_module
--with-http_realip_module --with-http_addition_module --with-http_xslt_module
--with-http_image_filter_module --with-http_geoip_module --with-http_sub_module
--with-http_flv_module --with-http_mp4_module --with-http_gunzip_module
--with-http_gzip_static_module --with-http_auth_request_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_degradation_module --with-http_stub_status_module
--with-http_perl_module --with-http_v2_module --with-google_perftools_module
--with-mail --with-mail_ssl_module

Have I missed something?
where should I look to see what happens?

Thanks in advance,

Luciano.
--
 /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
 \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
  X   AGAINST HTML MAIL    /  E-MAIL: [hidden email]
 / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: Nginx 1.17.6 ignores kill -HUP

Luciano Mannucci
On Fri, 20 Dec 2019 16:23:26 +0100
Luciano Mannucci <[hidden email]> wrote:

> I have an istallation of nginx in a FreeBSD PPC64 server (running
> 11.3 RELEASE) which seems to ignore kill -HUP: it doesn't reload
> configuration and doesn't log the fact that kill has reached it, even
> if I set the debug level in error_log to "debug".
Further investigation: it does re-read the config.
It just doesn't log that it did it.

This may be a problem because *sometime* it doesn't reload the ssl
certificates not noticing that they have changed.

Do I need to put something special in the conf file to achieve that?

Thanks again,

Luciano.
--
 /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
 \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
  X   AGAINST HTML MAIL    /  E-MAIL: [hidden email]
 / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: Nginx 1.17.6 ignores kill -HUP

Sergey A. Osokin-2
Hi Luciano,

hope you're doing well.

As far as I understood you're running nginx on FreeBSD 11.3 ppc64.
It looks like it's nginx from mainline 1.17 branch.

I would recommend to build nginx from FreeBSD ports collection,
please see www/nginx-devel for details.

In this case nginx builds with the following option:

[ ] DEBUGLOG                 Enable debug log (--with-debug)

it's possible to enable debug log in nginx.conf configuration
file.

Thanks.

--
Sergey Osokin

On Fri, Dec 20, 2019 at 06:21:42PM +0100, Luciano Mannucci wrote:

> On Fri, 20 Dec 2019 16:23:26 +0100
> Luciano Mannucci <[hidden email]> wrote:
>
> > I have an istallation of nginx in a FreeBSD PPC64 server (running
> > 11.3 RELEASE) which seems to ignore kill -HUP: it doesn't reload
> > configuration and doesn't log the fact that kill has reached it, even
> > if I set the debug level in error_log to "debug".
> Further investigation: it does re-read the config.
> It just doesn't log that it did it.
>
> This may be a problem because *sometime* it doesn't reload the ssl
> certificates not noticing that they have changed.
>
> Do I need to put something special in the conf file to achieve that?
>
> Thanks again,
>
> Luciano.
> --
>  /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
>  \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
>   X   AGAINST HTML MAIL    /  E-MAIL: [hidden email]
>  / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/
> _______________________________________________
> nginx mailing list
> [hidden email]
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: Nginx 1.17.6 ignores kill -HUP

Jochen Neumeister
Hi,

you're not allone with this Problem.
Other nginx user have the same Problem:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242626

Unfortunately I have no solution for the problem at the moment


Cheers
Jochen


Am 20.12.19 um 18:31 schrieb Sergey A. Osokin:

> Hi Luciano,
>
> hope you're doing well.
>
> As far as I understood you're running nginx on FreeBSD 11.3 ppc64.
> It looks like it's nginx from mainline 1.17 branch.
>
> I would recommend to build nginx from FreeBSD ports collection,
> please see www/nginx-devel for details.
>
> In this case nginx builds with the following option:
>
> [ ] DEBUGLOG                 Enable debug log (--with-debug)
>
> it's possible to enable debug log in nginx.conf configuration
> file.
>
> Thanks.
>
> --
> Sergey Osokin
>
> On Fri, Dec 20, 2019 at 06:21:42PM +0100, Luciano Mannucci wrote:
>> On Fri, 20 Dec 2019 16:23:26 +0100
>> Luciano Mannucci <[hidden email]> wrote:
>>
>>> I have an istallation of nginx in a FreeBSD PPC64 server (running
>>> 11.3 RELEASE) which seems to ignore kill -HUP: it doesn't reload
>>> configuration and doesn't log the fact that kill has reached it, even
>>> if I set the debug level in error_log to "debug".
>> Further investigation: it does re-read the config.
>> It just doesn't log that it did it.
>>
>> This may be a problem because *sometime* it doesn't reload the ssl
>> certificates not noticing that they have changed.
>>
>> Do I need to put something special in the conf file to achieve that?
>>
>> Thanks again,
>>
>> Luciano.
>> --
>>   /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
>>   \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
>>    X   AGAINST HTML MAIL    /  E-MAIL: [hidden email]
>>   / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/
>> _______________________________________________
>> nginx mailing list
>> [hidden email]
>> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> [hidden email]
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: Nginx 1.17.6 ignores kill -HUP

Sergey A. Osokin-2
Hi Jochen,

thanks for the reply.

On Sat, Dec 21, 2019 at 07:06:24PM +0100, Jochen Neumeister wrote:
> Hi,
>
> you're not allone with this Problem.
> Other nginx user have the same Problem:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242626
>
> Unfortunately I have no solution for the problem at the moment

I'm not on position to think these two issues are similar.
Here, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242626#c20
the originator has clear replied he has the issue on 12.1 amd64
and on 11.1 everything looks fine.

In this case we have FreeBSD 11.3 on ppc64, nginx has been built
with gcc9, not from ports.

So, my recommendation is still the same as before: build nginx from
ports tree with debug log enabled.  Once compiled, it's possible to
use the following directive on the main level to enable debug logging:

error_log  /var/log/nginx/error.log debug;

--
Sergey

 

> Am 20.12.19 um 18:31 schrieb Sergey A. Osokin:
> > Hi Luciano,
> >
> > hope you're doing well.
> >
> > As far as I understood you're running nginx on FreeBSD 11.3 ppc64.
> > It looks like it's nginx from mainline 1.17 branch.
> >
> > I would recommend to build nginx from FreeBSD ports collection,
> > please see www/nginx-devel for details.
> >
> > In this case nginx builds with the following option:
> >
> > [ ] DEBUGLOG                 Enable debug log (--with-debug)
> >
> > it's possible to enable debug log in nginx.conf configuration
> > file.
> >
> > Thanks.
> >
> > --
> > Sergey Osokin
> >
> > On Fri, Dec 20, 2019 at 06:21:42PM +0100, Luciano Mannucci wrote:
> >> On Fri, 20 Dec 2019 16:23:26 +0100
> >> Luciano Mannucci <[hidden email]> wrote:
> >>
> >>> I have an istallation of nginx in a FreeBSD PPC64 server (running
> >>> 11.3 RELEASE) which seems to ignore kill -HUP: it doesn't reload
> >>> configuration and doesn't log the fact that kill has reached it, even
> >>> if I set the debug level in error_log to "debug".
> >> Further investigation: it does re-read the config.
> >> It just doesn't log that it did it.
> >>
> >> This may be a problem because *sometime* it doesn't reload the ssl
> >> certificates not noticing that they have changed.
> >>
> >> Do I need to put something special in the conf file to achieve that?
> >>
> >> Thanks again,
> >>
> >> Luciano.
> >> --
> >>   /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
> >>   \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
> >>    X   AGAINST HTML MAIL    /  E-MAIL: [hidden email]
> >>   / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/
> >> _______________________________________________
> >> nginx mailing list
> >> [hidden email]
> >> http://mailman.nginx.org/mailman/listinfo/nginx
> > _______________________________________________
> > nginx mailing list
> > [hidden email]
> > http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx