Fatal Error on RT2 installation

Hi Guys,

I am a perl beginner and have been trying to get RT2 installed on a Solaris
8 machine, running Apache 1.3.27, mod_ssl and mod_perl. My make testdeps
reports no errors. When I run make install I get the following error:

Can’t write to ‘/usr/local/rt2/tmp/rt.log0’: No such file or directory at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.
*** Error code 2
make: Fatal error: Command failed for target `insert’

On my machine,perl5 is located in /usr/local/lib/. I notice that I do not
have Dispatch.pm (File.pm). What do I need to reinstall and where?

Any help will be greatly appreciated!!

Here is my “make install”

mkdir -p //usr/local/rt2/bin
mkdir -p //usr/local/rt2/WebRT/data
mkdir -p //usr/local/rt2/WebRT/sessiondata
mkdir -p //usr/local/rt2/etc
mkdir -p //usr/local/rt2/lib
mkdir -p //usr/local/rt2/WebRT/html
mkdir -p //usr/local/rt2/local/WebRT/html
/usr/local/bin/perl tools/initdb ‘mysql’ ‘/usr/local/mysql’ ‘localhost’
’’ ‘root’ ‘rt2’ create
Now creating a database for RT.
Enter the mysql password for root:
Creating mysql database rt2.
cp etc/acl.mysql ‘//usr/local/rt2/etc/acl.mysql’
/usr/local/bin/perl -p -i -e " s’!!DB_TYPE!!’“mysql”‘g;
s’!!DB_HOST!!’“localhost”‘g;
s’!!DB_RT_PASS!!’“rt_pass”‘g;
s’!!DB_RT_HOST!!’“localhost”‘g;
s’!!DB_RT_USER!!’“rt_user”‘g;
s’!!DB_DATABASE!!’“rt2”‘g;"
//usr/local/rt2/etc/acl.mysql
bin/initacls.mysql ‘/usr/local/mysql’ ‘localhost’ ‘’ ‘root’ ‘’ ‘rt2’
’//usr/local/rt2/etc/acl.mysql’
Enter the mysql administrator’s database password to create a new user for
RT
Enter password:
Enter the mysql administrator’s database password to nondestructively reload
the database
Enter password:
/usr/local/bin/perl tools/initdb ‘mysql’ ‘/usr/local/mysql’ ‘localhost’
’’ ‘rt_user’ ‘rt2’ insert
Now populating database schema.
Enter the mysql password for rt_user:
Creating database schema.
schema sucessfully inserted
[ -f //usr/local/rt2/etc/config.pm ] &&
mv //usr/local/rt2/etc/config.pm //usr/local/rt2/etc/config.pm.old
&&
chmod 000 //usr/local/rt2/etc/config.pm.old
cp -rp ./etc/config.pm //usr/local/rt2/etc/config.pm
/usr/local/bin/perl -p -i -e “
s’!!DB_TYPE!!’“mysql”‘g;
s’!!DB_HOST!!’“localhost”‘g;
s’!!DB_PORT!!’”"‘g;
s’!!DB_RT_PASS!!’“rt_pass”‘g;
s’!!DB_RT_USER!!’“rt_user”‘g;
s’!!DB_DATABASE!!’“rt2”‘g;
s’!!MASON_HTML_PATH!!’"/usr/local/rt2/WebRT/html"‘g;
s’!!MASON_LOCAL_HTML_PATH!!’"/usr/local/rt2/local/WebRT/html"‘g;
s’!!MASON_SESSION_PATH!!’"/usr/local/rt2/WebRT/sessiondata"‘g;
s’!!MASON_DATA_PATH!!’"/usr/local/rt2/WebRT/data"‘g;
s’!!RT_LOG_PATH!!’"/usr/local/rt2/tmp"‘g;
s’!!RT_VERSION!!’“2.0.14”‘g;
" //usr/local/rt2/etc/config.pm
cp -rp ./tools/insertdata
//usr/local/rt2/etc
/usr/local/bin/perl -p -i -e " s’!!RT_ETC_PATH!!’/usr/local/rt2/etc’g;
s’!!RT_LIB_PATH!!’/usr/local/rt2/lib’g;"
//usr/local/rt2/etc/insertdata
[ -d //usr/local/rt2/lib ] || mkdir //usr/local/rt2/lib
chown -R root //usr/local/rt2/lib
chgrp -R bin //usr/local/rt2/lib
chmod -R 0755 //usr/local/rt2/lib
( cd ./lib;
/usr/local/bin/perl Makefile.PL INSTALLSITELIB=//usr/local/rt2/lib
INSTALLMAN1DIR=//usr/local/rt2/man/man1
INSTALLMAN3DIR=//usr/local/rt2/man/man3
&& make
&& make test
&& /usr/local/bin/perl -p -i -e " s’!!RT_VERSION!!‘2.0.14’g;"
blib/lib/RT.pm ;
make install
INSTALLSITEMAN1DIR=//usr/local/rt2/man/man1
INSTALLSITEMAN3DIR=//usr/local/rt2/man/man3
)
Writing Makefile for RT
Manifying blib/man3/RT::GroupMember.3
Manifying blib/man3/RT::Attachments.3
Manifying blib/man3/RT::ScripCondition.3
Manifying blib/man3/RT::Interface::Email.3
Manifying blib/man3/RT::Action::SendEmail.3
Manifying blib/man3/RT::ScripActions.3
Manifying blib/man3/RT::ScripAction.3
Manifying blib/man3/RT::Templates.3
Manifying blib/man3/RT::ScripConditions.3
Manifying blib/man3/RT::Action::Generic.3
Manifying blib/man3/RT::Groups.3
Manifying blib/man3/RT::Handle.3
Manifying blib/man3/RT::Interface::CLI.3
Manifying blib/man3/RT::Group.3
Manifying blib/man3/RT::Users.3
Manifying blib/man3/RT::Ticket.3
Manifying blib/man3/RT::ACE.3
Manifying blib/man3/RT::CurrentUser.3
Manifying blib/man3/RT::Watchers.3
Manifying blib/man3/RT::Tickets.3
Manifying blib/man3/RT::Transaction.3
Manifying blib/man3/RT::Action::SendPasswordEmail.3
Manifying blib/man3/RT::Date.3
Manifying blib/man3/RT::Transactions.3
Manifying blib/man3/RT::Links.3
Manifying blib/man3/RT::Scrips.3
Manifying blib/man3/RT::ObjectKeyword.3
Manifying blib/man3/RT::Template.3
Manifying blib/man3/RT::User.3
Manifying blib/man3/RT::Condition::Generic.3
Manifying blib/man3/RT::KeywordSelect.3
Manifying blib/man3/RT::Queues.3
Manifying blib/man3/RT::Scrip.3
Manifying blib/man3/RT::Attachment.3
Manifying blib/man3/RT::EasySearch.3
Manifying blib/man3/RT::ObjectKeywords.3
Manifying blib/man3/RT::ACL.3
Manifying blib/man3/RT::GroupMembers.3
Manifying blib/man3/RT::Record.3
Manifying blib/man3/RT::Queue.3
Manifying blib/man3/RT::Watcher.3
Manifying blib/man3/RT::Link.3
Manifying blib/man3/RT::Keywords.3
Manifying blib/man3/RT::Keyword.3
Manifying blib/man3/RT.3
PERL_DL_NONLAZY=1 /usr/local/bin/perl “-Iblib/lib” “-Iblib/arch” test.pl
1…1
ok 1
Writing //usr/local/rt2/lib/auto/RT/.packlist
Appending installation info to
/usr/local/lib/perl5/5.8.0/sun4-solaris/perllocal.pod
cp -rp ./webrt/* //usr/local/rt2/WebRT/html
cp -p ./bin/webmux.pl //usr/local/rt2/bin/webmux.pl
cp -p ./bin/rt-mailgate //usr/local/rt2/bin/rt-mailgate
cp -p ./bin/rtadmin //usr/local/rt2/bin/rtadmin
cp -p ./bin/rt //usr/local/rt2/bin/rt
cp -p ./bin/mason_handler.fcgi //usr/local/rt2/bin/mason_handler.fcgi
cp -p ./bin/mason_handler.scgi //usr/local/rt2/bin/mason_handler.scgi
/usr/local/bin/perl -p -i -e "s’!!RT_PATH!!’"/usr/local/rt2"‘g;
s’!!PERL!!’"/usr/local/bin/perl"‘g;
s’!!RT_VERSION!!’“2.0.14”‘g;
s’!!RT_ETC_PATH!!’"/usr/local/rt2/etc"‘g;
s’!!RT_LIB_PATH!!’"/usr/local/rt2/lib"'g;"
//usr/local/rt2/bin/webmux.pl
//usr/local/rt2/bin/mason_handler.fcgi
//usr/local/rt2/bin/mason_handler.scgi
//usr/local/rt2/bin/rt
//usr/local/rt2/bin/rtadmin
//usr/local/rt2/bin/rt-mailgate

Make the libraries readable

chmod -R 0755 //usr/local/rt2
chown -R root //usr/local/rt2/lib
chgrp -R bin //usr/local/rt2/lib
chown -R root //usr/local/rt2/bin
chgrp -R rt //usr/local/rt2/bin
chmod 0755 //usr/local/rt2/bin
chmod 0755 //usr/local/rt2/bin
chmod 0755 //usr/local/rt2/etc
chmod 0500 //usr/local/rt2/etc/*
#TODO: the config file should probably be able to have its

owner set seperately from the binaries.

chown -R root //usr/local/rt2/etc
chgrp -R rt //usr/local/rt2/etc
chmod 0550 //usr/local/rt2/etc/config.pm

Make the interfaces executable and setgid rt

chown root //usr/local/rt2/bin/rt-mailgate
//usr/local/rt2/bin/mason_handler.fcgi
//usr/local/rt2/bin/mason_handler.scgi
//usr/local/rt2/bin/rt
//usr/local/rt2/bin/rtadmin
chgrp rt //usr/local/rt2/bin/rt-mailgate
//usr/local/rt2/bin/mason_handler.fcgi
//usr/local/rt2/bin/mason_handler.scgi
//usr/local/rt2/bin/rt
//usr/local/rt2/bin/rtadmin
chmod 0755 //usr/local/rt2/bin/rt-mailgate
//usr/local/rt2/bin/mason_handler.fcgi
//usr/local/rt2/bin/mason_handler.scgi
//usr/local/rt2/bin/rt
//usr/local/rt2/bin/rtadmin
chmod g+s //usr/local/rt2/bin/rt-mailgate
//usr/local/rt2/bin/mason_handler.fcgi
//usr/local/rt2/bin/mason_handler.scgi
//usr/local/rt2/bin/rt
//usr/local/rt2/bin/rtadmin

Make the web ui readable by all.

chmod -R u+rwX,go-w,go+rX //usr/local/rt2/WebRT/html
//usr/local/rt2/local/WebRT/html
chown -R root //usr/local/rt2/WebRT/html
//usr/local/rt2/local/WebRT/html
chgrp -R bin //usr/local/rt2/WebRT/html
//usr/local/rt2/local/WebRT/html

Make the web ui’s data dir writable

chmod 0770 //usr/local/rt2/WebRT/data
//usr/local/rt2/WebRT/sessiondata
chown -R rt //usr/local/rt2/WebRT/data
//usr/local/rt2/WebRT/sessiondata
chgrp -R rt //usr/local/rt2/WebRT/data
//usr/local/rt2/WebRT/sessiondata
Congratulations. RT has been upgraded. You should now check-over
/usr/local/rt2/etc/config.pm for any necessary site customization.
Additionally,
you should update RT’s system database objects by running
/usr/local/rt2/etc/insertdata
where is the version of RT you’re upgrading from.
/usr/local/bin/perl -I//usr/local/rt2/etc -I//usr/local/rt2/lib
//usr/local/rt2/etc/insertdata
Checking for existing system user…not found. This appears to be a new
installationCreating system user…done.
Can’t write to ‘/usr/local/rt2/tmp/rt.log0’: No such file or directory at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.
*** Error code 2
make: Fatal error: Command failed for target `insert’

