Attempting to upgrade from 4.0.19 to 4.2.6

Hello all -

I am currently attempting to upgrade from 4.0.19 to 4.2.6 and am seeing the
following:

Processing 4.1.0
[17123] [Thu Jul 24 14:52:41 2014] [warning]: The default stylesheet
(aileron) does not exist in this instance of RT. Defaulting to rudder.
(/tmp/rt-4.2.6/sbin/…/lib/RT/Config.pm:237)
[17123] [Thu Jul 24 14:52:41 2014] [warning]: Configuration option
AutoCreate is deprecated, and will be removed in RT 4.4. You should use
UserAutocreateDefaultsOnLogin instead. (/tmp/rt-4.2.6/sbin/…/lib/RT.pm:956)
[17123] [Thu Jul 24 14:52:41 2014] [critical]: Can’t use an undefined value
as a HASH reference at /tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line 239.
(/tmp/rt-4.2.6/sbin/…/lib/RT.pm:394)
Can’t use an undefined value as a HASH reference at
/tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line 239.
make: *** [upgrade-database] Error 255

Any ideas that can get me over this hump?

Thanks!

Max
Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.edu

Nevermind. I missed the make upgrade step before the make
upgrade-database
.

I am, however, having another issue. After the upgrades successfully
completed I went to restart my web server and got the following:

root@help:/tmp/rt-4.2.6# /etc/init.d/apache2 restart
Syntax error on line 44 of /etc/apache2/sites-enabled/000-default:
Can’t locate Symbol/Global/Name.pm in @INC (@INC contains:
/opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl . /etc/apache2) at
/opt/rt4/sbin/…/lib/RT/Config.pm line 56.\nBEGIN failed–compilation
aborted at /opt/rt4/sbin/…/lib/RT/Config.pm line 56.\nCompilation failed
in require at /opt/rt4/sbin/…/lib/RT.pm line 157.\n
Action ‘configtest’ failed.
The Apache error log may have more information.
…fail!

Any ideas on this?

Max

Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.eduOn Thu, Jul 24, 2014 at 9:55 AM, Max McGrath mmcgrath@carthage.edu wrote:

Hello all -

I am currently attempting to upgrade from 4.0.19 to 4.2.6 and am seeing
the following:

Processing 4.1.0
[17123] [Thu Jul 24 14:52:41 2014] [warning]: The default stylesheet
(aileron) does not exist in this instance of RT. Defaulting to rudder.
(/tmp/rt-4.2.6/sbin/…/lib/RT/Config.pm:237)
[17123] [Thu Jul 24 14:52:41 2014] [warning]: Configuration option
AutoCreate is deprecated, and will be removed in RT 4.4. You should use
UserAutocreateDefaultsOnLogin instead. (/tmp/rt-4.2.6/sbin/…/lib/RT.pm:956)
[17123] [Thu Jul 24 14:52:41 2014] [critical]: Can’t use an undefined
value as a HASH reference at /tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line
239. (/tmp/rt-4.2.6/sbin/…/lib/RT.pm:394)
Can’t use an undefined value as a HASH reference at
/tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line 239.
make: *** [upgrade-database] Error 255

Any ideas that can get me over this hump?

Thanks!

Max

Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.edu

[17123] [Thu Jul 24 14:52:41 2014] [warning]: The default stylesheet (aileron)
does not exist in this instance of RT. Defaulting to rudder. (/tmp/rt-4.2.6/
sbin/…/lib/RT/Config.pm:237)

This makes me question your config and installation, since aileron is
included in 4.2.6

[17123] [Thu Jul 24 14:52:41 2014] [warning]: Configuration option AutoCreate
is deprecated, and will be removed in RT 4.4. You should use
UserAutocreateDefaultsOnLogin instead. (/tmp/rt-4.2.6/sbin/…/lib/RT.pm:956)

This should be straightforward.

[17123] [Thu Jul 24 14:52:41 2014] [critical]: Can’t use an undefined value as
a HASH reference at /tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line 239. (/tmp/
rt-4.2.6/sbin/…/lib/RT.pm:394)
Can’t use an undefined value as a HASH reference at /tmp/rt-4.2.6/sbin/…/lib/
RT/Crypt.pm line 239.
make: *** [upgrade-database] Error 255

This implies you were using the gpg framework and your old config is
interfering badly. Since this is an upgrade, likely your %GnuPG.

Show your config if the error isn’t obvious.

-kevin

And here is lines 39 - 47 of 000-default:

38
39 SetHandler modperl
40 PerlResponseHandler Plack::Handler::Apache2
41 PerlSetVar psgi_app /opt/rt4/sbin/rt-server
42
43
44 use Plack::Handler::Apache2;
45 Plack::Handler::Apache2->preload(“/opt/rt4/sbin/rt-server”);
46
47

