Welcome! Log In Create A New Profile

Advanced

502 bad gateway with multiple file upload

July 30, 2009 11:20AM
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. PHP max_upload_size is 10mb, though these files are images, and one is 80kb, another is 300kb. Trying different images didn't help (tried mixed JPG, PNG, etc).

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 [warn] 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 [error] 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!!



Edited 1 time(s). Last edit at 07/30/2009 11:22AM by nabeel.
Subject Author Posted

502 bad gateway with multiple file upload

nabeel July 30, 2009 11:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 193
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready