1 | The output of running email2trac --project=cnsehelp < msg.txt as my user (non-root) yieVlds the following output to syslog.<br><br>Nov 1 13:06:29 cnsetrac email2trac: Traceback (most recent call last): <br>Nov 1 13:06:29 cnsetrac email2trac: File "/usr/local/bin/email2trac", line 1060, in ? env = Environment(settings['project'], create=0) |
---|
2 | <br>Nov 1 13:06:29 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 147, in __init__ self.verify() <br>Nov 1 13:06:29 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 195, in verify fd = open( |
---|
3 | os.path.join(self.path, 'VERSION'), 'r') <br>Nov 1 13:06:29 cnsetrac email2trac: IOError: [Errno 13] Permission denied: '/var/www/trac/CNSEHelp/VERSION' <br><br>running the same command as root yields no error and the ticket is created. |
---|
4 | <br>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. |
---|
5 | <br><br>The output of ls -l /var/www/trac/CNSEHelp/VERSION is:<br>-rwxr-xr-x 1 apache trac 27 Oct 30 11:40 /var/www/trac/CNSEHelp/VERSION<br><br><br><div><span class="gmail_quote">On 11/1/07, <b class="gmail_sendername">email2trac |
---|
6 | </b> <<a href="mailto:email2trac@sara.nl">email2trac@sara.nl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">#32: permissions issue, email2trac config |
---|
7 | <br>-----------------------------+----------------------------------------------<br>Reporter: <a href="mailto:acgoss@gmail.com">acgoss@gmail.com</a> | Owner: bas<br> Type: defect | Status: assigned |
---|
8 | <br>Priority: major | Component: email2trac<br> Version: 0.10 | Resolution:<br>Keywords: |<br>-----------------------------+---------------------------------------------- |
---|
9 | <br>Changes (by bas):<br><br> * status: new => assigned<br><br>Comment:<br><br> You can access the TRAC project with a web browser?<br><br> You can also run email2trac on the commandline:<br> {{{<br> email2trac --project=CNSEHelp < |
---|
10 | msg.txt<br> }}}<br><br> what is the output of:<br> {{{<br> ls -l /var/www/trac/CNSEHelp/VERSION<br> }}}<br><br><br><br> In the most distribution the user id is not apache, but www-data or<br> nobody.<br><br>--<br>Ticket URL: < |
---|
11 | <a href="https://subtrac.rc.sara.nl/oss/email2trac/ticket/32#comment:1">https://subtrac.rc.sara.nl/oss/email2trac/ticket/32#comment:1</a>><br>email2trac <<a href="https://subtrac.sara.nl/oss/email2trac">https://subtrac.sara.nl/oss/email2trac |
---|
12 | </a>><br>Documentation server for email2trac</blockquote></div><br> |
---|