Thank you
Henry

“The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers.”

I am a perl beginner and have been trying to get RT2 installed on a
Solaris 8 machine, running Apache 1.3.27, mod_ssl and mod_perl. My
make testdeps reports no errors. When I run make install I get the
following error:

Can’t write to ‘/usr/local/rt2/tmp/rt.log0’: No such file or
directory at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.
*** Error code 2 make: Fatal error: Command failed for target
`insert’

Ensure that the directory /usr/local/rt2/tmp exists.

(darren)

What a strange illusion it is to suppose that beauty is goodness.
– Leo Tolstoy

Hi Darren,

Thanks for your quick response. I created directory (tmp)and RT installed
successfully. I have configured my config.pm file correctly and restarted
apache. However on trying to access the WebUI. I am not getting the Logon.
Instead I am getting a 500 Internal Server Error. My RT log at
/usr/local/rt2/tmp has 1 file in it rtlog.0 that has nothing in it. My
apache logs at /usr/local/www/logs/error_log shows the following error:

[Tue Nov 5 14:46:43 2002] [error] Can’t write to
’/usr/local/rt2/tmp/rt.log.20341.0’: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.

Line 72 in File.pm reads:

open $fh, "$mode$self->{filename}"
or die “Can’t write to ‘$self->{filename}’: $!”;

I reckon I have somewhat of a permissions problem? and also this error seems
to relate to logging. Will this necessarily lead to the WebUI not coming
up?

Thanks
HenryFrom: darren chamberlain [mailto:darren@boston.com]
Sent: Tuesday, November 05, 2002 11:36 AM
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] RE: Fatal Error on RT2 installation

I am a perl beginner and have been trying to get RT2 installed on a
Solaris 8 machine, running Apache 1.3.27, mod_ssl and mod_perl. My
make testdeps reports no errors. When I run make install I get the
following error:

Can’t write to ‘/usr/local/rt2/tmp/rt.log0’: No such file or
directory at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.
*** Error code 2 make: Fatal error: Command failed for target
`insert’

