[rt-users] force a dashboard report right now?
Shawn M Moore
sartak at bestpractical.com
Wed Feb 25 04:28:57 EST 2009
On Tue, Feb 24, 2009 at 11:41:36PM -0800, Jo Rhett wrote:
> >On Tue, Feb 24, 2009 at 11:13:08PM -0800, Jo Rhett wrote:
> >>I'm trying to debug why dashboard mail isn't going out.
> >>
> >>I had some errors in rt.log related to graphviz until I found the
> >>undocumented disableGraphViz set command and used it. But now there
> >>is no error ... just nothing. No attempt to send mail. Funny enough
> >>-- if I delete a dashboard I do get e-mail saying that the
> >>dashboard
> >>is no longer there. But never the dashboard mail.
>
> On Feb 24, 2009, at 11:33 PM, Shawn M Moore wrote:
> >rt-email-dashboards has an --all option to ignore subscription date/
> >time
> >constraints. Invoke it with --help to get more information. The --
> >debug
> >and --verbose options will be helpful for you.
> >
> >This isn't the first time I've heard of this failure mode so I'd be
> >happy to work with you to track it down. I wasn't able to reproduce it
> >myself.
>
>
> doh! Sorry, I misread the --all syntax in help to mean something
> different. Anyway, I did figure it out:
>
> [Wed Feb 25 06:00:03 2009] [error]: Caught exception: mkdir /var/run/
> rt38/mason_data/obj/3583890391: Permission denied at /usr/local/lib/
> perl5/site_perl/5.8.8/HTML/Mason/Compiler/ToObject.pm line 107 (/usr/
> local/sbin/rt-email-dashboards:119)
>
> The problem was that the user I was running the dashboard under has no
> ability to write to this directory. The directory is created as
> www:www 640.
>
> I know you guys just LOVE to run things as root, but I really prefer
> to run with the most limited rights. And I hate running these
> scripts as the web server too, but that's all that seems to work given
> the rights structure. When I have time I'll be proposing some
> alternatives to limit the necessary rights for RT ;-)
Just for your information, the email-dashboard script needs access to
run Mason components to be able to generate the dashboards. The script
renders the "show dashboard" page and emails that to users.
The "show dashboard" page, originally "preview dashboard", was actually
created only to render a dashboard for email, but then we realized that
it was pretty handy on its own.
Shawn
More information about the rt-users
mailing list