Opened 19 years ago
Closed 19 years ago
#4626 closed defect (worksforme)
Error when attach file to Trac
| Reported by: | 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 )
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 , 19 years ago
| Description: | modified (diff) |
|---|---|
| Keywords: | needinfo added |
| Priority: | highest → high |
| Severity: | blocker → major |
comment:2 by , 19 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
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.
follow-up: 4 comment:3 by , 19 years ago
| Resolution: | worksforme |
|---|---|
| Status: | closed → reopened |
After make update for trac 0.10 this error started. Please help me!
comment:4 by , 19 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | reopened → closed |
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.



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/wikidirectory writeable for the Trac server?