Missing run_email2trac

Bug #1022175 reported by Walter Li
This bug affects 3 people
Affects Status Importance Assigned to Milestone
email2trac (Ubuntu)

Bug Description

The package in precise does not include run_email2trac binary. This file is necessary for changing from the MTA user to the trac user.

Release: 12.04
Package: trac-email2trac_2.4.7-1

Expected behavior:
 1. Email trac@domain
 2. Trac creates new ticket or updates existing ticket

Actual behavior:
 Using run_email2trac:
   fatal: execvp /usr/bin/run_email2trac: No such file or directory
 Using email2trac:
   email2trac trac: trac error: [Errno 13] Permission denied: u'/var/trac/log/trac.log'

My Resolution:
 1. Download source from ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz
 2. Build/Install according to: https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation#Debianpackage

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in email2trac (Ubuntu):
status: New → Confirmed
Revision history for this message
Vario Fox (variofox) wrote :

I followed the instructions on
which are:
 wget ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz
 tar -xzvf email2trac.tar.gz
 cd email2trac-1.6.0/
 #Now we need to install required packages to build the .deb file
 aptitude install build-essential cdbs chrpath
 dpkg-buildpackage -B

#Read the output and if everything went ok the folder should have .deb file.
 cd ../
 dpkg -i email2trac_X.XX.XX-XX_amd64.deb

The resulting run_email2trac executable in the debian package was configured with the incorrect defaults:
prefix=/usr/local --- has to be /usr/
sysconfdir=$prefix/etc --- has to be /etc
MTA_USER=nobody --- has to be fetchmail

Of course, on ubuntu these values are different, so I hat to execute
 ./configure --with-mta_user=fetchmail --with-trac_user=www-data --prefix=/usr --sysconfdir=/etc

buildpackage executes a make clean (resetting the above config change), so it is not directly possible to build a correct debian package.

After executing configure as above, I compiled using "make" and copied the newly compiled run_email2trac to /usr/bin/run_email2trac
 cp run_email2trac /usr/bin/

This now works.

For more info, see also my attempts to use email2trac with an older version of ubuntu

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Without the run_email2trac binary, the package trac-email2trac is unusable. It should be considered broken.
I was able to build the run_email2trac binary as described above, but this is well beyond the abilities of many Ubuntu users.
Please fix!

Revision history for this message
Falko Trojahn (falko-5) wrote :

As stated here: https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracMta#Noteforpostfix
run_email2trac is not needed when using postfix.

Revision history for this message
Martin (debacle) wrote :

Please read /usr/share/doc/trac-email2trac/README
It's all explained there. Nothing is "broken", but
if you insist on the workflow using run_email2trac,
it is just not supported by the Debian/Ubuntu package.

Could someone please close this bug or declare it "wishlist", please?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.