プロジェクト

全般

プロフィール

Vote #74439

完了

Internal Server Error while uploading file

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Attachments_19
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
19
version_id:
74
issue_org_id:
14977
author_id:
86393
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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 at 2013-09-24 15:52:08 +0400
Processing by AttachmentsController#upload as JS
Parameters: {"attachment_id"=>"1", "filename"=>"ocenki.png"}
Current user: (id=28)
Completed 500 Internal Server Error in 41ms

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'


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.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリAttachments_19 にセット
  • 対象バージョン2.3.4_74 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0