Edgewall Software
Modify

Ticket #2815 (closed defect: worksforme)

Opened 6 years ago

Last modified 4 years ago

creating attachment failed unique check

Reported by: ssalmine@… Owned by: jonas
Priority: normal Milestone:
Component: wiki system Version: 0.9
Severity: normal Keywords:
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 6 years ago by eblot

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 Changed 5 years ago by anonymous

I also got this error when trying to add a patch file as an attachment to the CakePHP trac (trac.cakephp.org).

comment:3 follow-up: Changed 5 years ago by pookey@…

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 Changed 5 years ago by cboos

#4584 closed as duplicate.

comment:5 in reply to: ↑ 3 Changed 5 years ago by cboos

  • Resolution set to worksforme
  • Status changed from new to 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

comment:6 Changed 4 years ago by sid

#5142 was marked as duplicate of this ticket.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.