Upgrade to 5.2.1 failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Upgrade to 5.2.1 failed

Post by WillemDH »

Hello,

I'm trying to update my test system on R1.0 to 5.2.1, but it seems to fail some Perl tests.

Code: Select all

                       
#   Failed test 'use Nagios::Monitoring::Plugin::Functions;'                                                        
#   at t/Nagios-Monitoring-Plugin-Threshold.t line 6.                                                               
#     Tried to use 'Nagios::Monitoring::Plugin::Functions'.                                                         
#     Error:  Attempt to reload Nagios/Monitoring/Plugin/Functions.pm aborted.                                      
# Compilation failed in require at (eval 9) line 2.                                                                 
# BEGIN failed--compilation aborted at (eval 9) line 2.                                                             
Global symbol "%STATUS_TEXT" requires explicit package name at t/Nagios-Monitoring-Plugin-Threshold.t line 51.      
BEGIN not safe after errors--compilation aborted at t/Nagios-Monitoring-Plugin-Threshold.t line 57.                 
# Looks like you planned 93 tests but ran 2.                                                                        
# Looks like you failed 2 tests of 2 run.                                                                           
# Looks like your test exited with 255 just after 2.                                                                
t/Nagios-Monitoring-Plugin-Threshold.t .......                                                                      
Dubious, test returned 255 (wstat 65280, 0xff00)                                                                    
Failed 93/93 subtests                                                                                               
                                                                                                                    
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-01.t            (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 15 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-02.t            (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 103 tests but ran 1.                                                         
t/Nagios-Monitoring-Plugin-03.t            (Wstat: 65280 Tests: 2 Failed: 2)                                        
  Failed tests:  1-2                                                                                                
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 61 tests but ran 2.                                                          
t/Nagios-Monitoring-Plugin-04.t            (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 30 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Functions-01.t  (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 113 tests but ran 1.                                                         
t/Nagios-Monitoring-Plugin-Functions-02.t  (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 37 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Functions-03.t  (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 8 tests but ran 1.                                                           
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.                                                          
t/Nagios-Monitoring-Plugin-Performance-02.t (Wstat: 1024 Tests: 4 Failed: 4)                                        
  Failed tests:  1-4                                                                                                
  Non-zero exit status: 4                                                                                           
  Parse errors: Bad plan.  You planned 3 tests but ran 4.                                                           
t/Nagios-Monitoring-Plugin-Performance.t   (Wstat: 512 Tests: 0 Failed: 0)                                          
  Non-zero exit status: 2                                                                                           
  Parse errors: No plan found in TAP output                                                                         
t/Nagios-Monitoring-Plugin-Range.t         (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 151 tests but ran 1.                                                         
t/Nagios-Monitoring-Plugin-Threshold.t     (Wstat: 65280 Tests: 2 Failed: 2)                                        
  Failed tests:  1-2                                                                                                
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 93 tests but ran 2.                                                          
Files=16, Tests=33,  1 wallclock secs ( 0.08 usr  0.03 sys +  0.48 cusr  0.06 csys =  0.65 CPU)                     
Result: FAIL                                                                                                        
Failed 16/16 test programs. 32/33 subtests failed.                                                                  
make: *** [test_dynamic] Error 255                                                                                  
Any tip how to make this work?

Second run:
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-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 15 tests but ran 1.
t/Nagios-Monitoring-Plugin-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 103 tests but ran 1.
t/Nagios-Monitoring-Plugin-03.t (Wstat: 65280 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 61 tests but ran 2.
t/Nagios-Monitoring-Plugin-04.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/Nagios-Monitoring-Plugin-Functions-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 113 tests but ran 1.
t/Nagios-Monitoring-Plugin-Functions-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 37 tests but ran 1.
t/Nagios-Monitoring-Plugin-Functions-03.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 1.
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.
t/Nagios-Monitoring-Plugin-Performance-02.t (Wstat: 1024 Tests: 4 Failed: 4)
Failed tests: 1-4
Non-zero exit status: 4
Parse errors: Bad plan. You planned 3 tests but ran 4.
t/Nagios-Monitoring-Plugin-Performance.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/Nagios-Monitoring-Plugin-Range.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 151 tests but ran 1.
t/Nagios-Monitoring-Plugin-Threshold.t (Wstat: 65280 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 93 tests but ran 2.
Files=16, Tests=33, 0 wallclock secs ( 0.08 usr 0.02 sys + 0.49 cusr 0.05 csys = 0.64 CPU)
Result: FAIL
make: *** [test_dynamic] Error 255
Nagios XI 5.8.1
https://outsideit.net
Heiko
Posts: 9
Joined: Thu Mar 28, 2013 4:35 am
Location: Amberg, Germany

Re: Upgrade to 5.2.1 failed

Post by Heiko »

I have exact the same issue..
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Upgrade to 5.2.1 failed

Post by hsmith »

There was a bug in the upgrade script, which we should be fixing today. A work around for now is running this from the command line as the root user:

Code: Select all

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Upgrade to 5.2.1 failed

Post by WillemDH »

Holden,

I did as you proposed and got:

Code: Select all

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-C onfig-Tiny perl-Math-Calc-Units
Loaded plugins: fastestmirror
http://linux.dropbox.com/fedora/7/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: epel.check-update.co.uk
 * extras: mirrors.linode.com
 * rpmforge: www.mirrorservice.org
 * updates: mirrors.linode.com
Package perl-Test-Simple-0.98-243.el7.noarch already installed and latest version
Package perl-Class-Accessor-0.34-12.el7.noarch already installed and latest version
Package perl-Params-Validate-1.08-4.el7.x86_64 already installed and latest version
Package perl-Config-Tiny-2.14-7.el7.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-9.el7.noarch already installed and latest version
Nothing to do
Then tried the upgrade script again, but it failed again. (as expected seeing that the Perl pakages seem already installed.
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Upgrade to 5.2.1 failed

Post by hsmith »

This is interesting. This isn't CentOS 5 by chance is it?
Former Nagios Employee.
me.
Heiko
Posts: 9
Joined: Thu Mar 28, 2013 4:35 am
Location: Amberg, Germany

Re: Upgrade to 5.2.1 failed

Post by Heiko »

I got the issue on CentOS 6.7 and manual Nagios upgrade from version 2014R2.7..
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Upgrade to 5.2.1 failed

Post by hsmith »

Heiko, did you run the yum command I posted?
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Upgrade to 5.2.1 failed

Post by WillemDH »

For me it's CentOS 7.
Nagios XI 5.8.1
https://outsideit.net
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Upgrade to 5.2.1 failed

Post by jomann »

Can you please upload the entire upgrade log?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Upgrade to 5.2.1 failed

Post by WillemDH »

Hmm ok, can you pm me your email address then, because it's too long to post here.
Nagios XI 5.8.1
https://outsideit.net
Locked