Rt-email-dashboards CRON strange error Debian RT 4.0.7

Hi everyone,

trying to get cron working (as root at the moment) - interestingly if i
reboot the server i get it to work once…

Not really sure how to troubleshoot this one as

rt-email-dashboards --dryrun --all

works fine

as does email for RT normally…

Now I have a couple of other issue which could be unrelated (1) admins get
copies of their own admincc messages (2) help-comment@domain.com is ignored
and email comments are taken as correspondance

[Mon May 13 13:00:08 2013] [error]: Can’t locate object method
“err_headers_out” via package “RT::Dashboard::FakeRequest” at
/usr/share/request-tracker4/lib/RT/Interface/Web.pm line 891, line
1000. (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209)
[Mon May 13 13:00:08 2013] [error]: Caught exception: An internal RT error
has occurred. Your administrator can find more details in RT’s log files.
(/usr/share/request-tracker4/lib/RT/Dashboard/Mailer.pm:117)

the problem seems to be above this as command line produces same results
but…

crontab

0 0 * * * /usr/sbin/rt-email-digest -m daily
0 0 * * 0 /usr/sbin/rt-email-digest -m weekly
0 * * * * /usr/sbin/rt-email-dashboards
0 3 * * * /usr/bin/rt-crontool --search RT::Search::FromSQL \ –search-arg
Created < ‘2 days ago’ AND Created > ‘3 days ago’" \ –action
RT::Action::RecordComment --template ‘Unowned tickets’
0 * * * * /usr/bin/rt-crontool \ –search RT::Search::ActiveTicketsInQueue
–search-arg general \ –action RT::Action::EscalatePriority

David Lane
Director
GoodChoice.IT Ltd

We reward successful referrals

W: www.goodchoice.it E: dave@goodchoice.it T: 020 8099 5540

David Lane
Director
GoodChoice.IT Ltd

We reward successful referrals

W: www.goodchoice.it E: dave@goodchoice.it T: 020 8099 5540

Now I have a couple of other issue which could be unrelated (1) admins
get copies of their own admincc messages

There is a $NotifyActor site-wide config option and a per-user preference.

(2) help-comment@domain.com
mailto:help-comment@domain.com is ignored and email comments are taken
as correspondance

You didn’t show your /etc/aliases file, but I expect you have
help-comment to run rt-mailgate --action correspond instead of --action
comment.

[Mon May 13 13:00:08 2013] [error]: Can’t locate object method
“err_headers_out” via package “RT::Dashboard::FakeRequest” at
/usr/share/request-tracker4/lib/RT/Interface/Web.pm line 891,
line 1000. (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209)
[Mon May 13 13:00:08 2013] [error]: Caught exception: An internal RT
error has occurred. Your administrator can find more details in RT’s
log files. (/usr/share/request-tracker4/lib/RT/Dashboard/Mailer.pm:117)

Upgrade to RT 4.0.9. This was first fixed in that version.