Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#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 Emmanuel Blot, 17 years ago

Keywords: needinfo added
Priority: highnormal
Severity: blockermajor

Please specify:

  • The version of Trac you're using
  • Whether this issue occurs on your own Trac installation or on another server
  • The error message you got
  • Anything that is can be useful to understand the issue

(decreasing priority and severity as the bug description is missing and this is not a blocker issue anyway)

comment:2 by wtolli, 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'

in reply to:  2 comment:3 by Emmanuel Blot, 17 years ago

Resolution: worksforme
Status: newclosed

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 Emmanuel Blot, 17 years ago

Keywords: needinfo removed
Version: 0.9.6

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.