Uploading Files

I am getting this error in my mongrel.log whenever I try to upload a
file in my rails application via a form. My model is using the File
Column plugin (http://www.kanthak.net/opensource/file_column/).


** Mongrel available at 127.0.0.1:8001
** Writing PID file to log/mongrel.8001.pid
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
restart).
** Rails signals registered. HUP => reload (without restart). It might
not work well.
** Mongrel available at 127.0.0.1:8000
** Writing PID file to log/mongrel.8000.pid
ERROR reading http body: Socket read returned insufficient data: 6314
ERROR reading http body: Socket read returned insufficient data: 10410
ERROR reading http body: Socket read returned insufficient data: 11823
ERROR reading http body: Socket read returned insufficient data: 10582

I don’t get this error when uploaded in development mode on my home
machine, only in production mode on my live server.

Any clues as to what this error means or how to resolve it?

PS. I’m running Pound in front of a Mongrel cluster and Lighttpd server.

Cheers,

Mark

Hi Mark,

We’re seeing this same problem, did you ever come upon a solution?

–Scott Persinger

On Dec 19 2006, 3:00 pm, Mark D. <rails-mailing-l…@andreas-

Hi All,

I also get the same error. Even in the development mode. Can anyone
help!!

Cheers,
Pradeep.

On Dec 20 2006, 4:00 am, Mark D. <rails-mailing-l…@andreas-

Pradeep wrote:

Hi All,

I also get the same error. Even in the development mode. Can anyone
help!!

Cheers,
Pradeep.

On Dec 20 2006, 4:00 am, Mark D. <rails-mailing-l…@andreas-

Hi - I got the same error on my live app. Got the call to say the site
is down. Restarted mongrel and after clearing the PID it worked and al
was well.

I found the exact same error in the mongrel.log.

Has anyone figured anything out?

Ivor

I’m facing the same problem and can’t figure out what’s going on! my
form is submitted using submit button.

Please I need your help in this urgently.

On Nov 20, 1:54 pm, Chirantan Rajhans <rails-mailing-l…@andreas-

On Tue, Dec 19, 2006 at 3:00 PM, Mark D.
[email protected] wrote:

I don’t get this error when uploaded in development mode on my home
machine, only in production mode on my live server.

Any clues as to what this error means or how to resolve it?

PS. I’m running Pound in front of a Mongrel cluster and Lighttpd server.

Are you running the same configuration in your dev environment?
If not, can you try it, or alternatively try uploading directly to one
of
the mongrels (bypassing Pound/Lighttpd) in production?

Seems like the first thing to try to eliminate from the equation :slight_smile:


Hassan S. ------------------------ [email protected]

Ivor P. wrote:

Pradeep wrote:

Hi All,

I also get the same error. Even in the development mode. Can anyone
help!!

Cheers,
Pradeep.

On Dec 20 2006, 4:00 am, Mark D. <rails-mailing-l…@andreas-

Hi - I got the same error on my live app. Got the call to say the site
is down. Restarted mongrel and after clearing the PID it worked and al
was well.

I found the exact same error in the mongrel.log.

Has anyone figured anything out?

Ivor

I faced the same problem but thankfully I was able to get out of it.

In my case, I was using a javacsript to submit the form that held the
file field. When I used a normal submit button, it all started working
fine. :slight_smile: I really dont know what exactly is wrong in submitting form
using a javascript but using the submit button instead worked.

You may want to try that…

Chirantan.

Friends.
I got the same error…

ERROR reading http body: Socket read returned insufficient data:

After analysing it I goes to the result that in the mean time of the
request data transfer the internet connect is lost from the client to
the server… then the server return

ERROR reading http body: Socket read returned insufficient data:

Minal Jain

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs