Upgrade to latest version from Nagios XI 2014R2.0 fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by tgriep »

Was the DAG repo disabled when you tried to run the upgrade again?
We need to figure out which repo if causing the conflict, can you run the following and upload the /tmp/yum.txt file?

Code: Select all

yum repolist >/tmp/yum.txt
yum list installed >>/tmp/yum.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by Frédéric GRANAT »

Here it is :
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by tgriep »

Try running this to see if we can get that package installed using this command using this format of the command.

Code: Select all

yum install perl-Test-Simple -y
Let us know how this works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by Frédéric GRANAT »

No it doesn't work :

Code: Select all


[root@nagiosxi nagiosxi]# yum install perl-Test-Simple -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.ovh.net
 * epel: fr2.rpmfind.net
 * extras: miroir.univ-paris13.fr
 * remi: remi.schlundtech.de
 * rpmforge: mirror.nl.leaseweb.net
 * updates: centos.mirrors.ovh.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Test-Simple.noarch 0:0.98-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================
 Package                                   Arch                            Version                                  Repository                    Size
=======================================================================================================================================================
Installing:
 perl-Test-Simple                          noarch                          0.98-1.el5.rf                            dag                          122 k

Transaction Summary
=======================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total size: 122 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386

Error Summary

User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by tgriep »

Please run the following and post the output.

Code: Select all

yum provides perl
yum install --disablerepo=dag perl-Test-Simple -y
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by Frédéric GRANAT »

Here it is :

Code: Select all

[root@nagiosxi nagiosxi]# yum provides perl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: miroir.univ-paris13.fr
 * epel: mirrors.ircam.fr
 * extras: miroir.univ-paris13.fr
 * remi: remi.schlundtech.de
 * rpmforge: mirror.nl.leaseweb.net
 * updates: centos.mirrors.ovh.net
4:perl-5.8.8-42.el5.i386 : The Perl programming language
Repo        : base
Matched from:



4:perl-5.8.8-43.el5_11.i386 : The Perl programming language
Repo        : updates
Matched from:



4:perl-5.8.8-43.el5_11.i386 : The Perl programming language
Repo        : installed
Matched from:
Other       : Provides-match: perl


[root@nagiosxi nagiosxi]# yum install --disablerepo=dag perl-Test-Simple -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: miroir.univ-paris13.fr
 * epel: mirrors.ircam.fr
 * extras: miroir.univ-paris13.fr
 * remi: remi.schlundtech.de
 * rpmforge: mirror.nl.leaseweb.net
 * updates: centos.mirrors.ovh.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Test-Simple.noarch 0:0.98-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================
 Package                                  Arch                           Version                                Repository                        Size
=======================================================================================================================================================
Installing:
 perl-Test-Simple                         noarch                         0.98-1.el5.rf                          rpmforge                         122 k

Transaction Summary
=======================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total size: 122 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386
  file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.i386

Error Summary
-------------

User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by tgriep »

It looks like the conflict is with both the dag amd rpmforge repo. Try this to see if it will install.

Code: Select all

yum install --disablerepo=dag,rpmforge perl-Test-Simple -y
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by tgriep »

I have a new procedure to following to get this to work.

Run the following to install the Perl Test Simple module

Code: Select all

cpan -i Test::Simple
Then edit the upgrade file and change this line from

Code: Select all

yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units perl-Number-Format
to

Code: Select all

yum install --disablerepo=rpmforge -y 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units perl-Number-Format
Save the file and run the upgrade and report back if it works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by Frédéric GRANAT »

Hi,
Thanks : I ran the upgrade with the changes and now I've got a new error.
Please find attached the upgrade log.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to latest version from Nagios XI 2014R2.0 fails

Post by tgriep »

If the MYSQL server was updated on that server, the databases need to be updated to match that.
If you can, make a backup of the server and them run the following to update the mysql databases.

Code: Select all

mysql_upgrade -u root -pnagiosxi
service mysqld restart
If the MYSQL database upgrade works, try the upgrade again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked