Nginx 502 and recv() failed (104: Connection reset by peer)

23.13K viewsErrors Nginx PHP-FPM
0
0 Comments

Every so often Nginx will start returning 502 errors for some of my web applications. When I check the log, they’re full of lines like these:

2015/06/28 10:36:55 [error] 1139#0: *4959 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [myip], server: [mysite], request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "[mysite]", referrer: "[mysite]/wp-admin/admin.php?page=bpmemberonly"
2015/06/28 10:37:58 [error] 1139#0: *4964 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [myip], server: [mysite], request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "[mysite]", referrer: "[mysite]/wp-admin/"

Restarting PHP-FPM seems to temporarily fix the problem until it happens again. I’ve only noticed it when I’ve been doing a lot of testing with JavaScript and AJAX on my sites. I haven’t been able to find a permanent solution yet there. Any ideas?

0
Anonymous 0 Comments

http://dongshengsw.com/img/Marlboro-340.htmlhttp://dongshengsw.com/img/Marlboro-340.html
http://casacucina.net/img/adidas-486.html http://casacucina.net/img/adidas-486.html

You are viewing 1 out of 4 answers, click here to view all answers.