3048: Error in uploading files

balasubra*********@gmai***** (Google Code) (Is this you? Claim this profile.)
Aug. 6, 2013
What version are you running?
1.6.5

What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. Try to upload the file, the file is not getting uploaded
2. you can see in the httpd error logs permission denied /opt/reviewboad1, but my upload file directory in some other 
path.

3.

What is the expected output? What do you see instead?
upload files successfully

What operating system are you using? What browser?
RHEL 5.5

Please provide any additional information below.
error logs
[Tue Aug 06 18:11:33 2013] [error] ERROR:root:Exception thrown for user vicp at http://10.x.x.x:8080/api/review-requests/2651/file-attachments/
[Tue Aug 06 18:11:33 2013] [error]
[Tue Aug 06 18:11:33 2013] [error] [Errno 13] Permission denied: '/opt/reviewboard1'
[Tue Aug 06 18:11:33 2013] [error] Traceback (most recent call last):
chipx86
#1 chipx86
Some part of your path is not writable by the web server. Look at /opt/reviewboard1 and make sure the permissions are 755. Same with all other paths up to your uploaded directory path.
  • +SetupIssue
#2 balasubra*********@gmai***** (Google Code) (Is this you? Claim this profile.)
After changing the permission to 755, then also same issue persists, changed to 777 and worked...
david
#3 david
777 may work fine based on the security of the server, but it sounds like probably the directory was not owned by the user that the web server is running as.