Opened 5 years ago

Closed 5 years ago

#5173 closed defect (wontfix)

Permission denied?

Reported by: anonymous Owned by: k0s
Priority: normal Component: MailToTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


I'm setting it up using Fetchmail by adding in:

mda "/usr/bin/mail2trac -p /srv/trac/project"

And I get the following error:

Traceback (most recent call last):
  File "/usr/bin/mail2trac", line 7, in ?
  File "/usr/lib/python2.4/site-packages/mail2trac-0.0-py2.4.egg/mail2trac/", line 83, in main
  File "/usr/lib/python2.4/site-packages/mail2trac-0.0-py2.4.egg/mail2trac/", line 30, in mail2project
    env = open_environment(project)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/", line 588, in open_environment
    env = Environment(env_path)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/", line 189, in __init__
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/", line 384, in setup_log
  File "/usr/lib/python2.4/site-packages/Trac-0.11.3-py2.4.egg/trac/", line 27, in logger_factory
    hdlr = logging.FileHandler(logfile)
  File "/usr/lib/python2.4/logging/", line 757, in __init__
    stream = open(filename, mode)
IOError: [Errno 13] Permission denied: u'/srv/trac/rapaport/log/trac.log'
fetchmail: MDA returned nonzero status 1
 not flushed

It's set up as the user apache (I also tried root) but neither works. Any help?

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by k0s

  • Resolution set to wontfix
  • Status changed from new to closed

this is a permissions issue. whoever the script runs as must have write access to the trac environment and is out of scope of this plugin

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.