[rt-users] Perl broken?

Len Jaffe lenjaffe at jaffesystems.com
Tue May 20 13:12:23 EDT 2014


Right. So as some point, as close to the place that tries to include that
Rule.pm file, I'd add something similar to::

$RT::Logger->info ( Data::Dumper->Dump([\@INC, \%INC], [qw/inc_path
inc_hash]));


As far as I know, we're still trying to figure out why the existing include
paths are not finding your expected version of DateTime::*

Len.





On Tue, May 20, 2014 at 11:55 AM, Sears, Mark <Mark.Sears at gdit.com> wrote:

>  It is actually Rule.pm (sorry for the lower case).  I’m not sure what
> you mean by “interject some logging code into the logic flow”
>
> I have root access to the systems RT runs on via putty ssh.
>
>
>
>
>
> Thanks,
>
> *Mark Sears – CISSP-M.S. IA*
> *Principal Information Security Analyst*
> *[image: cid:image001.png at 01CE728F.61780B30]*
> 12249 Science Drive Suite 160
> Orlando, FL 32826
> office: (407) 541-4062
> fax: (407) 380-3823
> *mark.sears at gdit.com <mark.sears at gdit.com>*
> www.gdit.com
>
>
>
> *From:* lenjaffe at gmail.com [mailto:lenjaffe at gmail.com] *On Behalf Of *Len
> Jaffe
> *Sent:* Tuesday, May 20, 2014 10:56 AM
>
> *To:* Sears, Mark
> *Cc:* rt-users at lists.bestpractical.com
> *Subject:* Re: [rt-users] Perl broken?
>
>
>
> Looks reasonable on its face.
>
> If it really is 'rule.pm' instead of 'Rule.pm' that that's probably one
> of your problems, as the file names are case sensitive on Unix.
>
>
>
> Do you have a way to interject some logging code into the logic flow?
>
> Because it's important to know the state of the interpreter... @INC, %INC,
> etc.  If we insert a couple of calls that dump some of the variables to the
> RT log, it could be helpful.
>
>
>
> Len.
>
>
>
> On Tue, May 20, 2014 at 8:51 AM, Sears, Mark <Mark.Sears at gdit.com> wrote:
>
> Ok –r—r—r—is the permission for the rule.pm file and root owns it and the
> entire directory
>
> drwxr-xr-x is the permission of the top level perl directory and owner by
> root.
>
> Are these permissions correct?
>
>
>
> Thanks,
>
> *Mark Sears – CISSP-M.S. IA*
> *Principal Information Security Analyst*
> *[image: cid:image001.png at 01CE728F.61780B30]*
> 12249 Science Drive Suite 160
> Orlando, FL 32826
> office: (407) 541-4062
> fax: (407) 380-3823
> *mark.sears at gdit.com <mark.sears at gdit.com>*
> www.gdit.com
>
>
>
> *From:* lenjaffe at gmail.com [mailto:lenjaffe at gmail.com] *On Behalf Of *Len
> Jaffe
> *Sent:* Monday, May 19, 2014 4:12 PM
>
>
> *To:* Sears, Mark
> *Cc:* rt-users at lists.bestpractical.com
> *Subject:* Re: [rt-users] Perl broken?
>
>
>
> Perl has an @INC array which lists all of the directories that Perl will
> look in when searching for modules.
>
> It also has %INC which is a hash of modules, and the file paths they were
> loaded from.
>
>
>
> But Perl listed it's include path for you. You included it in a previous
> email.  look through that list and see
>
> if any of the entries are the prefix of either of the two place you found
> OlsonDB/Rule.pm.
>
>
>
> But also listen to Kevin, restart apache/fcgi and check the ownership and
> file permissions of
>
> /usr/lib/perl5/site_perl/5.8.8/DateTime/TimeZone/OlsonDB/Rule.pm and it's
> directory components.
>
>
>
> If it's on the path, then it will be file permissions, ownership etc.
>  Easy enough to rectify.
>
> Otherwise you have to question why it installed in a place in which Perl
> isn't looking.  But /usr/lib/perl5 is the default place that perl looks.
>
>
>
> Len.
>
>
>
>
>
>
>
>
>
> On Mon, May 19, 2014 at 3:30 PM, Sears, Mark <Mark.Sears at gdit.com> wrote:
>
> Not sure what you mean by see if that's in the @INC array
>
>
>
> Thanks,
>
> *Mark Sears – CISSP-M.S. IA*
> *Principal Information Security Analyst*
> *[image: cid:image001.png at 01CE728F.61780B30]*
> 12249 Science Drive Suite 160
> Orlando, FL 32826
> office: (407) 541-4062
> fax: (407) 380-3823
> *mark.sears at gdit.com <mark.sears at gdit.com>*
> www.gdit.com
>
>
>
> *From:* lenjaffe at gmail.com [mailto:lenjaffe at gmail.com] *On Behalf Of *Len
> Jaffe
> *Sent:* Monday, May 19, 2014 3:09 PM
>
>
> *To:* Sears, Mark
> *Cc:* rt-users at lists.bestpractical.com
> *Subject:* Re: [rt-users] Perl broken?
>
>
>
> Now use locate or find to figure out where OlsonDB/Rule.pm lives, and see
> if that's in the @INC array.
>
>
>
> On Mon, May 19, 2014 at 2:24 PM, Sears, Mark <Mark.Sears at gdit.com> wrote:
>
> Here is the full error:
>
>
>
> Error during compilation of /opt/rt3/share/html/Elements/SelectTimezone:
> Can't locate DateTime/TimeZone/OlsonDB/Rule.pm in @INC (@INC contains:
> /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .
> /etc/httpd) at /usr/lib/perl5/site_perl/5.8.8/DateTime/TimeZone/OlsonDB.pm
> line 8, line 1662. BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8.8/DateTime/TimeZone/OlsonDB.pm line 8, line
> 1662. Compilation failed in require at
> /usr/lib/perl5/site_perl/5.8.8/DateTime/TimeZone/Africa/Abidjan.pm line 16,
> line 1662. BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8.8/DateTime/TimeZone/Africa/Abidjan.pm line 16,
> line 1662. Compilation failed in require at (eval 2195) line 3, line 1662.
> Stack: [/usr/lib/perl5/site_perl/5.8.8/DateTime/TimeZone.pm:88]
> [/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/DateTime.pm:1958]
> [/opt/rt3/share/html/Elements/SelectTimezone:60]
> [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:817]
> [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:440]
> [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1127]
> [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1060]
> [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1239]
> [/opt/rt3/share/html/User/Prefs.html:83]
> [/opt/rt3/share/html/Widgets/TitleBox:51]
> [/opt/rt3/share/html/User/Prefs.html:86]
> [/opt/rt3/bin/../lib/RT/Interface/Web.pm:320]
> [/opt/rt3/bin/../lib/RT/Interface/Web.pm:224]
> [/opt/rt3/share/html/autohandler:53]
>
>
>
> Thanks,
>
> *Mark Sears – CISSP-M.S. IA*
> *Principal Information Security Analyst*
> *[image: cid:image001.png at 01CE728F.61780B30]*
>
>
> 12249 Science Drive Suite 160
> Orlando, FL 32826
> office: (407) 541-4062
> fax: (407) 380-3823
>
> *mark.sears at gdit.com <mark.sears at gdit.com>*
> www.gdit.com
>
>
>
> *From:* lenjaffe at gmail.com [mailto:lenjaffe at gmail.com] *On Behalf Of *Len
> Jaffe
> *Sent:* Monday, May 19, 2014 2:17 PM
> *To:* Sears, Mark
> *Cc:* rt-users at lists.bestpractical.com
>
>
> *Subject:* Re: [rt-users] Perl broken?
>
>
>
> You left out the best bits. The bits where Perl told you what the INC
> array looks like, and probably where in the code the call was being made.
>  So you could use that info to determine where on your file system the
> DateTime modules live, that the OlsonRule files are there, and why they're
> not on Perl's @INC path, because that is what the eror message is saying.
>
>
>
> Len.
>
>
>
> On Mon, May 19, 2014 at 1:45 PM, Sears, Mark <Mark.Sears at gdit.com> wrote:
>
> Sorry I am running V 3.8.7...and I realize it is not officially supported.
>  Thought I would see if anyone had run into this error before.  I did, as
> you suggested already, and installed the DateTime::TimeZone from cpan but
> still get the error.
>
>
> Thanks,
> Mark Sears - CISSP-M.S. IA
> Principal Information Security Analyst
>
> 12249 Science Drive Suite 160
> Orlando, FL 32826
> office: (407) 541-4062
> fax: (407) 380-3823
> mark.sears at gdit.com
> www.gdit.com
>
>
> -----Original Message-----
> From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On
> Behalf Of Kevin Falcone
> Sent: Monday, May 19, 2014 1:40 PM
> To: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Perl broken?
>
> On Mon, May 19, 2014 at 01:07:41PM +0000, Sears, Mark wrote:
> >    I am receiving the following error when I go into Preferences>About
> me:
> >    Error during compilation of
> /opt/rt3/share/html/Elements/SelectTimezone:Can't locate
> >    DateTime/TimeZone/OlsonDB/Rule.pm in...
> >
> >    Also mentions issue with TimeZone::Africa::Abidjan.
> >
> >    I have run fix deps; test deps; rt-test-deps script and from cpan>
> > installed TimeZone module
>
> You forgot to mention your RT version, but since you have /opt/rt3 in your
> error patch, I'll mention that no release of RT3 is currently supported.
>
> RT can optionally use DateTime::TimeZone if installed (it's not a required
> dependency of RT) but something must be wrong in your older version of RT.
>  You likely need to install DateTime::TimeZone from cpan
>
> -kevin
> --
> RT Training - Dallas May 20-21
> http://bestpractical.com/training
>
>
>
>
>
> --
>
> lenjaffe at jaffesystems.com   614-404-4214    @lenjaffe
>
> Information Technology Smoke Jumper, Host of Columbus Code Jam<http://www.meetup.com/techlifecolumbus/>
>
> www.lenjaffe.com     http://www.theycomewithcheese.com
>
> Advent Planet <http://www.lenjaffe.com/AdventPlanet/> - An Aggregation of
> Online Advent Calendars.
>
>
>
>
>
>
>
> --
>
> lenjaffe at jaffesystems.com   614-404-4214    @lenjaffe
>
> Information Technology Smoke Jumper, Host of Columbus Code Jam<http://www.meetup.com/techlifecolumbus/>
>
> www.lenjaffe.com     http://www.theycomewithcheese.com
>
> Advent Planet <http://www.lenjaffe.com/AdventPlanet/> - An Aggregation of
> Online Advent Calendars.
>
>
>
>
>
>
>
> --
>
> lenjaffe at jaffesystems.com   614-404-4214    @lenjaffe
>
> Information Technology Smoke Jumper, Host of Columbus Code Jam<http://www.meetup.com/techlifecolumbus/>
>
> www.lenjaffe.com     http://www.theycomewithcheese.com
>
> Advent Planet <http://www.lenjaffe.com/AdventPlanet/> - An Aggregation of
> Online Advent Calendars.
>
>
>
>
>
>
>
> --
>
> lenjaffe at jaffesystems.com   614-404-4214    @lenjaffe
>
> Information Technology Smoke Jumper, Host of Columbus Code Jam<http://www.meetup.com/techlifecolumbus/>
>
> www.lenjaffe.com     http://www.theycomewithcheese.com
>
> Advent Planet <http://www.lenjaffe.com/AdventPlanet/> - An Aggregation of
> Online Advent Calendars.
>
>
>



-- 
lenjaffe at jaffesystems.com   614-404-4214    @lenjaffe
Information Technology Smoke Jumper, Host of Columbus Code
Jam<http://www.meetup.com/techlifecolumbus/>
www.lenjaffe.com     http://www.theycomewithcheese.com
Advent Planet <http://www.lenjaffe.com/AdventPlanet/> - An Aggregation of
Online Advent Calendars.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140520/99cd11dc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1262 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140520/99cd11dc/attachment.png>


More information about the rt-users mailing list