Welcome! Log In Create A New Profile

Advanced

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

September 08, 2010 05:48AM
Rahul,

I have the same problem and I think I, probably, know what's causing it. The bad thing is that I got it trying to solve another one and I don't know how to fix both :)

So, until today, my server sometimes issued 504 error. The error log reported "upstream timed out (110: Connection timed out) while reading response header from upstream" error. Trying to fix it, I played with various PHP-FPM timeouts. So, I increased pm.max_children from 5 to 10 and set request_terminate_timeout to 30s. Immediately after these changes had been made, 504 error was gone, but now I receive 502 with the same diagnostics as yours: "Connection reset by peer".

Do you have request_terminate_timeout defined in your php-fpm.conf?
Subject Author Posted

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

rahul286 September 07, 2010 01:39AM

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

rahul286 September 07, 2010 02:34AM

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

Igor Sysoev September 07, 2010 02:36AM

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

Rahul Bansal September 07, 2010 02:44AM

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

Igor Sysoev September 07, 2010 02:50AM

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

Rahul Bansal September 07, 2010 02:34AM

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

minaev September 08, 2010 05:48AM

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

rahul286 September 08, 2010 05:59AM

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

Jérôme Loyet September 08, 2010 05:58AM

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

minaev September 08, 2010 06:30AM

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

rahul286 September 08, 2010 06:33AM

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

minaev September 08, 2010 07:16AM

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

Jérôme Loyet September 08, 2010 08:22AM

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

eessaouira December 21, 2016 06:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready