Page 2 of 3

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

Posted: Thu Mar 31, 2016 9:08 am
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

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

Posted: Thu Mar 31, 2016 9:24 am
by Frédéric GRANAT
Here it is :

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

Posted: Thu Mar 31, 2016 2:51 pm
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.

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

Posted: Fri Apr 01, 2016 1:41 am
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


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

Posted: Fri Apr 01, 2016 8:26 am
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

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

Posted: Fri Apr 01, 2016 9:17 am
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
-------------


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

Posted: Fri Apr 01, 2016 9:51 am
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

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

Posted: Wed Apr 06, 2016 4:06 pm
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.

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

Posted: Mon Apr 11, 2016 3:27 am
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.

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

Posted: Mon Apr 11, 2016 11:23 am
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.