#6087 closed defect (worksforme)
Cant upload a file
Reported by: | wtolli | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | 0.9.6 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
For some reason I cannot upload a file to a wiki page that I just created.
Attachments (0)
Change History (4)
comment:1 by , 17 years ago
Keywords: | needinfo added |
---|---|
Priority: | high → normal |
Severity: | blocker → major |
follow-up: 3 comment:2 by , 17 years ago
Version: Trac 0.9.6
Location: Dont know. Suspect our own installation. Address is http://wiki.mc.com/Yosemite/attachment/wiki/ECB_OFF_PU?action=new
Error Message: Oops… Trac detected an internal error: [Errno 13] Permission denied: '/var/www/Yosemite/attachments/wiki'If you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team.
Go to http://trac.edgewall.com/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the python traceback found below.
TracGuide — The Trac User and Administration Guide
Python traceback Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 267, in process_request
self._do_save(req, attachment)
File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 335, in _do_save
attachment.insert(filename, upload.file, size)
File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 142, in insert
os.makedirs(self.path)
File "/usr/lib/python2.4/os.py", line 156, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/www/Yosemite/attachments/wiki'
comment:3 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Replying to wtolli:
Version: Trac 0.9.6
Please use the dedicated field to report Trac release.
Please also upgrade to the latest release of Trac, this one is quite old and no bug fix will be done for the 0.9.x series, except for security issues.
OSError: [Errno 13] Permission denied: '/var/www/Yosemite/attachments/wiki'
So this is an installation issue: Trac cannot store files to this attachment directory. Your web server (or tracd) should have R/W permissions to this directory. As it is likely that the Trac environment has not been created w/ the appropriate "user", you probably want to apply these permissions recursively on '/var/www/Yosemite/attachments' as well (so that the tickets dir is also fixed)
comment:4 by , 17 years ago
Keywords: | needinfo removed |
---|---|
Version: | → 0.9.6 |
Please specify:
(decreasing priority and severity as the bug description is missing and this is not a blocker issue anyway)