Edgewall Software
Modify

Ticket #4020 (closed defect: worksforme)

Opened 5 years ago

Last modified 5 years ago

probelm occured when tried to upload attachment to a new ticket form.

Reported by: nikola.chochkov@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description (last modified by mgood) (diff)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 356, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224, 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 493, 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 156, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.4/os.py", line 159, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/trac/EficusAgent/attachments/ticket'

Attachments

Change History

comment:1 Changed 5 years ago by mgood

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from new to closed

The Trac process is unable to create a new folder due to lack of filesystem permissions. You should make sure your projects are all owned by the same user the web server runs as (often "www-data" or "apache" or "nobody" depending on the server and your distribution)

E.g:

$ chown -R www-data /var/trac

Also, check if SElinux is enabled. If so you'll need to ensure that it is configure to allow the web server process to write to the Trac projects.

If you need more help, please use the MailingList for support.

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.