Ticket #32: part0001.html

File part0001.html, 3.4 KB (added by Adam Goss, 15 years ago)

Added by email2trac

Line 
1The output of running email2trac --project=cnsehelp &lt; msg.txt as my user (non-root) yieVlds the following output to syslog.<br><br>Nov&nbsp; 1 13:06:29 cnsetrac email2trac: Traceback (most recent call last): <br>Nov&nbsp; 1 13:06:29 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/local/bin/email2trac&quot;, line 1060, in ?&nbsp;&nbsp;&nbsp;&nbsp; env = Environment(settings[&#39;project&#39;], create=0)
2<br>Nov&nbsp; 1 13:06:29 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/lib/python2.4/site-packages/trac/env.py&quot;, line 147, in __init__&nbsp;&nbsp;&nbsp;&nbsp; self.verify() <br>Nov&nbsp; 1 13:06:29 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/lib/python2.4/site-packages/trac/env.py&quot;, line 195, in verify&nbsp;&nbsp;&nbsp;&nbsp; fd = open(
3os.path.join(self.path, &#39;VERSION&#39;), &#39;r&#39;) <br>Nov&nbsp; 1 13:06:29 cnsetrac email2trac: IOError: [Errno 13] Permission denied: &#39;/var/www/trac/CNSEHelp/VERSION&#39; <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 &lt; 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> &lt;<a href="mailto:email2trac@sara.nl">email2trac@sara.nl</a>&gt; 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:&nbsp;&nbsp;<a href="mailto:acgoss@gmail.com">acgoss@gmail.com</a>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Owner:&nbsp;&nbsp;bas<br>&nbsp;&nbsp;&nbsp;&nbsp;Type:&nbsp;&nbsp;defect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status:&nbsp;&nbsp;assigned
8<br>Priority:&nbsp;&nbsp;major&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;Component:&nbsp;&nbsp;email2trac<br> Version:&nbsp;&nbsp;0.10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp; Resolution:<br>Keywords:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br>-----------------------------+----------------------------------------------
9<br>Changes (by bas):<br><br>&nbsp;&nbsp;* status:&nbsp;&nbsp;new =&gt; 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 &lt; 
10msg.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: &lt;
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>&gt;<br>email2trac &lt;<a href="https://subtrac.sara.nl/oss/email2trac">https://subtrac.sara.nl/oss/email2trac
12</a>&gt;<br>Documentation server for email2trac</blockquote></div><br>