RTIR installation problems

Greetings,

I am trying to setup RTIR for the first time and am running into problems.
RT 4.0.19 seems to work until I add Set(@Plugins, ‘RT::IR’); to the
RT_SiteConfig.pm file. After restarting the web server I’m getting the
following generic error:

An internal RT error has occurred. Your administrator can find more details
in RT’s log files.

I can’t find any valuable error logs. I’ve enabled logging in the Apache
httpd.conf, but nothing is output to the file. Does anyone have any
pointers?

Much appreciated,
Brian

Brian

Not an expert but here of some of the things I learned recently on my
RTIR install that might help.

using mod_perl? RTIR needs at least two modules not required by RT.
Hook::LexWrap and Parse::BooleanLogic

setting the LogLevel to debug in httpd.conf or your virtual host
definition may help.
additionally in the RT_SiteConfig.pm you can
Set($LogToFile, ‘debug’);

if that doesn’t help you probably need to post a little more about
your setup: OS, virtualhost definition, complete RT_SiteConfig.pm,
installation procedure come to mind.On Tue, Apr 1, 2014 at 8:23 PM, Brian Mathias brian.mathias@gmail.com wrote:

Greetings,

I am trying to setup RTIR for the first time and am running into problems.
RT 4.0.19 seems to work until I add Set(@Plugins, ‘RT::IR’); to the
RT_SiteConfig.pm file. After restarting the web server I’m getting the
following generic error:

An internal RT error has occurred. Your administrator can find more details
in RT’s log files.

I can’t find any valuable error logs. I’ve enabled logging in the Apache
httpd.conf, but nothing is output to the file. Does anyone have any
pointers?

Much appreciated,
Brian

Brian


RT Training - Dallas May 20-21
Training — Best Practical Solutions

using mod_perl? RTIR needs at least two modules not required by RT.
Hook::LexWrap and Parse::BooleanLogic

RTIR should prompt you to install these modules during
perl Makefile.PL
if you don’t already have them.

setting the LogLevel to debug in httpd.conf or your virtual host
definition may help.
additionally in the RT_SiteConfig.pm you can
Set($LogToFile, ‘debug’);

if that doesn’t help you probably need to post a little more about
your setup: OS, virtualhost definition, complete RT_SiteConfig.pm,
installation procedure come to mind.

These are exactly what I’d have asked the original poster too, we’ll
need logs to figure out what’s going on and to help.

-kevin> On Tue, Apr 1, 2014 at 8:23 PM, Brian Mathias brian.mathias@gmail.com wrote:

Greetings,

I am trying to setup RTIR for the first time and am running into problems.
RT 4.0.19 seems to work until I add Set(@Plugins, ‘RT::IR’); to the
RT_SiteConfig.pm file. After restarting the web server I’m getting the
following generic error:

An internal RT error has occurred. Your administrator can find more details
in RT’s log files.

I can’t find any valuable error logs. I’ve enabled logging in the Apache
httpd.conf, but nothing is output to the file. Does anyone have any
pointers?

Thanks for willingness to help, guys. Sorry for the long email…

using mod_perl? RTIR needs at least two modules not required by RT.
Hook::LexWrap and Parse::BooleanLogic

I am running mod_perl and have those modules installed.

setting the LogLevel to debug in httpd.conf or your virtual host
definition may help.
additionally in the RT_SiteConfig.pm you can
Set($LogToFile, ‘debug’);

I have both of these set and I’m still not seeing logs.

if that doesn’t help you probably need to post a little more about

your setup: OS, virtualhost definition, complete RT_SiteConfig.pm,
installation procedure come to mind.

I’m running RHEL 6.5, with apache 2.x and mod_perl. I installed RT 4.2.3
first as the RTIR guide says RT 4.0.14 or later is required. After
learning otherwise, I then removed 4.2.3 and installed RT 4.0.19 using the
README: README - RT 4.0.25 Documentation - Best Practical

I then installed RTIR 3.0.0 using the README:
https://www.bestpractical.com/docs/rtir/3.0/README.html

Here is my RT_SiteConfig.pm:

Set( $CommentAddress, ‘’ );
Set( $CorrespondAddress, ‘’ );
Set( $DatabaseHost, ‘localhost’ );
Set( $DatabaseName, ‘rt4’ );
Set( $DatabasePassword, ‘password’ );
Set( $DatabasePort, ‘’ );
Set( $DatabaseRequireSSL, ‘’ );
Set( $DatabaseType, ‘mysql’ );
Set( $DatabaseUser, ‘rt_user’ );
Set( $Organization, ‘example.com’ );
Set( $OwnerEmail, ‘admin@example.com’ );
Set( $SendmailPath, ‘/usr/sbin/sendmail’ );
Set( $WebDomain, ‘www.example.com’ );
Set( $WebPort, ‘80’ );
Set( $rtname, ‘example.com’ );
Set( $LogToFile, ‘debug’ );
Set( @Plugins, ‘RT::IR’ );
1;

My virtual host config:

<VirtualHost *:80>
### Optional apache logs for RT
ErrorLog /opt/rt4/var/log/apache2.error
TransferLog /opt/rt4/var/log/apache2.access
LogLevel debug

AddDefaultCharset UTF-8

DocumentRoot "/opt/rt4/share/html"
<Location />
    Order allow,deny
    Allow from all

    SetHandler modperl
    PerlResponseHandler Plack::Handler::Apache2
    PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
    use Plack::Handler::Apache2;
    Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>

-Brian

rt.log was finally created, not sure why it wasn’t earlier… The
following line pointed me to a permissions issue that I was able to
resolve. Seems to be working now! Thanks all.

[15839] [Thu Apr 3 14:24:55 2014] [error]: mkdir
/opt/rt4/var/mason_data/obj/3407077840/plugin-RT::IR/Callbacks: Permission
denied at /usr/local/share/perl5/HTML/Mason/Compiler/ToObje
ct.pm line 115.

Brian

‎Good to read that.

Congrats.

Atte

Gonzalo

Enviado desde BlackBerryDe: Brian MathiasEnviado: jueves, 3 de abril de 2014 10:30Para: rtir@lists.bestpractical.comAsunto: Re: [Rtir] RTIR installation problems

rt.log was finally created, not sure why it wasn’t earlier… The following line pointed me to a permissions issue that I was able to resolve. Seems to be working now! Thanks all.

[15839] [Thu Apr 3 14:24:55 2014] [error]: mkdir /opt/rt4/var/mason_data/obj/3407077840/plugin-RT::IR/Callbacks: Permission denied at /usr/local/share/perl5/HTML/Mason/Compiler/ToObje

ct.pm line 115.

Brian

ATT001.txt (68 Bytes)

Sorry…but what did you do to resolve it? IE, what did you change?

Brian Mathias <brian.mathias@…> writes:

rt.log was finally created, not sure why it wasn’t earlier… The following
line pointed me to a permissions issue that I was able to resolve. Seems to
be working now! Thanks all.
[15839] [Thu Apr 3 14:24:55 2014] [error]: mkdir
/opt/rt4/var/mason_data/obj/3407077840/plugin-RT::IR/Callbacks: Permission
denied at /usr/local/share/perl5/HTML/Mason/Compiler/ToObject.pm line 115.