Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#4626 closed defect (worksforme)

Error when attach file to Trac

Reported by: dn.hien@… Owned by: Jonas Borgström
Priority: high Milestone:
Component: general Version:
Severity: major Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

When i try attach a image file to Trac, although image size is available. So i get a message error from Trac to inform that Trac detected an internal error. Detail message such as: Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 494, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 180, in insert
    os.makedirs(self.path)
  File "/usr/lib/python2.4/os.py", line 159, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/data/cad/ssm/trac/ssm/attachments/wiki/prj_embedded_system_1106_doc_hien_MP4_Video_Compression_Intro'

Attachments (0)

Change History (4)

comment:1 by Emmanuel Blot, 18 years ago

Description: modified (diff)
Keywords: needinfo added
Priority: highesthigh
Severity: blockermajor

Please be fair with the priority and severity fields.

Which Trac version are you using?

It looks like you have some permission issues: is the /data/cad/ssm/trac/ssm/attachments/wiki directory writeable for the Trac server?

comment:2 by Matthew Good, 18 years ago

Resolution: worksforme
Status: newclosed

This is not a bug in Trac. As the error says the Trac process does not have permission to the attachments directory necessary to save the attachment. You should make sure that the user Trac runs under has full write access to the project and its contents. Also see TracWithSeLinux if you have SELinux installed.

If you need more help setting up permissions please contact the MailingList or IrcChannel.

comment:3 by p.montini@…, 18 years ago

Resolution: worksforme
Status: closedreopened

After make update for trac 0.10 this error started. Please help me!

in reply to:  3 comment:4 by Emmanuel Blot, 18 years ago

Resolution: worksforme
Status: reopenedclosed

Replying to p.montini@ymf.com.br:

After make update for trac 0.10 this error started. Please help me!

Without providing more information, I don't think anyone can help. "It does not work" is usually not enough to understand an issue. Double check the permissions on the attachment directories.

As mgood said, this kind of issue is not related to Trac, but to your installation / setup. Please ask for support on the MailingList.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.