Vote #74439
完了Internal Server Error while uploading file
0%
説明
Hello,
Sometimes Redmine stops uploading files and shows Internal Server Error when I try to attach file to issue. Application restart fixes it, but after some time problem comes again (now once a day).
Environment:
Redmine version 2.3.1.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter PostgreSQL 9.1
Http server - Ngnix with Passenger
In production.log:
Started POST "/uploads.js?attachment_id=1&filename=ocenki.png" for
Processing by AttachmentsController#upload as JS
Parameters: {"attachment_id"=>"1", "filename"=>"ocenki.png"}
Current user:
Completed 500 Internal Server Error in 41ms
NoMethodError (undefined method info' for nil:NilClass):
files_to_final_location'
app/models/attachment.rb:105:in
app/controllers/attachments_controller.rb:88:in `upload'
journals
i have almost the same error
but on:
Environment:
Redmine version 2.3.3.devel
Ruby version 1.9.3-p448 (2013-06-27) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
SCM:
Git 1.7.1
Filesystem
Redmine plugins:
redmine_git_hosting 0.6.2
redmine_plugin_views_revisions 0.0.1
*production.log:*
<pre>
Started POST "/uploads.js?attachment_id=1&filename=0_1_dogovor_v8.docx" for 195.208.175.17 at 2013-09-25 14:28:19 +0400
Processing by AttachmentsController#upload as JS
Parameters: {"attachment_id"=>"1", "filename"=>"0_1_dogovor_v8.docx"}
Current user: username (id=10)
Completed 500 Internal Server Error in 78ms
NoMethodError (undefined method `info' for nil:NilClass):
app/models/attachment.rb:105:in `files_to_final_location'
app/controllers/attachments_controller.rb:88:in `upload'
</pre>
and simple restarting of puma solves problem for some time. but later internal error comes again.
ps. ive commented out app/models/attachment.rb:105
now it is working and i belive it will help for some time.
--------------------------------------------------------------------------------
I also have plugins
@redmine_git_hosting 0.6.2
redmine_plugin_views_revisions 0.0.1@
installed
--------------------------------------------------------------------------------
Fixed in r12202, but this error means that you don't have any logger defined. You should check that anyway.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------