Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#6485 closed defect (wontfix)

I can't upload the file in the trac

Reported by: dingliu@… Owned by: Christian Boos
Priority: highest Milestone:
Component: attachment Version:
Severity: major Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I can't upload the file in the trac this is Python Traceback

Traceback (most recent call last):
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\attachment.py", line 496, in _do_save
    attachment.insert(filename, upload.file, size)
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\attachment.py", line 183, in insert
    filename))
  File "E:\SUBVERSION\trac-0.1.1\python\Lib\site-packages\trac\util\__init__.py", line 112, in create_unique_file
    raise Exception('Failed to create unique name: ' + path)
Exception: Failed to create unique name: E:\SUBVERSION\trac-0.1.1\trac_repo\projects\prj0006\attachments\ticket\10\%E5%87%BA%E6%9D%A5%E9%AB%98%EF%BC%88%E5%8D%98%E4%BD%8D%E6%99%82%E9%96%93%EF%BC%89%E3%81%AE%E7%94%9F%E7%94%A3%E6%9E%9A%E6%95%B0%E5%A4%89%E3%81%AA%E7%94%BB%E9%9D%A2%EF%BC%88%E7%94%9F%E7%94%A3%E3%83%A9%E3%82%A4%E3%83%B3%EF%BC%89%E3%83%95%E3%83%AD%E3%82%A2%E3%83%BC.100.GIF

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 17 years ago

Component: generalattachment
Description: modified (diff)
Keywords: needinfo added
Milestone: 0.10.5
Owner: changed from Jonas Borgström to Christian Boos

<long file name>.100.GIF: that's happening when all the attempts to create an attachment have failed.

Can you please show us the content and permissions of that E:\SUBVERSION\trac-0.1.1\trac_repo\projects\prj0006\attachments\ticket\10 folder?

Also please mention in the Version field the release of Trac you're using (trac-0.1.1 is not exactly referring to an existing released version…)

comment:2 by anonymous, 17 years ago

nice and this is not a spam

comment:2 by anonymous, 17 years ago

Resolution: wontfix
Status: newclosed

comment:3 by itconsense@…, 17 years ago

I had the same error. It was a permission problem here. Adding write permissions for the apache group to the attachments directory and all its sub-directories! fixed the problem. I'm using Trac 0.11dev-r6811 with mod_wsgi on Python 2.4.3 and httpd 2.2.3

Modify Ticket

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