Opened 13 years ago

Closed 13 years ago

#256 closed setup (fixed)

to env or not to env .. that is the question..

Reported by: edward.b.matheson@… Owned by: bas
Priority: major Milestone: New email2trac release 2.4.0
Component: email2trac Version: 2.1.0
Keywords: Cc:


So I am getting this in the output logs

2011-07-28 13:52:54,438 email2trac atol: Loading environment /var/trac/atol 2011-07-28 13:52:54,577 email2trac atol: Trac project does not exists: /var/trac/atol

  • email2trac.conf
    parentdir: /var/trac
    project: /var/trac/atol
    debug: 1
    log_type: file
    log_level: DEBUG
    log_file: /tmp/email2trac.log
    umask: 022
    spam_level: 5
    reply_all : 0
    mailto_link: 0
    umask: 022
    email_header: 0
    trac_version: 0.12
    # enable_syslog : 1
    alternate_notify_template :
    alternate_notify_template_update :
    drop_spam : 0
    verbatim_format: 1
    strip_signature: 1
    email_quote: >
    strip_quotes: 0
    ignore_trac_user_settings: 0
    black_list: MAILER-DAEMON@
    drop_alternative_html_version: 1
    ticket_update: 1
    strip_signature: 1
    html2text_cmd: /usr/bin/html2text -nobs
    trac_version: 0.12
    d318support_component : Branch_Support
    d318support_ttd : D318-support
    atolsupport_component : ATOLNet
    atolsupport_ttd : atol-support 
  • aliases
    trac: "| /usr/local/bin/email2trac --project=atol"
    d318-support: "| /usr/local/bin/email2trac --project=atol --ticket_prefix=d318support"
    atol-support: "| /usr/local/bin/email2trac --project=atol --ticket_prefix=atolsupport"
  • using trac .0.12.2
  • I can't get any of the aliases working.. help?

Attachments (0)

Change History (5)

comment:1 Changed 13 years ago by bas

  • Status changed from new to assigned
  • Type changed from defect to setup

Maybe the problem lies in 2 value for:

  • parentdir and project settings in the default section. Can you unset the project setting? and test again.

The command line utility email2trac works as expected. Did you test it:

  • /usr/local/bin/email2trac --project=atol --ticket_prefix=d318support < msg.txt

msg.txt is included in the source package.

comment:2 Changed 13 years ago by edward.b.matheson@…

Finally found it .. again .. size of /var/log/{project}/log/trac.log.  I did
this by doing:

 * Created an alias that was /usr/local/bin/test_email2trac which was a
script that did this:
#! /bin/sh

id >> /tmp/test_wtf.log
cd /tmp
cat - | strace -o email2trac.strace  /usr/local/bin/email2trac


and found in the strace logs that it was blowing up right when it tried to
open the Trac egg .. I've put in place a log rotate in /etc/logrotate.d
/var/trac/atol/log/trac.log {
    rotate 10
    size 10M

Since the Environment call isn't throwing a useful error for this .. I am
gonna make a ticket for it.  Not sure where it should throw the error .. but
it needs to be thrown.

On Jul 29, 2011, at 10:40 AM, email2trac wrote:

comment:3 Changed 13 years ago by bas

Thanks for the report, The error message comes from email2trac, maybe i can add the original error message and i hint that the size of the trac.log file is too large:

            env = Environment(settings['project'], create=0)
        except IOError, detail:
            logger.error("Trac project does not exists: %s" %settings['project'])
            + logger.error('trac error : %s' %detail)

comment:4 Changed 13 years ago by bas

(In [534]) log trac error if something goes wrong with opening the project environment, see #256

comment:5 Changed 13 years ago by bas

  • Milestone set to New email2trac release 2.X.X
  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Change Properties
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.