Opened 9 years ago

Closed 9 years ago

#5173 closed defect (wontfix)

Permission denied?

Reported by: anonymous Owned by: Jeff Hammel
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 9 years ago by Jeff Hammel

Resolution: wontfix
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jeff Hammel.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.