Page 1 of 1

Upgrade failed

Posted: Fri Mar 03, 2017 2:10 pm
by bosecorp
I am getting this error when upgrade from 4 to 5


# Failed test 'use Nagios::Monitoring::Plugin::Getopt;'
# at t/Nagios-Monitoring-Plugin-Getopt-04.t line 6.
# Tried to use 'Nagios::Monitoring::Plugin::Getopt'.
# Error: Base class package "Config::Tiny" is empty.
# (Perhaps you need to 'use' the module which defines that package first,
# or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
# at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
# Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# Compilation failed in require at t/Nagios-Monitoring-Plugin-Getopt-04.t line 6.
# BEGIN failed--compilation aborted at t/Nagios-Monitoring-Plugin-Getopt-04.t line 6.
Can't use string ("usage") as a HASH ref while "strict refs" in use at /usr/share/perl5/vendor_perl/Class/Accessor.pm line 122.
# Looks like your test exited with 255 just after 1.
t/Nagios-Monitoring-Plugin-Getopt-04.t .......
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/11 subtests
t/Nagios-Monitoring-Plugin-Performance-02.t .. ok
t/Nagios-Monitoring-Plugin-Performance.t ..... ok
t/Nagios-Monitoring-Plugin-Range.t ........... ok
t/Nagios-Monitoring-Plugin-Threshold.t ....... ok

Test Summary Report
-------------------
t/check_stuff.t (Wstat: 3328 Tests: 14 Failed: 13)
Failed tests: 1-10, 12-14
Non-zero exit status: 13
t/Nagios-Monitoring-Plugin-04.t (Wstat: 512 Tests: 4 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 30 tests but ran 4.
t/Nagios-Monitoring-Plugin-Functions-01.t (Wstat: 512 Tests: 113 Failed: 2)
Failed tests: Failed 7/16 test programs. 19/837 subtests failed.
6-7
Non-zero exit status: 2
t/Nagios-Monitoring-Plugin-Getopt-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 76 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 14 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-03.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
t/Nagios-Monitoring-Plugin-Getopt-04.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 11 tests but ran 1.
Files=16, Tests=837, 3 wallclock secs ( 0.23 usr 0.05 sys + 2.66 cusr 0.36 csys = 3.30 CPU)
Result: FAIL
make: *** [test_dynamic] Error 255

Re: Upgrade failed

Posted: Fri Mar 03, 2017 2:14 pm
by dwhitfield
You are going to have to be more specific. Is this XI 2014RX.Y going to XI 5.x.y? If not, then what?

Could you please send us the complete upgrade.log, which will be in the same directory as the upgrade script.

Re: Upgrade failed

Posted: Fri Mar 03, 2017 2:53 pm
by bosecorp
it's from 2012R1.0 to the latest version

Re: Upgrade failed

Posted: Fri Mar 03, 2017 3:27 pm
by avandemore
That type of upgrade from such an old system isn't supported. You'd be better off treating this as a Migration from Core to XI:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf

This will ensure you have an optimal setup for a new Nagios XI install. There may be a few hangups along the way, if you run into issues please post them here.

Re: Upgrade failed

Posted: Sun Mar 05, 2017 8:49 am
by bosecorp
I was able to figure out. the extra plug ins were causing problems. I remove that from the script and worked

close the ticket please

Re: Upgrade failed

Posted: Mon Mar 06, 2017 10:46 am
by cdienger
Thanks. We'll close this.