Ensure that the directory /usr/local/rt2/tmp exists.

(darren)

What a strange illusion it is to suppose that beauty is goodness.
– Leo Tolstoy
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

“The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers.”

I created directory (tmp)and RT installed successfully. I have
configured my config.pm file correctly and restarted apache. However
on trying to access the WebUI. I am not getting the Logon. Instead I
am getting a 500 Internal Server Error. My RT log at
/usr/local/rt2/tmp has 1 file in it rtlog.0 that has nothing in it.

My experience has been that there is never anything in the logs. :frowning:

My apache logs at /usr/local/www/logs/error_log shows the following
error:

[Tue Nov 5 14:46:43 2002] [error] Can’t write to
’/usr/local/rt2/tmp/rt.log.20341.0’: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.

Line 72 in File.pm reads:

open $fh, "$mode$self->{filename}"
or die “Can’t write to ‘$self->{filename}’: $!”;

I reckon I have somewhat of a permissions problem? and also this error
seems to relate to logging.

Yes – you can chmod 777 /usr/local/rt2/tmp to test it out.

Will this necessarily lead to the WebUI not coming up?

Yes – the die will run your day, every time. But, of course, the die
is a symptom of the permissions problem.

I would think that you can rm /usr/local/rt2/tmp/* and then restart the
server, and All Would Be Well.

You could also add, in webmux.pl:

chown (Apache->server->uid, Apache->server->gid, $RT::LogDir);

Which will chown the logdir to the apache process.

(darren)

Nothing worse could happen to one than to be completely understood.
– Carl Gustav Jung

Hi Darren,

Yes – you can chmod 777 /usr/local/rt2/tmp to test it out.

I would think that you can rm /usr/local/rt2/tmp/* and then restart the
server, and All Would Be Well.

You could also add, in webmux.pl:

chown (Apache->server->uid, Apache->server->gid, $RT::LogDir);

Which will chown the logdir to the apache process.

Done all of the above abnd restarted apache. On trying to access the url, I
now get an HTTP 404 error(Page cannot be displayed). I am running mod_ssl
on this server.

My apache log (/usr/local/www/logs/error_log) now shows the following:

[Tue Nov 5 15:31:11 2002] [warn] [Mason] Cannot resolve file to component:
/usr/local/rt/WebRT/html/index.html (is file outside component root?)

Any ideas???

Thanks

iginal Message-----From: darren chamberlain [mailto:darren@boston.com]
Sent: Tuesday, November 05, 2002 2:08 PM
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] RE: Fatal Error on RT2 installation

I created directory (tmp)and RT installed successfully. I have
configured my config.pm file correctly and restarted apache. However
on trying to access the WebUI. I am not getting the Logon. Instead I
am getting a 500 Internal Server Error. My RT log at
/usr/local/rt2/tmp has 1 file in it rtlog.0 that has nothing in it.

My experience has been that there is never anything in the logs. :frowning:

My apache logs at /usr/local/www/logs/error_log shows the following
error:

[Tue Nov 5 14:46:43 2002] [error] Can’t write to
’/usr/local/rt2/tmp/rt.log.20341.0’: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.

Line 72 in File.pm reads:

open $fh, "$mode$self->{filename}"
or die “Can’t write to ‘$self->{filename}’: $!”;

I reckon I have somewhat of a permissions problem? and also this error
seems to relate to logging.

Yes – you can chmod 777 /usr/local/rt2/tmp to test it out.

Will this necessarily lead to the WebUI not coming up?

Yes – the die will run your day, every time. But, of course, the die
is a symptom of the permissions problem.

I would think that you can rm /usr/local/rt2/tmp/* and then restart the
server, and All Would Be Well.

You could also add, in webmux.pl:

chown (Apache->server->uid, Apache->server->gid, $RT::LogDir);

Which will chown the logdir to the apache process.

(darren)

Nothing worse could happen to one than to be completely understood.
– Carl Gustav Jung
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

“The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers.”

Hi Darren,

Hi!

Done all of the above abnd restarted apache. On trying to access the
url, I now get an HTTP 404 error(Page cannot be displayed). I am
running mod_ssl on this server.

My apache log (/usr/local/www/logs/error_log) now shows the following:

[Tue Nov 5 15:31:11 2002] [warn] [Mason] Cannot resolve file to component:
/usr/local/rt/WebRT/html/index.html (is file outside component root?)

Any ideas???

Is your component root /usr/local/rt or /usr/local/rt2? The former
appears in the error_log snippet, whilst the latter appears in our
previous discussion of $RT::LogDir (hint hint).

(darren)

I respect faith, but doubt is what gives you an education.
– Wilson Mizner

Darren,

According to the archives
http://lists.fsck.com/pipermail/rt-users/2001-August/003462.html, Mason will
not work over a symlink. I have /usr/local symlinked to /opt.

Is there a way I can get Mason to work over my symlink???

Thank you
HillaryFrom: darren chamberlain [mailto:darren@boston.com]
Sent: Tuesday, November 05, 2002 2:52 PM
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] RE: Fatal Error on RT2 installation

Hi Darren,

Hi!

Done all of the above abnd restarted apache. On trying to access the
url, I now get an HTTP 404 error(Page cannot be displayed). I am
running mod_ssl on this server.

My apache log (/usr/local/www/logs/error_log) now shows the following:

[Tue Nov 5 15:31:11 2002] [warn] [Mason] Cannot resolve file to
component:
/usr/local/rt/WebRT/html/index.html (is file outside component root?)

Any ideas???

Is your component root /usr/local/rt or /usr/local/rt2? The former
appears in the error_log snippet, whilst the latter appears in our
previous discussion of $RT::LogDir (hint hint).

(darren)

I respect faith, but doubt is what gives you an education.
– Wilson Mizner
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

“The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers.”