Welcome! Log In Create A New Profile

Advanced

Problem upgrading on the fly when ipv6 is used

Usu
May 29, 2010 03:23AM
Hi!

I've always upgraded nginx on the fly following this guide: http://wiki.nginx.org/NginxCommandLine without problems.
I recently added IPv6 support to nginx and now, when I need to upgrade it, it doesn't start the new instance when I send the USR2 signal to the master process, giving the following erros:
[code]
2010/05/29 09:05:52 [notice] 21060#0: using inherited sockets from "14;15;"
2010/05/29 09:05:52 [emerg] 21060#0: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
[emerg]: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
2010/05/29 09:05:52 [emerg] 21060#0: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
[emerg]: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
2010/05/29 09:05:52 [emerg] 21060#0: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
[emerg]: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
2010/05/29 09:05:52 [emerg] 21060#0: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
[emerg]: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
2010/05/29 09:05:52 [emerg] 21060#0: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
[emerg]: bind() to [2001:41d0:2:8673::1]:80 failed (98: Address already in use)
2010/05/29 09:05:52 [emerg] 21060#0: still could not bind()
[emerg]: still could not bind()
[/code]

I'm using nginx 0.8.37 and I was trying to upgrade to 0.8.38.
Here's an example of my nginx configuration regarding IPv6 (all the other vhost have the same one):

[code]
server { # php/fastcgi
listen [2001:41D0:2:8673::1];
listen 80;
server_name img.italiansubs.net;
access_log logs/img.access.log main;
root /var/www/img.italiansubs.net/public_html;


location / {
index index.html index.htm index.php index.xml;
}

location /news2/data/ {
expires 35d;
}

location ~ \.php$ {
fastcgi_pass unix:/tmp/php-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;
}
}

[/code]

If I manually restart nginx via init script it works, but of course all the open connections are dropped, which is something I would like to avoid.

Thanks a lot,
Andrea
Subject Author Posted

Problem upgrading on the fly when ipv6 is used

Usu May 29, 2010 03:23AM

Re: Problem upgrading on the fly when ipv6 is used

Maxim Dounin May 30, 2010 07:40PM

Re: Problem upgrading on the fly when ipv6 is used

Usu May 31, 2010 03:57AM

Re: Problem upgrading on the fly when ipv6 is used

Maxim Dounin May 31, 2010 04:20AM

Re: Problem upgrading on the fly when ipv6 is used

Usu May 31, 2010 07:53AM

Re: Problem upgrading on the fly when ipv6 is used

Maxim Dounin May 31, 2010 09:16AM

Re: Problem upgrading on the fly when ipv6 is used

Igor Sysoev May 31, 2010 10:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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