[rt-users] force a dashboard report right now?

Jo Rhett jrhett at netconsonance.com
Wed Feb 25 02:41:36 EST 2009


> 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 ;-)

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness





More information about the rt-users mailing list