Max

Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.eduOn Thu, Jul 24, 2014 at 10:19 AM, Max McGrath mmcgrath@carthage.edu wrote:

Nevermind. I missed the make upgrade step before the make
upgrade-database
.

I am, however, having another issue. After the upgrades successfully
completed I went to restart my web server and got the following:

root@help:/tmp/rt-4.2.6# /etc/init.d/apache2 restart
Syntax error on line 44 of /etc/apache2/sites-enabled/000-default:
Can’t locate Symbol/Global/Name.pm in @INC (@INC contains:
/opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl . /etc/apache2) at
/opt/rt4/sbin/…/lib/RT/Config.pm line 56.\nBEGIN failed–compilation
aborted at /opt/rt4/sbin/…/lib/RT/Config.pm line 56.\nCompilation failed
in require at /opt/rt4/sbin/…/lib/RT.pm line 157.\n
Action ‘configtest’ failed.
The Apache error log may have more information.
…fail!

Any ideas on this?

Max


Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.edu

On Thu, Jul 24, 2014 at 9:55 AM, Max McGrath mmcgrath@carthage.edu wrote:

Hello all -

I am currently attempting to upgrade from 4.0.19 to 4.2.6 and am seeing
the following:

Processing 4.1.0
[17123] [Thu Jul 24 14:52:41 2014] [warning]: The default stylesheet
(aileron) does not exist in this instance of RT. Defaulting to rudder.
(/tmp/rt-4.2.6/sbin/…/lib/RT/Config.pm:237)
[17123] [Thu Jul 24 14:52:41 2014] [warning]: Configuration option
AutoCreate is deprecated, and will be removed in RT 4.4. You should use
UserAutocreateDefaultsOnLogin instead. (/tmp/rt-4.2.6/sbin/…/lib/RT.pm:956)
[17123] [Thu Jul 24 14:52:41 2014] [critical]: Can’t use an undefined
value as a HASH reference at /tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line
239. (/tmp/rt-4.2.6/sbin/…/lib/RT.pm:394)
Can’t use an undefined value as a HASH reference at
/tmp/rt-4.2.6/sbin/…/lib/RT/Crypt.pm line 239.
make: *** [upgrade-database] Error 255

Any ideas that can get me over this hump?

Thanks!

Max

Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.edu

Can’t locate Symbol/Global/Name.pm in @INC (@INC contains: /opt/rt4/sbin/…/

Symbol::Global::Name is required for RT.
Have you built your own perl? Have you recompiled mod_perl to use it?

39 SetHandler modperl
40 PerlResponseHandler Plack::Handler::Apache2
41 PerlSetVar psgi_app /opt/rt4/sbin/rt-server
42
43
44 use Plack::Handler::Apache2;
45 Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
46
47

-kevin

Kevin -

Thanks for the response. I wouldn’t know how to do either of those things!
So no, I haven’t. :slight_smile:

According to CPAN it is installed: Symbol::Global::Name is up to date (0.05)

I guess I should figure out how to recompile mod_perl. Is that fairly
simple?

Thanks!

Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgrath@carthage.eduOn Thu, Jul 24, 2014 at 10:28 AM, Kevin Falcone falcone@bestpractical.com wrote:

On Thu, Jul 24, 2014 at 10:19:03AM -0500, Max McGrath wrote:

Can’t locate Symbol/Global/Name.pm in @INC (@INC contains:
/opt/rt4/sbin/…/

Symbol::Global::Name is required for RT.
Have you built your own perl? Have you recompiled mod_perl to use it?

39 SetHandler modperl
40 PerlResponseHandler Plack::Handler::Apache2
41 PerlSetVar psgi_app /opt/rt4/sbin/rt-server
42
43
44 use Plack::Handler::Apache2;
45 Plack::Handler::Apache2->preload(“/opt/rt4/sbin/rt-server”);
46
47

-kevin


RT Training - Boston, September 9-10
Training — Best Practical Solutions

Thanks for the response. I wouldn’t know how to do either of those things! So
no, I haven’t. :slight_smile:

According to CPAN it is installed: Symbol::Global::Name is up to date (0.05)

I guess I should figure out how to recompile mod_perl. Is that fairly simple?

If you’ve not installed a custom perl, there’s no reason to recompile
mod_perl, which is decidedly non-trivial and often provided by your OS
so compiling your own would be a nightmare.

If you’re certain that the perl you used to build and install RT is
the same perl provided by mod_perl, go ensure that permissions are
correct for the web user to see Symbol::Global::Name.

You may also consider using one of the fastcgi deployment options.
We’ve found them to be significantly less awful than mod_perl in most
production environments.

-kevin