# Crash uploading file on HTTPS/SSL rails project

**URL:** <https://www.ruby-forum.com/t/crash-uploading-file-on-https-ssl-rails-project/134044>\
**Category:** Rails\
**Created:** [April 7, 2008, 10:19am UTC](https://www.ruby-forum.com/t/crash-uploading-file-on-https-ssl-rails-project/134044 "2008-04-07T10:19:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xguardiola](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/13edae/32.png) [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Post date:** [April 7, 2008, 10:19am UTC](https://www.ruby-forum.com/t/crash-uploading-file-on-https-ssl-rails-project/134044/1 "2008-04-07T10:19:07Z")

</div>

Hi all,  
I’ve a rails project which successfully uploads images on the  
development server but fails to do it on production. The only difference  
is that the production server is on https/ssl.  
On the browser the error message is the followin:  
‘Application error  
Rails application failed to start properly’  
Whereas in the log/fastcgi.crash.log i found the followin error message:

[07/Apr/2008:10:12:39 :: 7218] Dispatcher failed to catch: bad content  
body (EOFError)  
/usr/lib/ruby/1.8/cgi.rb:982:in `read_multipart' /var/www/project/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb:38:in`initialize\_query’  
/usr/lib/ruby/1.8/cgi.rb:2271:in `initialize' (eval):16:in`initialize’  
/usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in`each\_cgi’  
/var/www/project/public/…/config/…/vendor/rails/railties/lib/fcgi\_handler.rb:141:in  
`process_each_request!' /var/www/project/public/../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in`process!’  
/var/www/project/public/…/config/…/vendor/rails/railties/lib/fcgi\_handler.rb:25:in  
`process!’  
/var/www/project/public/dispatch.fcgi:24  
almost killed by this error

The server is an Ubuntu linux with an apache2 + fcgi

Thanks in advance!
