我们正在使用nodejs(v 0.10.29)、express、nginx(版本1.4.6)和mongodb(v 2.6.3)副本集,但会不时出现502错误。尽管nginx的error.log显示了错误,但pm2日志无法记录错误。
recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: somedomain.com, request: "GET /img/abc.png HTTP/1.1", upstream: "http://127.0.0.1:3000/img/abc.png", host: "domain.com", referrer: "http://domain.com/admin/"
而access.log显示:
"GET /url/abc.html HTTP/1.1" 502 723 "http://domain.com/admin/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36"
有人能指导我解决这个问题吗?