Project

General

Profile

Actions

Defect #14977

closed

Internal Server Error while uploading file

Added by Valentina Kozimirova about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Attachments
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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 <ip_address> at 2013-09-24 15:52:08 +0400
Processing by AttachmentsController#upload as JS
Parameters: {"attachment_id"=>"1", "filename"=>"ocenki.png"}
Current user: <user.name> (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'

Actions

Also available in: Atom PDF