502 bad gateway with multiple file upload
nabeel
nginx-forum at nginx.us
Thu Jul 30 19:20:59 MSD 2009
Hey guys,
I keep getting:
recv() failed (104: Connection reset by peer) while reading response header from upstream
But only when uploading, more than one file at a time. They're just small images.
I'm scratching my head on this one. I had this problem before, doing this (http://www.urbanpuddle.com/articles/2008/05/17/solve-104-connection-reset-by-peer) had fixed it before, but now it seems back again. If anyone wants
top does show the 4 php-cgi processes running. Restarting them/restarting nginx does no good. Frees up alot of ram though :) I bumped this upto 8 processes for php-fcgi, but had no effect.
To spawn PHP f-cgi, I can't quite remember, but I'm using a startup script (which I can post), which I think was the one that came with PHP, it wasn't the spawn-fcgi ( should have written down all the steps I did to install)
The only thing "custom compiled" by me was nginx, running 0.7.61, a bit ahead of the aptitude copy. Not sure if nginx is the problem though. Running Ubuntu 9.04, on a VPS with Slicehost.
The exact errors.. (replaced the domain with **)
2009/07/29 23:20:51 1155#0: *1 a client request body is buffered to a temporary file /etc/nginx/client_body_temp/0000000000, client: 67.87.69.128, server: **, request: "POST /profile/editairline HTTP/1.1", host: "**", referrer: "http://**/profile/editairline/1"
2009/07/29 23:20:53 1155#0: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 67.87.69.128, server: **, request: "POST /profile/editairline HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "**", referrer: "http://**/profile/editairline/1"
So, any ideas? Thanks!!
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4618,4618#msg-4618
More information about the nginx
mailing list