NginX & PHP-FPM, random 502.

Posted by pestaa on Server Fault See other posts from Server Fault or by pestaa
Published on 2010-09-19T16:17:42Z Indexed on 2011/02/07 15:27 UTC
Read the original article Hit count: 324

Filed under:
|
|
2010/09/19 14:52:07 [error] 1419#0: *10220 recv() failed
(104: Connection reset by peer) while reading response header from upstream,
client: [...], server: [...], request: "POST /[...] HTTP/1.1", upstream: 
"fastcgi://unix:/server/php-fpm.sock:", host: "[...]",
referrer: "[...]"

This is the error I'm receiving randomly. 95% of the time my setup works perfectly, but once in a while I'm getting 502 for 3-4 subsequent requests.

I'm using Unix socket between the server and the PHP process as you can see, also have set up FastCGI params (SCRIPT_FILENAME), etc. correctly.

What can I do about it to strengthen the connection between these services?

Thank you very much in advance.

© Server Fault or respective owner

Related posts about nginx

Related posts about php-fpm