Issues when uploading a file: Completed 500 Internal Server Error
Added by kanv esn over 11 years ago
Hello,
We have a production redmine used for internal issues & projects. We are encountering the following error everytime a user tries to add an attachment to an issue.
It started a few days ago, no noticeable update/upgrade has been done recently.
the error:
Current user: username (id=109)
Saving attachment '/var/www/vhosts/redmine.website.com/httpdocs/files/2013/12/131211130620_dfsdebug1.PNG' (12522 bytes)
Completed 500 Internal Server Error in 10ms
Errno::EACCES (Permission denied - /var/www/vhosts/redmine.website.com/httpdocs/files/2013/12/131211130620_dfsdebug1.PNG):
app/models/attachment.rb:111:in `initialize'
app/models/attachment.rb:111:in `open'
app/models/attachment.rb:111:in `files_to_final_location'
app/controllers/attachments_controller.rb:88:in `upload'
Our redmine version:
Environment:
Redmine version 2.3.0.stable.11670
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed
Any idea?
Best regards.
Replies (2)
RE: Issues when uploading a file: Completed 500 Internal Server Error
-
Added by nico ps over 10 years ago
Hello,
i am having the same issue with our redmine environmnt.
Did managed to solve the problem?
Best regards
RE: Issues when uploading a file: Completed 500 Internal Server Error
-
Added by Pavel Potcheptsov over 10 years ago
chmod -R 766 /var/www/vhosts/redmine.website.com/httpdocs/files