Last night I had my provider (Linode) add IPv6 support for my server. I
also had them assign me an IPv6 pool to use.
I have Nginx 1.0.2 compiled with IPv6 support, restarted my Nginx and
everything was fine all night and most of the morning. However, within
minutes of me adding AAAA records to my domains, Nginx stopped and
running and took the IPv4 networking down with it. I hadn’t even
restarted Nginx after adding the records.
Upon reboot with Nginx disabled, everything runs fine. I start Nginx
and make a single IPv4 page request, the network is completely gone
again on all ports.
I don’t believe in coincidences so what could adding AAAA records to
domains Nginx is listening for on port 80 trigger? Nginx had been
running without problems for 12 hours with IPv6 enabled on the server
with an assigned global scope IPv6 address. Within minutes of me adding
those AAAA records, the trouble began.
I don’t see anything in the logs that helps. Here is my configuration
for Nginx:
Literally everything. SSH - everything. This is a VPS (Linode) with a
Lish AJAX console that normally works even when all other networking is
disabled and even it was down. I was literally blind and the only
option left was to reboot each time. It took several reboots to narrow
it down to a particular service.
Please let me know if there is a particular log I should look at. I’ve
looked at the messages and syslog as well as the access and error logs
for nginx and they are all missing entries during the time networking
was down.
Thanks! I’ve been using Nginx for years barely a hiccup until this.
On Fri, May 13, 2011 at 03:25:47PM -0400, holstebm wrote:
Literally everything. SSH - everything. This is a VPS (Linode) with a
Lish AJAX console that normally works even when all other networking is
disabled and even it was down. I was literally blind and the only
option left was to reboot each time. It took several reboots to narrow
it down to a particular service.
I believe this is a bug in Linux or VPS.
A user mode program even run with root privilege that makes only usual
listen/bind/setsockopt/accept/etc syscalls on IPv6 sockets should not
cause such issues.
I haven’t eliminated the possibility that Nginx is the symptom and not
the cause. Of course, under the circumstances, I’m not sure how I might
do that. But I am willing to provide anything you need to help get to
the bottom of this.
Okay, thanks, I’ll into that bit more. This is a production machine
which, right now, limits me a bit. I is running Ubuntu 10.04 with one
of the kernels from Linode. Sometime overnight this weekend, I’ll play
with it a bit more. I can use other kernels or compile my own, if
necessary.
I was hoping what you thought about the AAAA records being added and the
appearance of the issue might be helpful as it seems strange. Perhaps a
routing problem of some sort when Nginx sent out a reply?
On Fri, May 13, 2011 at 03:47:29PM -0400, holstebm wrote:
Okay, thanks, I’ll into that bit more. This is a production machine
which, right now, limits me a bit. I is running Ubuntu 10.04 with one
of the kernels from Linode. Sometime overnight this weekend, I’ll play
with it a bit more. I can use other kernels or compile my own, if
necessary.
I was hoping what you thought about the AAAA records being added and the
appearance of the issue might be helpful as it seems strange. Perhaps a
routing problem of some sort when Nginx sent out a reply?
AAAA record may just cause IPv6 traffic to the host.
And the traffic may cause kernel issues.
–
Igor S.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.