https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-04-03T13:30:17ZRedmineRedmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=84412009-04-03T13:30:17ZThomas Jahns
<ul></ul><p>Version is 0.8.2</p> Redmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=85742009-04-09T01:22:36ZEric Davis
<ul></ul><p>That is the generic "Something bad happened" error. Can you attach your log files that include the actual error? They are stored in <code>log/production.log</code></p> Redmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=85802009-04-09T07:12:41ZThomas Jahns
<ul><li><strong>File</strong> <a href="/attachments/1847">production.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1847/production.log">production.log</a> added</li></ul><p>Eric Davis wrote:</p>
<blockquote>
<p>Can you attach your log files that include the actual error? They are stored in <code>log/production.log</code></p>
</blockquote>
<p>good hint, another file to put into log rotation.</p>
<p>From the log I see that ruby got an out of memory error. From what I read on some other boards, I can see that redmine does some in-memory processing of uploaded files. Is that a sensible approach? Why doesn't the file simply get dumped into a staging directory inside the redmine directory and moved to the files directory when the upload finished successfully?</p>
<p>I hope the backtrace is of some use.</p> Redmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=85962009-04-10T16:33:36ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Memory consumption on file upload is fixed in <a class="changeset" title="Fixes memory consumption on file upload (#3116)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2670">r2670</a>.<br />Can you confirm please?</p> Redmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=86292009-04-14T09:57:23ZThomas Jahns
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Memory consumption on file upload is fixed in <a class="changeset" title="Fixes memory consumption on file upload (#3116)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2670">r2670</a>.<br />Can you confirm please?</p>
</blockquote>
<p>Only partially. Yes, memory consumption did go down, but was still high and upload again failed on another file. I then tried to search for similar reports and found <<a class="external" href="http://www.jedi.be/blog/2009/04/10/rails-and-large-large-file-uploads-looking-at-the-alternatives/&gt;">http://www.jedi.be/blog/2009/04/10/rails-and-large-large-file-uploads-looking-at-the-alternatives/&gt;</a>. From there I decided to give mongrel a go and stopped webrick and used</p>
<p>mongrel_rails start -e production</p>
<p>to start the redmine server. That did significantly reduce memory footprint.</p>
<p>So I guess your fix does improve memory consumption and decrease the time for md5 computation but running mongrel is a worthwhile recommendation since redmine itself is innocent of most of the memory usage in file uploads.</p>
<p>Greetings, Thomas</p> Redmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=86302009-04-14T10:53:23ZThomas Jahns
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>That should have been:</p>
<p><a class="external" href="http://www.jedi.be/blog/2009/04/10/rails-and-large-large-file-uploads-looking-at-the-alternatives/">http://www.jedi.be/blog/2009/04/10/rails-and-large-large-file-uploads-looking-at-the-alternatives/</a></p>
<p>So perhaps parsing <URL> is another issue. ;-)</p>
<p>Greetings, Thomas</p> Redmine - Defect #3116: Uploading medium size file failshttps://www.redmine.org/issues/3116?journal_id=88262009-04-24T17:31:29ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>Attachments</i></li><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>I use mongrel for development. I didn't even try with webrick but anyone who runs rails applications should know that webrick is not suitable for production purpose :-)</p>
<p>The fix is merged in 0.8-stable branch in <a class="changeset" title="Merged r2664, r2665, r2670, r2674, r2677, r2679 from trunk." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2681">r2681</a>.<br />Thanks for the feedback.</p>