Hi All,
I just updated my previously working 4.0.2 RT server to 4.0.3. RT is
running under mod_perl on this box. I followed all of the upgrade
instructions as usual (./configure;make testdeps;make upgrade;make
upgrade-database, and cleared the mason cache directory). The problem is
that when visiting the RT URL server gives a HTTP 500 error. In syslog I
get these messages.
Nov 9 11:43:22 noname RT: Subroutine handle_startup_error redefined at
/opt/rt4/sbin/rt-server line 238. (/opt/rt4/sbin/rt-server:238)
Nov 9 11:43:22 noname RT: Subroutine handle_bind_error redefined at
/opt/rt4/sbin/rt-server line 250. (/opt/rt4/sbin/rt-server:250)
Nov 9 11:43:34 noname RT: #011(in cleanup) Error while loading
/opt/rt4/sbin/rt-server: Can’t locate object method “ComponentRoots” via
package “RT::Interface::Web” at /opt/rt4/sbin/…/lib/RT/
Config.pm line 205. (/opt/rt4/sbin/…/lib/RT.pm:343)
Here is what I have tried:
-Make sure my perl dependencies are all up to date. I did this using
CPAN. A make testdeps shows everything to be in order.
-Tried disabling external plugins. I am using RT-Authen-ExternalAuth with
an LDAP backend. No change here.
-Restoring a backup copy of /opt/rt4 version 4.0.2. I didn’t revert the
database, but it still gives the same error so I don’t think it’s database.
Any ideas on what to do next would be greatly appreciated.
Thanks,
Jeff
Hi All,
I just updated my previously working 4.0.2 RT server to 4.0.3. RT is
running under mod_perl on this box. I followed all of the upgrade
instructions as usual (./configure;make testdeps;make upgrade;make
upgrade-database, and cleared the mason cache directory). The problem is
that when visiting the RT URL server gives a HTTP 500 error. In syslog I
get these messages.
Nov 9 11:43:22 noname RT: Subroutine handle_startup_error redefined at
/opt/rt4/sbin/rt-server line 238. (/opt/rt4/sbin/rt-server:238)
Nov 9 11:43:22 noname RT: Subroutine handle_bind_error redefined at
/opt/rt4/sbin/rt-server line 250. (/opt/rt4/sbin/rt-server:250)
Nov 9 11:43:34 noname RT: #011(in cleanup) Error while loading
/opt/rt4/sbin/rt-server: Can’t locate object method “ComponentRoots” via
package “RT::Interface::Web” at /opt/rt4/sbin/…/lib/RT/
Config.pm line 205. (/opt/rt4/sbin/…/lib/RT.pm:343)
This looks like you’re loading parts of RT twice.
Show your Apache config?
On Wed, Nov 09, 2011 at 12:17:20PM -1000, Jeff Sampson wrote:
Hi All,
I just updated my previously working 4.0.2 RT server to 4.0.3. RT is
running under mod_perl on this box. I followed all of the upgrade
instructions as usual (./configure;make testdeps;make upgrade;make
upgrade-database, and cleared the mason cache directory). The problem is
that when visiting the RT URL server gives a HTTP 500 error. In syslog I
get these messages.
Nov 9 11:43:22 noname RT: Subroutine handle_startup_error redefined at
/opt/rt4/sbin/rt-server line 238. (/opt/rt4/sbin/rt-server:238)
Nov 9 11:43:22 noname RT: Subroutine handle_bind_error redefined at
/opt/rt4/sbin/rt-server line 250. (/opt/rt4/sbin/rt-server:250)
Nov 9 11:43:34 noname RT: #011(in cleanup) Error while loading
/opt/rt4/sbin/rt-server: Can’t locate object method “ComponentRoots” via
package “RT::Interface::Web” at /opt/rt4/sbin/…/lib/RT/
Config.pm line 205. (/opt/rt4/sbin/…/lib/RT.pm:343)
This looks like you’re loading parts of RT twice.
Show your Apache config?
-kevin
Here is what I have tried:
-Make sure my perl dependencies are all up to date. I did this using
CPAN. A make testdeps shows everything to be in order.
-Tried disabling external plugins. I am using RT-Authen-ExternalAuth
with
an LDAP backend. No change here.
-Restoring a backup copy of /opt/rt4 version 4.0.2. I didn’t revert the
database, but it still gives the same error so I don’t think it’s
database.
Any ideas on what to do next would be greatly appreciated.
Thanks,
Jeff
I don’t know if it’s going to fix it, but the ‘Alias /rt
“/opt/rt4/share/html”’ is not needed in this setup and it’s probably
conflicting with the ‘Location /rt’ section, so i would say get rid of
it.
I don’t know if it’s going to fix it, but the ‘Alias /rt
“/opt/rt4/share/html”’ is not needed in this setup and it’s probably
conflicting with the ‘Location /rt’ section, so i would say get rid of
it.
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
Once for each virtual host, I could see apache and mod_perl being
grumpy about it.
Thanks for the replies thus far. I’ve tried them all, but I’m still
getting the same error.
I just reinstalled my entire perl installation on the box and that fixed
the problem. I’m still not sure exactly what caused the problem.On Thu, Nov 10, 2011 at 7:54 AM, Kevin Falcone falcone@bestpractical.comwrote:
On Wed, Nov 09, 2011 at 02:54:08PM -1000, Jeff Sampson wrote:
Here are the RT related config sections…
Since you do this twice:
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
Once for each virtual host, I could see apache and mod_perl being
grumpy about it.