Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have found this error on my NGINX error.log:

2011/05/09 23:33:52 [error] 22145#0: *1158 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xx.xx.xxx.xxx, server: *.mywebsite.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "mywebsite.com"

What does it mean? is probably a php-fpm problem?

share|improve this question
    
Is there just one or few of these errors and your site is in general working OK, or is it mostly broken? –  af. May 9 '11 at 23:23
    
@af fortunately only few times –  Dail May 10 '11 at 7:19
    
Yes, but I do not understand why Nginx can't connect to 127.0.0.1:9002 ... I see the port is listening (php-fpm). –  user80948 May 10 '11 at 8:36
    
It was able to connect. If you read the error message, the connection was closed while nginx was trying to read the response headers, which means it had connected and sent the request to php successfully. Are you logging php errors? Perhaps you should look there. –  kolbyjack May 10 '11 at 12:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.