Redmine version upgrade, we need to do the migration of the database and the migration of the attachment document, when all the work done, I thought everything was all well, but when uploading the attachment, we found the report Internal Server Error Error, unable to complete the upload work.
As shown in the following:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/15/wKioL1hh3ySAppCXAAAJlsRM4Fk958.jpg-wh_500x0-wm_3 -wmp_4-s_1497146040.jpg "title=" Report internal Server error error. jpg "alt=" wkiol1hh3ysappcxaaajlsrm4fk958.jpg-wh_50 "/>
Problem analysis: After opening redmine, to view the upload Files folder read and write permissions, found to be insufficient permissions caused.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8C/15/wKioL1hh35iCbyPXAAA5e9ww-VY188.jpg-wh_500x0-wm_3 -wmp_4-s_652039406.jpg "title=" permission. jpg "alt=" wkiol1hh35icbypxaaa5e9ww-vy188.jpg-wh_50 "/>
Solution: Give it permission, command is Chmod-r a+w/files, execute it.
After execution, verify the following permissions:
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8C/15/wKioL1hh4AHQRYZOAAA6nnyO86U123.jpg-wh_500x0-wm_3 -wmp_4-s_1547543814.jpg "title=" Verify permissions. jpg "alt=" wkiol1hh4ahqryzoaaa6nnyo86u123.jpg-wh_50 "/>
Re-visit the site test can be uploaded, the effect is as follows:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/15/wKioL1hh4Fzw6JLtAAAgWW_Y0xg610.jpg-wh_500x0-wm_3 -wmp_4-s_2789611030.jpg "title=" upload. jpg "alt=" wkiol1hh4fzw6jltaaagww_y0xg610.jpg-wh_50 "/>
Perfect solution! Hope that we encounter problems, analysis of problems, and constantly experience, improve their actual combat ability!
Redmine Project management platform of the actual combat video course
Http://edu.51cto.com/course/course_id-3686.html
This article from "Hao Yang _ Habitat" blog, please be sure to keep this source http://zdytesting.blog.51cto.com/5811414/1886451
Redmine Internal Server Error error when file is uploaded after migration