[rt-users] Apache2, webmux issue: [error] Can't locate object method "Config" via package "RT" (...) - httpd does not start

Olgierd Ziółko olgierd at gmail.com
Fri Oct 31 07:03:38 EDT 2008


Hello,

nice to meet you :)

Yesterday I've installed version 3.8.1 on my debian box, and I can't start it.

What I have:
Debian "Etch" with 2.6.21-2
Apache 2.2.4 running with mod_perl/2.0.3 and Perl/v5.8.8 (fastcgi is
currently disabled) and other modules
RT 3.8.1
access to root account :)


What I did:
./configure --prefix="/usr/local/rt-3" - successfull
database and user created - successful
config in etc/RT_SiteConfig.pm - done
fixed all dependencies with make fixdeps
tested all dependencies: "All dependencies have been found."
successful 'make install'
reinstall with perl -MCPAN -e'install Bundle::Apache2'
reinstalled like above DBIx::SearchBuilder (desperation, yes)
checked permissions of path to RT.pm - okay
created /etc/apache2/inc/request-tracker included in
/etc/apache2/sites-enabled/ssl-my.ssl.host.name (content: below)
even tried "downgrade" rt to 3.8.0 - nothing changed

What is going on:
When I did 'apache2ctl graceful' apache silently died with (in error log):
[Fri Oct 31 09:39:54 2008] [notice] Graceful restart requested, doing restart
[Fri Oct 31 09:39:54 2008] [error] (9)Bad file descriptor:
apr_socket_accept: (client socket)
[Fri Oct 31 09:39:54 2008] [error] (9)Bad file descriptor:
apr_socket_accept: (client socket)
[Fri Oct 31 09:39:55 2008] [error] (9)Bad file descriptor:
apr_socket_accept: (client socket)
[Fri Oct 31 09:39:55 2008] [error] (9)Bad file descriptor:
apr_socket_accept: (client socket)
[Fri Oct 31 09:40:26 2008] [error] Can't locate object method "Config"
via package "RT" at /usr/local/rt-3/bin/webmux.pl line 100.\nBEGIN
failed--compilation aborted at /usr/local/rt-3/bin/webmux.pl line
101.\nCompilation failed in require at (eval 244) line 1.\n
[Fri Oct 31 09:40:26 2008] [error] Can't load Perl file:
/usr/local/rt-3/bin/webmux.pl for server my.ssl.host.name:443,
exiting...

...and I had to comment out "Include /etc/apache2/inc/request-tracker"
in <VirtualHost> in /etc/apache2/sites-enabled/ssl-my.ssl.host.name

I'm writing here because I'm unfortunately not a perl hacker and I
can't force "this things" to work.
I've searched this list archive and web but I can't find anything corresponding.

== /etc/apache2/inc/request-tracker
Alias /rt "/usr/local/rt-3/share/html"
AddDefaultCharset UTF-8

# PerlModule Apache::DBI
PerlRequire "/usr/local/rt-3/bin/webmux.pl"

<Directory /usr/local/rt-3/share/html>
  AllowOverride All
  Options ExecCGI +FollowSymLinks
</Directory>

<Location /rt/NoAuth/images>
  SetHandler default
</Location>

<Location /rt>
  SetHandler perl-script
  PerlResponseHandler RT::Mason
  # PerlHandler RT::Mason - this one was from
http://wiki.bestpractical.com/view/DebianStableInstallGuide
</Location>
=== end of /etc/apache2/inc/request-tracker

=== parts of /etc/apache2/sites-enabled/ssl-my.ssl.host.name
NameVirtualHost ip.add.re.ss:443
<VirtualHost ip.add.re.ss:443>
       SSLEngine on
       DocumentRoot /var/www/
       [cut...]

       Include /etc/apache2/inc/some-file
       Include /etc/apache2/inc/some-other-file
       # commented out because server dies
       # Include /etc/apache2/inc/request-tracker
</VirtualHost>
=== end of /etc/apache2/sites-enabled/ssl-my.host.name

=== /usr/local/rt-3/etc/RT_SiteConfig.pm
Set( $rtname, 'my.ssl.host.name');
#Set(@Plugins,(qw(Extension::QuickDelete)));
Set($Organization , "my.domain.name");
Set($OwnerEmail, 'rtowner');
Set($RTAddressRegexp, '^it\@my.host.name$');
Set($SMTPServer, 'localhost');
Set($SMTPFrom, 'it at my.host.name');
Set($CorrespondAddress , 'RT_CorrespondAddressNotSet');
Set($CommentAddress , 'RT_CommentAddressNotSet');

Set($MinimumPasswordLength , "8");
Set($Timezone , 'Europe/Warsaw');

Set($DatabaseType , 'mysql');
Set($DatabasePassword , 'very-long-pw');

Set($PlainTextPre, 1);
Set($MaxAttachmentSize , 50000000);
Set($WebDefaultStylesheet, 'web2');

Set($WebDomain, 'my.host.name' );
Set($WebPath, "/rt");
Set($WebPort, 443);# + ($< * 7274) % 32766 + ($< && 1024));
Set($WebBaseURL, 'https://' . RT->Config->Get('WebDomain') . ':' .
RT->Config->Get('WebPort'));
Set($WebURL, RT->Config->Get('WebBaseURL') . RT->Config->Get('WebPath') . "/");
Set($WebSecureCookies, 1);
Set( %GnuPG,
       Enable => 1,
       OutgoingMessagesFormat => 'RFC', # Inline
       AllowEncryptDataInDB   => 0,
   );
1;
=== end of RT_SiteConfig.pm

Also I added to /etc/aliases:
===
it: "|/usr/local/rt-3/bin/rt-mailgate --queue 'General' --action
correspond --url https://my.ssl.host.name/rt"
===

I have no clue :)



Thanks in advance.

best regards,
--
Olgierd Ziolko
"Real stupidity beats artificial intelligence every time."



More information about the rt-users mailing list