Page 1 of 2
5.4.13 to 5.5.1 upgrade dependency issue
Posted: Thu Jul 26, 2018 10:48 pm
by rajasegar
I am testing the upgrade of 5.4.13 to 5.5.1 and encountered the following
Code: Select all
[nagios@nagiosprodcol2 nagiosxi]$ sudo ./upgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.17.19.226 for ServerName
[ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5413
Loaded plugins: product-id, search-disabled-repos, security, subscription-
: manager
Setting up Update Process
No Packages marked for Update
Loaded plugins: product-id, search-disabled-repos, security, subscription-
: manager
Setting up Install Process
Package perl-Test-Simple-0.92-144.el6.x86_64 already installed and latest version
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
Package perl-Config-Tiny-2.12-7.1.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be updated
---> Package perl-Class-Accessor.noarch 0:0.34-12.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Class-Accessor-0.34-12.el7.noarch
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be updated
---> Package perl-Math-Calc-Units.noarch 0:1.07-9.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Math-Calc-Units-1.07-9.el7.noarch
---> Package perl-Number-Format.noarch 0:1.73-3.el6 will be updated
---> Package perl-Number-Format.noarch 0:1.73-14.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Number-Format-1.73-14.el7.noarch
--> Finished Dependency Resolution
Error: Package: perl-Class-Accessor-0.34-12.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Math-Calc-Units-1.07-9.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Number-Format-1.73-14.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
**********************************************************************
Dependency resolving failed due to missing dependencies.
Some repositories on your system are disabled, but yum can enable them
and search for missing dependencies. This will require downloading
metadata for disabled repositories and may take some time and traffic.
**********************************************************************
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.34-12.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Class-Accessor-0.34-12.el7.noarch
---> Package perl-Math-Calc-Units.noarch 0:1.07-9.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Math-Calc-Units-1.07-9.el7.noarch
---> Package perl-Number-Format.noarch 0:1.73-14.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Number-Format-1.73-14.el7.noarch
--> Finished Dependency Resolution
Error: Package: perl-Class-Accessor-0.34-12.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Math-Calc-Units-1.07-9.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Number-Format-1.73-14.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[nagios@nagiosprodcol2 nagiosxi]$
[nagios@nagiosprodcol2 nagiosxi]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)
profile (2).zip
upgrade.log
Please advice how to resolve this.
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Fri Jul 27, 2018 9:08 am
by mcapra
I notice your profile mentioned running Red Hat Enterprise Linux Server release 6.9 (Santiago), but many of those packages you are attempting to install appear to be tagged as el7. Are you running RHEL 6 or RHEL 7 on this machine?
If this is an offline installation/update, did you perhaps download the wrong tarball?
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Fri Jul 27, 2018 11:29 am
by scottwilkerson
I agree, did someone change the repository? possible epel?
What is the output of the following
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Sun Jul 29, 2018 7:09 pm
by rajasegar
scottwilkerson wrote:I agree, did someone change the repository? possible epel?
What is the output of the following
Code: Select all
[nagios@nagiosprodcol2 ~]$ sudo yum provides perl-Class-Accessor
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
download.mono-project.com_repo_centos_ | 2.9 kB 00:00
epel/metalink | 7.2 kB 00:00
epel | 3.2 kB 00:00
epel/primary | 3.5 MB 00:05
epel 12625/12625
nagios-base | 1.5 kB 00:00
nagios-base/primary | 17 kB 00:00
nagios-base 165/165
nagiosxi-deps | 1.5 kB 00:00
nagiosxi-deps/primary | 10 kB 00:00
nagiosxi-deps 33/33
rhel-6-server-optional-debug-rpms | 3.3 kB 00:00
rhel-6-server-optional-rpms | 3.5 kB 00:00
rhel-6-server-rpms | 3.5 kB 00:00
rhel-6-server-supplementary-debuginfo | 3.2 kB 00:00
rhel-6-server-supplementary-rpms | 3.5 kB 00:00
rhel-server-dts-6-rpms | 3.4 kB 00:00
rhel-server-dts2-6-rpms | 3.2 kB 00:00
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
rpmforge | 1.9 kB 00:00
perl-Class-Accessor-0.34-12.el7.noarch : Automated accessor generation
Repo : epel
Matched from:
perl-Class-Accessor-0.31-6.1.el6.noarch : Automated accessor generation
Repo : rhel-6-server-optional-rpms
Matched from:
perl-Class-Accessor-0.31-6.1.el6.noarch : Automated accessor generation
Repo : installed
Matched from:
Other : Provides-match: perl-Class-Accessor
[nagios@nagiosprodcol2 ~]$
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Sun Jul 29, 2018 7:10 pm
by rajasegar
mcapra wrote:I notice your profile mentioned running Red Hat Enterprise Linux Server release 6.9 (Santiago), but many of those packages you are attempting to install appear to be tagged as el7. Are you running RHEL 6 or RHEL 7 on this machine?
If this is an offline installation/update, did you perhaps download the wrong tarball?
RHEL 6. Looks like someone used the RHEL7 tarball. How do you go about fixing this?
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Mon Jul 30, 2018 7:21 am
by scottwilkerson
Looks like the problem is in the rpmforge repo which is not required in nagios any longer.
Edit /etc/yum.repos.d/rpmforge.repo and disable the repo
the the upgrade should go through
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Mon Jul 30, 2018 9:01 pm
by rajasegar
scottwilkerson wrote:Looks like the problem is in the rpmforge repo which is not required in nagios any longer.
Edit /etc/yum.repos.d/rpmforge.repo and disable the repo
the the upgrade should go through
Still same problem.
Code: Select all
[nagios@nagiosprodcol2 nagiosxi]$ sudo ./upgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.17.19.226 for ServerName
[ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5413
Loaded plugins: product-id, security, subscription-manager
Setting up Update Process
No Packages marked for Update
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
Package perl-Test-Simple-0.92-144.el6.x86_64 already installed and latest version
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
Package perl-Config-Tiny-2.12-7.1.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be updated
---> Package perl-Class-Accessor.noarch 0:0.34-12.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Class-Accessor-0.34-12.el7.noarch
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be updated
---> Package perl-Math-Calc-Units.noarch 0:1.07-9.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Math-Calc-Units-1.07-9.el7.noarch
---> Package perl-Number-Format.noarch 0:1.73-3.el6 will be updated
---> Package perl-Number-Format.noarch 0:1.73-14.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Number-Format-1.73-14.el7.noarch
--> Finished Dependency Resolution
Error: Package: perl-Class-Accessor-0.34-12.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Math-Calc-Units-1.07-9.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Number-Format-1.73-14.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[nagios@nagiosprodcol2 nagiosxi]$
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Tue Jul 31, 2018 7:21 am
by scottwilkerson
lets run the following and report the results
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Tue Jul 31, 2018 7:05 pm
by rajasegar
scottwilkerson wrote:lets run the following and report the results
Here you go
Code: Select all
[nagios@nagiosprodcol2 ~]$ sudo yum info perl-Class-Accessor
Loaded plugins: product-id, security, subscription-manager
download.mono-project.com_repo_centos_ | 2.9 kB 00:00
epel/metalink | 5.8 kB 00:00
epel | 3.2 kB 00:00
epel/primary | 3.6 MB 00:18
epel 12640/12640
nagios-base | 1.5 kB 00:00
nagiosxi-deps | 1.5 kB 00:00
Installed Packages
Name : perl-Class-Accessor
Arch : noarch
Version : 0.31
Release : 6.1.el6
Size : 38 k
Repo : installed
From repo : rhel-6-server-optional-rpms
Summary : Automated accessor generation
URL : http://search.cpan.org/dist/Class-Accessor/
License : GPL+ or Artistic
Description : Automated accessor generation.
Available Packages
Name : perl-Class-Accessor
Arch : noarch
Version : 0.34
Release : 12.el7
Size : 29 k
Repo : epel
Summary : Automated accessor generation
URL : http://search.cpan.org/dist/Class-Accessor/
License : GPL+ or Artistic
Description : This module automagically generates accessors/mutators for your class.
[nagios@nagiosprodcol2 ~]$
Code: Select all
[nagios@nagiosprodcol2 yum]$ sudo yum provides perl-Class-Accessor
Loaded plugins: product-id, security, subscription-manager
perl-Class-Accessor-0.34-12.el7.noarch : Automated accessor generation
Repo : epel
Matched from:
perl-Class-Accessor-0.31-6.1.el6.noarch : Automated accessor generation
Repo : rhel-6-server-optional-rpms
Matched from:
perl-Class-Accessor-0.31-6.1.el6.noarch : Automated accessor generation
Repo : installed
Matched from:
Other : Provides-match: perl-Class-Accessor
Re: 5.4.13 to 5.5.1 upgrade dependency issue
Posted: Wed Aug 01, 2018 12:51 am
by rajasegar
Dependency issue resolved.
Remove all epel repos with EL7 in the /etc/yum/repos.d directory.
Code: Select all
[nagios@nagiosprodcol2 nagiosxi]$ sudo ./upgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.17 .19.226 for ServerName
[ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5413
Loaded plugins: product-id, security, subscription-manager
Setting up Update Process
No Packages marked for Update
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
Package perl-Test-Simple-0.92-144.el6.x86_64 already installed and latest version
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
Package perl-Number-Format-1.73-3.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be installed
---> Package perl-Config-Tiny.noarch 0:2.12-7.1.el6 will be installed
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
perl-Class-Accessor noarch 0.31-6.1.el6 rhel-6-server-optional-rpms 26 k
perl-Config-Tiny noarch 2.12-7.1.el6 rhel-6-server-optional-rpms 23 k
perl-Math-Calc-Units noarch 1.07-6.el6 nagiosxi-deps 41 k
Transaction Summary
================================================================================
Install 3 Package(s)
Total download size: 90 k
Installed size: 166 k
Downloading Packages:
Now I have new issue network not reachable, let me try a few times before posting.
Code: Select all
Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
Updating XI config wizards...
INSTALL: Installing/updating XI wizards...
Backing up existing wizards to /tmp/xiwizards_backup...
Installing 'wizards/amazon_ec2.zip'
TMPNAME: 22sfg
Archive: /tmp/raja/nagiosxi/subcomponents/xiwizards/wizards/amazon_ec2.zip
d3df88b43b81b04bcdc28c6fac67676d15aafd3a
creating: amazon_ec2/
inflating: amazon_ec2/CHANGES.txt
inflating: amazon_ec2/amazon_ec2.inc.php
inflating: amazon_ec2/config.xml
inflating: amazon_ec2/install.sh
creating: amazon_ec2/logos/
inflating: amazon_ec2/logos/ec2.png
creating: amazon_ec2/plugins/
inflating: amazon_ec2/plugins/check_ec2.py
creating: amazon_ec2/templates/
inflating: amazon_ec2/templates/ec2.cfg
amazon_ec2
WIZARD NAME: amazon_ec2
CMD=grep register_configwizard /usr/local/nagiosxi/tmp/22sfg/amazon_ec2/amazon_ec2.inc.php | wc -l
1
OUT=1
Wizard looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/22sfg/amazon_ec2 /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/22sfg
PROCESSING CONFIG FILE /usr/local/nagiosxi/html/includes/configwizards/amazon_ec2/config.xml
LOGO:
LOGO ATTRIBUTE filename => ec2.png
COPYING LOGO: /usr/local/nagiosxi/html/includes/configwizards/amazon_ec2/logos/ec2.png
TO: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/ec2.png
PLUGIN:
PLUGIN ATTRIBUTE filename => check_ec2.py
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/amazon_ec2/plugins/check_ec2.py
TO: /usr/local/nagios/libexec/check_ec2.py
TEMPLATE:
TEMPLATE ATTRIBUTE filename => ec2.cfg
COPYING TEMPLATE: /usr/local/nagiosxi/html/includes/configwizards/amazon_ec2/templates/ec2.cfg
TO: /usr/local/nagios/etc/import/configwizard-ec2.cfg
SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/amazon_ec2/install.sh'...
RUNNING INSTALL SCRIPT...
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named boto3
Collecting boto3
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolE rror('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolE rror('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolE rror('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/