Welcome! Log In Create A New Profile

Advanced

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

September 08, 2010 01:26PM
On Wed, Sep 8, 2010 at 4:02 AM, Rahul Bansal <rahul.bansal@rtcamp.com> wrote:

> -PHP-FPM debug really produced very less info which was not helpful at all.
> On sidenote, why php error shows up in nginx error.log and not in php-fpm?

502 will be when nginx's connection is broken to the upstream (it was
forcibly killed by request_terminate_timeout, etc.) - it's bad
gateway.

504 is when nginx is waiting around and hits fastcgi_read_timeout or
other upstream related settings - it's a gateway timeout.

This isn't a "php error" per-se. nginx is logging the proxy related
issue, php-fpm just isn't logging "backlog too full" type of messages
(which it may or may not be able to do. No clue about that)

I've found the newer php-fpm to have plenty of error log output to
play with. This may be a lower level kernel related thing that php-fpm
is not aware of because the requests have been queued up and fill
up/timeout/drop before php-fpm even knows about them. (Just a hunch)

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zero load(on a test-server)

Reinis Rozitis September 07, 2010 06:40AM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zero load(on a test-server)

Rahul Bansal September 07, 2010 12:08PM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

Reinis Rozitis September 07, 2010 01:00PM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

Rahul Bansal September 08, 2010 07:12AM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almostzeroload(on a test-server)

Reinis Rozitis September 08, 2010 07:22AM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

mike September 08, 2010 01:26PM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

net999 April 14, 2011 04:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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