We're trying to do a two-step shuffle upgrade for a client running xi 5.9.1 on CentOS 7. They want to move to Ubuntu 24.04 2024R1.3. So we put an Ubuntu 22.04 box in the middle so we could migrate xi 5.9.1 to the U22.04 box, upgrade, then migrate to the U24.04 box.
Except the 5.9.1 install on Ubuntu 22.04 isn't going as planned. It fails with CPAN installs. The full install.log is available via termbin.com at https://termbin.com/jiz5
The pertinent parts from the end are below. Note that Class::Accessor is not found and then it gets complained about the entire rest of the time. I assume this is an "old code doesn't work anymore" issue, but we did a "cpan install Class::Accessor" from the command line and it installed. Re-ran the xi install and it looks like it works. Not sure why it never installed the Class::Accessor in the first place.
Code: Select all
make[1]: Leaving directory '/etc/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
Making all in t
make[1]: Entering directory '/etc/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/etc/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Entering directory '/etc/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/etc/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
Warning: prerequisite Class::Accessor 0 not found.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Nagios::Monitoring::Plugin
Writing MYMETA.yml and MYMETA.json
.
.
.
# Failed test 'use Nagios::Monitoring::Plugin::Threshold;'
# at t/Nagios-Monitoring-Plugin-Threshold.t line 5.
# Tried to use 'Nagios::Monitoring::Plugin::Threshold'.
# Error: Base class package "Class::Accessor::Fast" is empty.
# (Perhaps you need to 'use' the module which defines that package first,
# or make that module available in @INC (@INC contains: /etc/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /etc/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl .).
# at /etc/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Threshold.pm line 8.
# BEGIN failed--compilation aborted at /etc/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Threshold.pm line 8.
# Compilation failed in require at t/Nagios-Monitoring-Plugin-Threshold.t line 5.
# BEGIN failed--compilation aborted at t/Nagios-Monitoring-Plugin-Threshold.t line 5.
Can't locate object method "set_thresholds" via package "Nagios::Monitoring::Plugin::Threshold" at t/Nagios-Monitoring-Plugin-Threshold.t line 18.
# Looks like your test exited with 255 just after 2.
t/Nagios-Monitoring-Plugin-Threshold.t .......
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 92/93 subtests
Test Summary Report
-------------------
t/check_stuff.t (Wstat: 3328 Tests: 14 Failed: 13)
Failed tests: 1-8, 10-14
Non-zero exit status: 13
.
.
.
t/Nagios-Monitoring-Plugin-Threshold.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 93 tests but ran 2.
Files=16, Tests=190, 1 wallclock secs ( 0.03 usr 0.02 sys + 0.30 cusr 0.32 csys = 0.67 CPU)
Result: FAIL
Failed 14/16 test programs. 37/190 subtests failed.
make: *** [Makefile:861: test_dynamic] Error 255
ERROR: Subcomponent 'extraplugins' installation failed - exiting.
Subcomponents installation failed - exiting