Welcome! Log In Create A New Profile

Advanced

Re: Debugging 504 Gateway Timeout and its actual cause and solution

January 06, 2016 02:56AM
Thanks Richard & itpp2015 for your response.

Further update :

There are 2 cases :

1. 504 @ 120 seconds coming with below mentioned error :

2016/01/05 03:50:54 [error] 1070#0: *201650845 upstream timed out (110: Connection timed out) while connecting to upstream, client: 66.249.74.99, server: x.x.x.x, request: "GET /some/url HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com"

2. 504 @ 300 seconds coming with below mentioned error :

2016/01/05 00:51:43 [error] 1067#0: *200656359 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 115.112.161.9, server: 192.168.12.101, request: "GET /some/url HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com"

* No errors found in php-fpm logs.
* Number of php-fpm processes were also normal. Backend doesn't look overloaded as other requests were served out fine at the same time.

* Only one php-fpm pool is being used. One php-fpm master (parent) process and other slave (child) processes are usually at normal range only when 5xx are observed. There is no significant growth in number of php-fpm processes and even if grows then server has enough capacity to fork new ones and serve the request.
Subject Author Posted

Debugging 504 Gateway Timeout and its actual cause and solution

Keyur January 04, 2016 08:34AM

Re: Debugging 504 Gateway Timeout and its actual cause and solution

Keyur January 04, 2016 08:53AM

Re: Debugging 504 Gateway Timeout and its actual cause and solution

Richard Stanway January 04, 2016 09:12AM

Re: Debugging 504 Gateway Timeout and its actual cause and solution

Keyur January 06, 2016 02:56AM

Re: Debugging 504 Gateway Timeout and its actual cause and solution

Maxim Dounin January 08, 2016 11:36AM

Re: Debugging 504 Gateway Timeout and its actual cause and solution

Keyur January 11, 2016 12:51AM

Re: Debugging 504 Gateway Timeout and its actual cause and solution

itpp2012 January 04, 2016 09:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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