Random 502 bad gateway with php-fpm, why?

Toni Mueller support-nginx at oeko.net
Fri Nov 15 22:55:06 UTC 2013


On Thu, Nov 14, 2013 at 01:13:08PM -0500, justin wrote:
> My PHP application went down for a few hours with 502 bad gateway. In the
> nginx error log all I see is:
> 
> 2013/11/14 10:02:16 [error] 1466#0: *57964 recv() failed (104: Connection
> reset by peer) while reading response header from upstream

I recently hit the same problem and was able to ameliorate it by upping
the OS limits (open files etc.). There are some discussions around this
problem on stackoverflow and friends which suggest that one has to
experiment.


Kind regards,
--Toni++



More information about the nginx mailing list