The output of running email2trac --project=cnsehelp < msg.txt as my user (non-root) yieVlds the following output to syslog.
Nov 1 13:06:29 cnsetrac email2trac: Traceback (most recent call last):
Nov 1 13:06:29 cnsetrac email2trac: File "/usr/local/bin/email2trac", line 1060, in ? env = Environment(settings['project'], create=0)
Nov 1 13:06:29 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 147, in __init__ self.verify()
Nov 1 13:06:29 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 195, in verify fd = open(
os.path.join(self.path, 'VERSION'), 'r')
Nov 1 13:06:29 cnsetrac email2trac: IOError: [Errno 13] Permission denied: '/var/www/trac/CNSEHelp/VERSION'
running the same command as root yields no error and the ticket is created.
running the same command as apache (via sudo -u apache email2trac --project=cnsehelp < msg.txt) yields a ticket being created, but the attachment cannot be created, which appears to be due to permissions in the attachments/ticket/# subfolder.
The output of ls -l /var/www/trac/CNSEHelp/VERSION is:
-rwxr-xr-x 1 apache trac 27 Oct 30 11:40 /var/www/trac/CNSEHelp/VERSION
#32: permissions issue, email2trac config
-----------------------------+----------------------------------------------
Reporter: acgoss@gmail.com | Owner: bas
Type: defect | Status: assigned
Priority: major | Component: email2trac
Version: 0.10 | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Changes (by bas):
* status: new => assigned
Comment:
You can access the TRAC project with a web browser?
You can also run email2trac on the commandline:
{{{
email2trac --project=CNSEHelp < msg.txt
}}}
what is the output of:
{{{
ls -l /var/www/trac/CNSEHelp/VERSION
}}}
In the most distribution the user id is not apache, but www-data or
nobody.
--
Ticket URL: < https://subtrac.rc.sara.nl/oss/email2trac/ticket/32#comment:1>
email2trac <https://subtrac.sara.nl/oss/email2trac >
Documentation server for email2trac