Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#2815 closed defect (worksforme)

creating attachment failed unique check

Reported by: ssalmine@… 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 Emmanuel Blot, 18 years ago

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

comment:2 by anonymous, 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).

comment:3 by pookey@…, 17 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:4 by Christian Boos, 17 years ago

#4584 closed as duplicate.

in reply to:  3 comment:5 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

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

comment:6 by sid, 17 years ago

#5142 was marked as duplicate of this ticket.

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.