Welcome! Log In Create A New Profile


Monthly Gateway Timeout

March 04, 2011 04:12AM
Hi All

I'm experiencing a very strange network problem that occurs every four to six weeks and lasts for approximately one hour. I can not manually provoke the problem and, during this very hour, I can not resolve it even with rebooting the server. Even stranger, two physically separated servers suffer from the same problem at the same time. Both servers use nginx as SSL reverse proxy. Each server has disjunct domains to handle.

During one hour, we just see: Nginx - Gateway Timout. After one hour, it suddenly works again. It started around four months ago. Note that all other network traffic is not affected, only nginx HTTPS and HTTP.

So, what's in common with both servers:
1) Hardware (UltraSPARC T2 Plus).
2) OS (Solaris 10 U9 latest patch level).
3) Time (both servers use the exact same NTP-controlled time).
4) Switch.
5) Firewall (I replaced the firewall four weeks ago, the error still just appeared).
6) Nginx 0.8.46-0.8.54, same configuration but for different domains internally hosted at different servers, compiled with Solaris OpenSSL.

I observed that nginx, during this mysterious hour, mistakenly proxies the requests back to the original IP on random ports instead of the proxy IP and that these requests are blocked by the firewall.

Because two different machines are affected at the same time and it cannot be resolved by a restart of nginx or a reboot of the whole server, and it resolves itself after approximately one hour, my guess is that some time-dependent error occurs in nginx.

I will replace nginx with apache to verify the problem actually is nginx and not the OS, switch are whatever and then wait and hope :-)

Does anyone have an idea how to locate or investigate this problem?

Kind regards,
Subject Author Posted

Monthly Gateway Timeout

Marc Kramis March 04, 2011 04:12AM

Re: Monthly Gateway Timeout

Maxim Dounin March 04, 2011 05:06AM

Re: Monthly Gateway Timeout

Marc Kramis March 05, 2011 06:18AM

Re: Monthly Gateway Timeout

Maxim Dounin March 05, 2011 07:48AM

Re: Monthly Gateway Timeout

Marc Kramis March 05, 2011 09:27AM

Re: Monthly Gateway Timeout

Piotr Sikora March 04, 2011 05:36AM

Re: Monthly Gateway Timeout

Igor Sysoev March 05, 2011 07:54AM

Re: Monthly Gateway Timeout

Marc Kramis March 05, 2011 09:28AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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