Opened 14 years ago

Last modified 14 years ago

#181 closed setup

python error when email2trac gets an email with any kind of attachment — at Version 5

Reported by: smcbutler Owned by: bas
Priority: major Milestone:
Component: email2trac Version:
Keywords: Cc: smcbutler@…

Description (last modified by bas)

when we send an email to the email2trac address we get the following python error.

i've looked through the archives and couldn't find anything similar (surprisingly)

help! :)

<support@…>: Command died with status 1:

"PYTHON_EGG_CACHE=/var/trac; export PYTHON_EGG_CACHE; /usr/local/bin/email2trac --ticket_prefix=vsc_trac". Command output: TD: saving email to /tmp/tmpGxSGuz.email2trac

Reporting-MTA: dns; methodics-da.com X-Postfix-Queue-ID: 64A8E20B9C X-Postfix-Sender: rfc822; simon@… Arrival-Date: Sat, 20 Feb 2010 19:45:02 -0800 (PST)

Final-Recipient: rfc822; support@… Original-Recipient: rfc822;support@… Action: failed Status: 5.3.0 Diagnostic-Code: x-unix; TD: saving email to /tmp/tmpGxSGuz.email2trac

Change History (5)

comment:1 Changed 14 years ago by smcbutler

i should have included my system information

email2trac-1.1.0
Trac:	0.11.7stable-r0
Python:	2.6.4 (r264:75706, Dec 7 2009, 18:59:58) [GCC 4.4.1]
setuptools:	0.6c9
SQLite:	3.6.16
pysqlite:	2.4.1
Genshi:	0.5.1
mod_python:	3.3.1
Pygments:	1.2.2
jQuery:	1.2.6

on ubuntu 9.10

comment:2 Changed 14 years ago by smcbutler

last bit of information (sorry for not including all this upfront..).

email2trac works great when the originating email doesn't have an attachment. with an attachment the ticket gets created ok, it just seems to be the notification email that causes the error.

in my email2trac.conf i have the python_egg_cache set

python_egg_cache: /var/trac

this dir is owned by www-data:www-data has permissions 777

the notification email got saved to /tmp

-rwxrwxrwx 1 nobody nogroup   2243 Feb 21 10:19 tmpdba_YW.email2trac
-rw-r--r-- 1 nobody nogroup    208 Feb 21 10:19 config.3

not sure if this helps?

comment:3 Changed 14 years ago by bas

  • Description modified (diff)
  • Status changed from new to assigned
  • Type changed from defect to setup

As you noticed when an error is detected a file is save in /tmp. Can you try a dry-run:

  • email2trac -n < tmpdba_YW.email2trac

If there is no error, try:

  • email2trac < tmpdba_YW.email2trac

Is the ticket is created with the attachment attached. Then it is a permission problem with the attachment directory

comment:4 Changed 14 years ago by smcbutler

hi there, i ran this:

core:~> email2trac -n < /tmp/tmpaMuIIo.email2trac DRY_RUN: no attachments saved DRY_RUN: self.notify(tkt, True) simon@…

core:~> email2trac < /tmp/tmpaMuIIo.email2trac TD: saving email to /tmp/tmpaNRTJk.email2trac

the ticket was created but no attachment (or notification email)

comment:5 Changed 14 years ago by bas

  • Description modified (diff)

Which userid did you use? It must have write permission for the trac attachments, mostly root. Is there something in the syslog file?

can you set the debug level in email2trac.conf:

debug: 99

rerurn the tests

Note: See TracTickets for help on using tickets.