Upgrade failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Upgrade failed

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Upgrade failed

Post 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.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Upgrade failed

Post by bosecorp »

it's from 2012R1.0 to the latest version
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Upgrade failed

Post 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.
Previous Nagios employee
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Upgrade failed

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Upgrade failed

Post by cdienger »

Thanks. We'll close this.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked