evan / mongrel

Mongrel
http://rubygems.org/gems/mongrel
Other
144 stars 18 forks source link

Not able to upload large files using mongrel #3

Closed AntonTrapp closed 14 years ago

AntonTrapp commented 14 years ago

Sun Apr 11 06:13:21 +0000 2010: Error reading HTTP body: #<RuntimeError: Socket read returned insufficient data: 3374> /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/http_request.rb:107:in read_socket' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/http_request.rb:86:inread_body' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/http_request.rb:55:in initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:149:innew' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:149:in process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:inrun' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:innew' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:ininitialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:inrun' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:ineach' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:inrun' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /usr/bin/mongrel_rails:19:inload' /usr/bin/mongrel_rails:19

(Simple multipart with a zip or text file of some hundret mb)

luislavena commented 14 years ago

How the big file has been uploaded? Using a flash based upload?

Please provide more information about the request headers that might indicate Content-Length or similar.

Thank you.

AntonTrapp commented 14 years ago

Tried it with ZIP files and plain ASCII files. Example: http://hydrogis.broler.eu/samples/Mash.zip (happens with the zip and with the unpacked text file on remote servers (does not happen local!). Couldn't find a way around it, so I changed to passenger after years of mungrel happiness... - so I can't tell you much more to this topic if you can not reproduce the error. System was Debian Lenny with apache 2 (newest security patches) and the current mongrel / mongrel_cluster.

luislavena commented 14 years ago

So,

If you used mongrel locally during development and tried to upload big files, and didn't fail means the issue is somewhere else and not mongrel itself.

Depends on how you configured Apache to proxy to your mongrel cluster.

Since you no longer have it in production to provide more details, will close this out.

Feel free to reopen the issue once you can reproduce locally.

amittomer25 commented 13 years ago

but i uploaded 7 GB of file sucessfully running mongrel alone and mongrel+apache