Large uploads fails with Firefox
This is a defect describing the behaviour observed in this thread
There seems to be a problem with uploaded files in a very special corner case.
It arises with Firefox as client, at least on MacOSX 10.6.
It works with Safari.
Where it fails it comes up with a redMine 500 error page, but nothing is traced in
the log files.
We are running nginx 0.7.67 on an OpenBSD 4.7 (MP) box serving as a proxy for Redmine 1.0.0 running in a
mongrel_cluster on an Ubuntu 10.04 up to date system:
- database: mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1
- ruby: ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
- rails: 2.3.5
- redmine: Redmine 1.0.0.stable.3892
The failure appears only for files which are larger then the in-memory cache of nginx for the upload.
#2 Updated by Bedřich Lacina over 8 years ago
I encountered the same problem - when uploading larger files (even though the Redmine - Administration - Settings - General - Attachment max. size was correctly set) the Redmine failed with no entry in production.log. After some investigation I encountered following message in apache log:
[warn] [client X.X.X.X] mod_fcgid: HTTP request length 136384 (so far) exceeds MaxRequestLen (131072), referer: http://X.X.X/projects/XXX/files/new
FcgidMaxRequestLen 51200000 in /etc/apache2/mods-available/fcgid.conf and reloading apache everything worked as it should.
Note that if you use mod_ruby to run Redmine instead of fcgi you will have to add
LimitRequestBody 51200000 to your httpd.conf.