[rt-users] FastCGI: server error

Camron W. Fox cwfox at fujitsu.com
Fri Jul 4 17:54:01 EDT 2003


Alle,

	I have installed Perl 5.8 (at Jesse's most severe recommendation) and
reinstalled RT3.0.3. I'm using RH7.3, Mysql 4.0.12, mod_fastcgi 2.4.0 and
Apache 1.3.27-2. All went well (relatively) until I attempted to start the
Apache server and get the following error:

[Fri Jul  4 11:19:56 2003] [notice] FastCGI: process manager initialized
(pid 14984)
[Fri Jul  4 11:19:56 2003] [warn] FastCGI: server
"/usr/local/rt3/bin/mason_handler.fcgi" started (pid 14985)
[Fri Jul  4 11:19:57 2003] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux)
mod_fastcgi/2.4.0 mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12
OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26 mod_throttle/3.1.2
configured -- resuming normal operations
[Fri Jul  4 11:19:57 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Fri Jul  4 11:19:57 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
Can't locate /usr/local/rt3/etc/RT_SiteConfig.pm in @INC (@INC contains:
/usr/local/rt3/local/lib /usr/local/rt3/lib
/usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
/usr/local/rt3/lib/RT.pm line 105.
Compilation failed in require at /usr/local/rt3/bin/mason_handler.fcgi line
28.
[Fri Jul  4 11:20:03 2003] [warn] FastCGI: server
"/usr/local/rt3/bin/mason_handler.fcgi" (pid 14985) terminated by calling
exit with status '13'

Here is the output from the installation:

[root at hilo rt-3-0-3]# PERL=/usr/local/bin/perl
./configure --prefix=/usr/local/rt3 --with-web-group=apache --with-web-user=
apache
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/local/bin/perl
checking for chosen layout... RT3
configure: creating ./config.status
config.status: creating sbin/rt-setup-database
config.status: creating sbin/rt-test-dependencies
config.status: creating Makefile
config.status: creating etc/RT_Config.pm
config.status: creating lib/RT.pm
config.status: creating lib/t/00smoke.t
config.status: creating lib/t/01harness.t
config.status: creating lib/t/02regression.t
config.status: creating lib/t/03web.pl
config.status: creating lib/t/04_send_email.pl
config.status: creating bin/mason_handler.fcgi
config.status: creating bin/mason_handler.scgi
config.status: creating bin/mason_handler.svc
config.status: creating bin/rt-commit-handler
config.status: creating bin/rt-crontool
config.status: creating bin/rt-mailgate
config.status: creating bin/webmux.pl
[root at hilo rt-3-0-3]# /usr/local/bin/perl
sbin/rt-test-dependencies --with-mysql --with-fastcgi
MASON dependencies:
	Params::Validate 0.02...found
	Cache::Cache ...found
	Exception::Class ...found
	HTML::Mason 1.16...found
	MLDBM ...found
	Errno ...found
	FreezeThaw ...found
	Digest::MD5 ...found
	CGI::Cookie 1.20...found
	Storable ...found
	Apache::Session 1.53...found
FASTCGI dependencies:
	CGI ...found
	FCGI ...found
	CGI::Fast ...found
MAILGATE dependencies:
	HTML::TreeBuilder ...found
	HTML::FormatText ...found
	Getopt::Long ...found
	LWP::UserAgent ...found
CLI dependencies:
	Getopt::Long 2.24...found
CORE dependencies:
	Digest::MD5 ...found
	DBI 1.18...found
	Test::Inline ...found
	Class::ReturnValue 0.40...found
	DBIx::SearchBuilder 0.86...found
	Text::Template ...found
	File::Spec 0.8...found
	HTML::Entities ...found
	Net::Domain ...found
	Log::Dispatch 2.0...found
	Locale::Maketext 1.04...found
	Locale::Maketext::Lexicon 0.25...found
	Locale::Maketext::Fuzzy ...found
	MIME::Entity 5.108...found
	Mail::Mailer 1.57...found
	Net::SMTP ...found
	Text::Wrapper ...found
	Time::ParseDate ...found
	File::Temp ...found
	Term::ReadKey ...found
	Text::Autoformat ...found
	Text::Quoted ...found
DEV dependencies:
	Regexp::Common ...found
	Time::HiRes ...found
	Test::Inline ...found
	WWW::Mechanize ...found
MYSQL dependencies:
	DBD::mysql 2.1018...found
[root at hilo rt-3-0-3]# PERL=/usr/local/bin/perl make install
mkdir -p //usr/local/rt3/etc
cp etc/RT_Config.pm //usr/local/rt3/etc/RT_Config.pm
[ -f //usr/local/rt3/etc/RT_SiteConfig.pm ] || cp etc/RT_SiteConfig.pm
//usr/local/rt3/etc/RT_SiteConfig.pm
chgrp rt //usr/local/rt3/etc/RT_Config.pm
chown root //usr/local/rt3/etc/RT_Config.pm
chgrp rt //usr/local/rt3/etc/RT_SiteConfig.pm
chown root //usr/local/rt3/etc/RT_SiteConfig.pm
Installed configuration. about to install rt in  /usr/local/rt3
mkdir -p //usr/local/rt3/var/log
mkdir -p //usr/local/rt3/var/mason_data
mkdir -p //usr/local/rt3/var/mason_data/cache
mkdir -p //usr/local/rt3/var/mason_data/etc
mkdir -p //usr/local/rt3/var/mason_data/obj
mkdir -p //usr/local/rt3/var/session_data
mkdir -p //usr/local/rt3/share/html
mkdir -p //usr/local/rt3/local/html
mkdir -p //usr/local/rt3/local/etc
mkdir -p //usr/local/rt3/local/po
[ -d //usr/local/rt3/lib ] || mkdir //usr/local/rt3/lib
cp -rp lib/* //usr/local/rt3/lib
mkdir -p //usr/local/rt3/etc
cp -rp \
etc/acl.* \
	etc/initialdata \
	etc/schema.* \
	//usr/local/rt3/etc
mkdir -p //usr/local/rt3/bin
chmod +x bin/rt-mailgate \
	bin/rt-crontool
cp -rp \
	bin/rt-mailgate \
	bin/mason_handler.fcgi \
	bin/mason_handler.svc \
	bin/webmux.pl \
	bin/rt-crontool \
	//usr/local/rt3/bin
mkdir -p //usr/local/rt3/sbin
chmod +x sbin/rt-setup-database \
	sbin/rt-test-dependencies
cp -rp \
	sbin/rt-setup-database \
	sbin/rt-test-dependencies \
	//usr/local/rt3/sbin
[ -d //usr/local/rt3/share/html ] || mkdir //usr/local/rt3/share/html
cp -rp ./html/* //usr/local/rt3/share/html
cp -rp ./local/html/* //usr/local/rt3/local/html
cp: cannot stat `./local/html/*': No such file or directory
make: [local-install] Error 1 (ignored)
cp -rp ./local/po/* //usr/local/rt3/local/po
cp: cannot stat `./local/po/*': No such file or directory
make: [local-install] Error 1 (ignored)
cp -rp ./local/etc/* //usr/local/rt3/local/etc
cp: cannot stat `./local/etc/*': No such file or directory
make: [local-install] Error 1 (ignored)
# RT 3.0.0 - RT 3.0.2 would accidentally create a file instead of a dir
[ -f //usr/local/rt3/share/doc ] && rm //usr/local/rt3/share/doc
make: [doc-install] Error 1 (ignored)
[ -d //usr/local/rt3/share/doc ] || mkdir //usr/local/rt3/share/doc
cp -rp ./README //usr/local/rt3/share/doc
# Make the libraries readable
chmod 0755 //usr/local/rt3
chown -R root //usr/local/rt3/lib
chgrp -R bin //usr/local/rt3/lib
chmod -R  u+rwX,go-w,go+rX 	//usr/local/rt3/lib
chmod 0755 //usr/local/rt3/bin
chmod 0755 //usr/local/rt3/bin
chmod 0755 //usr/local/rt3/etc
chmod 0500 //usr/local/rt3/etc/*
#TODO: the config file should probably be able to have its
# owner set seperately from the binaries.
chown -R root //usr/local/rt3/etc
chgrp -R rt //usr/local/rt3/etc
chmod 0550 //usr/local/rt3/etc/RT_Config.pm
chmod 0550 //usr/local/rt3/etc/RT_SiteConfig.pm
# Make the interfaces executable and setgid rt
chown root //usr/local/rt3/bin/webmux.pl //usr/local/rt3/bin/rt-mailgate
//usr/local/rt3/bin/rt-crontool //usr/local/rt3/bin/mason_handler.fcgi
//usr/local/rt3/bin/mason_handler.svc
chgrp rt //usr/local/rt3/bin/webmux.pl //usr/local/rt3/bin/rt-mailgate
//usr/local/rt3/bin/rt-crontool //usr/local/rt3/bin/mason_handler.fcgi
//usr/local/rt3/bin/mason_handler.svc
chmod 0755  //usr/local/rt3/bin/webmux.pl //usr/local/rt3/bin/rt-mailgate
//usr/local/rt3/bin/rt-crontool //usr/local/rt3/bin/mason_handler.fcgi
//usr/local/rt3/bin/mason_handler.svc
chmod g+s //usr/local/rt3/bin/mason_handler.fcgi
//usr/local/rt3/bin/mason_handler.svc
# Make the web ui readable by all.
chmod -R  u+rwX,go-w,go+rX 	//usr/local/rt3/share/html \
				//usr/local/rt3/local/html \
				//usr/local/rt3/local/po
chown -R root 	//usr/local/rt3/share/html \
			//usr/local/rt3/local/html
chgrp -R bin 	//usr/local/rt3/share/html \
			//usr/local/rt3/local/html
# Make the web ui's data dir writable
chmod 0770  	//usr/local/rt3/var/mason_data \
		//usr/local/rt3/var/session_data
chown -R apache 	//usr/local/rt3/var/mason_data \
			//usr/local/rt3/var/session_data
chgrp -R apache 	//usr/local/rt3/var/mason_data \
			//usr/local/rt3/var/session_data
Congratulations. RT has been installed.


You must now configure RT by editing /usr/local/rt3/etc/RT_SiteConfig.pm.

(You will definitely need to set RT's database password before continuing.
 Not doing so could be very dangerous)

After that, you need to initialize RT's database by running
 'make initialize-database'
[root at hilo rt-3-0-3]#  PERL=/usr/local/bin/perl make initialize-database
/usr/local/bin/perl //usr/local/rt3/sbin/rt-setup-database --action
init --dba root --prompt-for-dba-passwordIn order to create a new database
and grant RT access to that database,
this script needs to connect to your mysql instance on localhost as root.
Please specify that user's database password below. If the user has no
database
password, just press return.

Password: Now creating a database for RT.
Creating mysql database rt3.
Now populating database schema.
Creating database schema.
schema sucessfully inserted
Now inserting database ACLs
Now inserting RT core system objects
Checking for existing system user...not found.  This appears to be a new
installation.
Creating system user...done.
Now inserting RT data
Creating Superuser  ACL...Creating groups...3.4.5.6.7.8.9.done.
Creating users...[Fri Jul  4 21:18:03 2003] [warning]: Use of uninitialized
value in subtraction (-) at
/usr/local/lib/perl5/site_perl/5.8.0/DBIx/SearchBuilder/Record/Cachable.pm
line 96.
 (/usr/local/rt3/lib/RT.pm:235)
10.[Fri Jul  4 21:18:03 2003] [warning]: Use of uninitialized value in
subtraction (-) at
/usr/local/lib/perl5/site_perl/5.8.0/DBIx/SearchBuilder/Record/Cachable.pm
line 96.
 (/usr/local/rt3/lib/RT.pm:235)
12.done.
Creating queues...1.2.done.
Creating ACL...2.3.done.
Creating ScripActions...1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.done.
Creating ScripConditions...1.2.3.4.5.6.7.8.9.done.
Creating templates...1.2.3.4.5.6.7.8.9.10.11.12.done.
Creating scrips...1.2.3.4.5.6.7.8.9.10.11.12.13.done.
[root at hilo rt-3-0-3]#

Here is the associated excerpt from the httpd.conf:

<VirtualHost *:666>
DocumentRoot /usr/local/rt3/share/html
AddHandler fastcgi-script fcgi fcgi fpl
AddDefaultCharset UTF-8
FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi
ScriptAlias / /usr/local/rt3/bin/mason_handler.fcgi/
<Location />
 SetHandler fastcgi-script
 PerlHandler RT::Mason
</Location>
</VirtualHost>

	Any help would be apprecaited.


Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail:		cwfox at fujitsu.com




More information about the rt-users mailing list