#2815 closed defect (worksforme)
creating attachment failed unique check
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | 0.9 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Here is a traceback (filenames changed to protect the innocents):
Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler dispatch_request(mpr.path_info, mpr, env) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 265, in process_request self._do_save(req, attachment) File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 333, in _do_save attachment.insert(filename, upload.file, size) File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 145, in insert filename)) File "/usr/lib/python2.3/site-packages/trac/util.py", line 171, in create_unique_file raise Exception('Failed to create unique name: ' + path) Exception: Failed to create unique name: /data/tracroot/symbian/attachments/wiki/SomeDir/SomeFile.100.sis
Attachments (0)
Change History (6)
comment:1 by , 19 years ago
comment:2 by , 18 years ago
I also got this error when trying to add a patch file as an attachment to the CakePHP trac (trac.cakephp.org).
follow-up: 5 comment:3 by , 18 years ago
I also just got this, appears it's set the permissions on the directroy wrong (for 219)
# ls -la /var/lib/trac/doctrine/attachments/ticket/ total 20 drwxr-xr-x 5 apache apache 4096 Nov 3 07:37 . drwxrwxr-x 3 apache doctrine 4096 Oct 29 00:33 .. drwxr-xr-x 2 apache apache 4096 Oct 29 16:16 146 drwxr-xr-x 2 apache apache 4096 Oct 29 00:33 207 drw-rw-rw- 2 apache apache 4096 Nov 3 07:37 219
comment:5 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Reformatting comment:3:
# ls -la /var/lib/trac/doctrine/attachments/ticket/ total 20 drwxr-xr-x 5 apache apache 4096 Nov 3 07:37 . drwxrwxr-x 3 apache doctrine 4096 Oct 29 00:33 .. drwxr-xr-x 2 apache apache 4096 Oct 29 16:16 146 drwxr-xr-x 2 apache apache 4096 Oct 29 00:33 207 drw-rw-rw- 2 apache apache 4096 Nov 3 07:37 219
Can you double-check that:
/data/tracroot/symbian/attachments/wiki/
does exist/data/tracroot/symbian/attachments/wiki/
is writable from the process that runs your Apache server