Page 2 of 2

Re: 5.4.13 to 5.5.2 upgrade dependency issue

Posted: Wed Aug 01, 2018 2:25 am
by rajasegar
This is 5.52 upgrade now.

It is getting stuck on this step for ages at boto3 and pymongo. Same error.
It repeats a few times.

Code: Select all

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
ImportError: No module named boto3
Collecting boto3
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('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/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('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/
  Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3
INSTALL SCRIPT FINISHED. RESULT='1'
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/configwizards/amazon_ec2


Done!
Installing 'wizards/amazon_s3.zip'
TMPNAME: iJIiN
Archive:  /tmp/raja/nagiosxi/subcomponents/xiwizards/wizards/amazon_s3.zip
f10566ec6d5f77ea7846812311c879821273d74b
   creating: amazon_s3/
  inflating: amazon_s3/CHANGES.txt
  inflating: amazon_s3/amazon_s3.inc.php
  inflating: amazon_s3/config.xml
  inflating: amazon_s3/install.sh
   creating: amazon_s3/logos/
  inflating: amazon_s3/logos/s3.png
   creating: amazon_s3/plugins/
  inflating: amazon_s3/plugins/check_s3.py
  inflating: amazon_s3/s3.ajax.php
   creating: amazon_s3/templates/
  inflating: amazon_s3/templates/s3.cfg
amazon_s3
WIZARD NAME: amazon_s3
CMD=grep register_configwizard /usr/local/nagiosxi/tmp/iJIiN/amazon_s3/amazon_s3.inc.php | wc -l
1
OUT=1
Wizard looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/iJIiN/amazon_s3 /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/iJIiN
PROCESSING CONFIG FILE /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/config.xml
LOGO:
LOGO ATTRIBUTE filename => s3.png
COPYING LOGO: /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/logos/s3.png
          TO: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/s3.png
PLUGIN:
PLUGIN ATTRIBUTE filename => check_s3.py
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/plugins/check_s3.py
             TO: /usr/local/nagios/libexec/check_s3.py
TEMPLATE:
TEMPLATE ATTRIBUTE filename => s3.cfg
COPYING TEMPLATE: /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/templates/s3.cfg
              TO: /usr/local/nagios/etc/import/configwizard-s3.cfg
SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/amazon_s3/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 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/


I just did a clean up of the installation directory and did a reinstall. It is showing the same error as below. Will update install.log once it ends.
I have never encountered this type of slowdown before in any versions from 2.x

Code: Select all

Collecting boto3
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('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/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('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/
  Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3
INSTALL SCRIPT FINISHED. RESULT='1'
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/configwizards/amazon_ec2


Done!
Installing 'wizards/amazon_s3.zip'
TMPNAME: MZGVE
Archive:  /tmp/raja/nagiosxi/subcomponents/xiwizards/wizards/amazon_s3.zip
f10566ec6d5f77ea7846812311c879821273d74b
   creating: amazon_s3/
  inflating: amazon_s3/CHANGES.txt
  inflating: amazon_s3/amazon_s3.inc.php
  inflating: amazon_s3/config.xml
  inflating: amazon_s3/install.sh
   creating: amazon_s3/logos/
  inflating: amazon_s3/logos/s3.png
   creating: amazon_s3/plugins/
  inflating: amazon_s3/plugins/check_s3.py
  inflating: amazon_s3/s3.ajax.php
   creating: amazon_s3/templates/
  inflating: amazon_s3/templates/s3.cfg
amazon_s3
WIZARD NAME: amazon_s3
CMD=grep register_configwizard /usr/local/nagiosxi/tmp/MZGVE/amazon_s3/amazon_s3.inc.php | wc -l
1
OUT=1
Wizard looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/MZGVE/amazon_s3 /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/MZGVE
PROCESSING CONFIG FILE /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/config.xml
LOGO:
LOGO ATTRIBUTE filename => s3.png
COPYING LOGO: /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/logos/s3.png
          TO: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/s3.png
PLUGIN:
PLUGIN ATTRIBUTE filename => check_s3.py
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/plugins/check_s3.py
             TO: /usr/local/nagios/libexec/check_s3.py
TEMPLATE:
TEMPLATE ATTRIBUTE filename => s3.cfg
COPYING TEMPLATE: /usr/local/nagiosxi/html/includes/configwizards/amazon_s3/templates/s3.cfg
              TO: /usr/local/nagios/etc/import/configwizard-s3.cfg
SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/amazon_s3/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 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('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/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3
INSTALL SCRIPT FINISHED. RESULT='1'
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/configwizards/amazon_s3


Done!
...
...
..

SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/mongodb_database/install.sh'...
RUNNING INSTALL SCRIPT...
Collecting pymongo
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Could not find a version that satisfies the requirement pymongo (from versions: )
No matching distribution found for pymongo
INSTALL SCRIPT FINISHED. RESULT='0'
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/configwizards/mongodb_database


Done!
Installing 'wizards/mongodb_server.zip'
TMPNAME: EHL7B
Archive:  /tmp/raja/nagiosxi/subcomponents/xiwizards/wizards/mongodb_server.zip
ebd4b340c35e9203528e1aadb679731530e7dac7
   creating: mongodb_server/
  inflating: mongodb_server/CHANGES.TXT
  inflating: mongodb_server/config.xml
 extracting: mongodb_server/install.sh
   creating: mongodb_server/logos/
 extracting: mongodb_server/logos/mongodb.png
  inflating: mongodb_server/mongodb_server.inc.php
   creating: mongodb_server/plugins/
  inflating: mongodb_server/plugins/check_mongodb.py
   creating: mongodb_server/templates/
  inflating: mongodb_server/templates/mongodb_server.cfg
mongodb_server
WIZARD NAME: mongodb_server
CMD=grep register_configwizard /usr/local/nagiosxi/tmp/EHL7B/mongodb_server/mongodb_server.inc.php | wc -l
1
OUT=1
Wizard looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/EHL7B/mongodb_server /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/EHL7B
PROCESSING CONFIG FILE /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/config.xml
LOGO:
LOGO ATTRIBUTE filename => mongodb.png
COPYING LOGO: /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/logos/mongodb.png
          TO: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/mongodb.png
PLUGIN:
PLUGIN ATTRIBUTE filename => check_mongodb.py
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/plugins/check_mongodb.py
             TO: /usr/local/nagios/libexec/check_mongodb.py
TEMPLATE:
TEMPLATE ATTRIBUTE filename => mongodb_server.cfg
COPYING TEMPLATE: /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/templates/mongodb_server.cfg
              TO: /usr/local/nagios/etc/import/configwizard-mongodb_server.cfg
SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/mongodb_server/install.sh'...
RUNNING INSTALL SCRIPT...
Collecting pymongo
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/pymongo/


After stuck for ages on the logs on top, then it zips by and it ends like this. Upgrade not done.

Code: Select all

cd ./src/; make
make[1]: Entering directory `/tmp/raja/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
gcc -g -O2 -I/usr/include/krb5   -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto   -lnsl -lwrap
gcc -g -O2 -I/usr/include/krb5   -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -lssl -lcrypto   -lnsl
make[1]: Leaving directory `/tmp/raja/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'

*** Compile finished ***

You can now continue with the installation or upgrade process.

Read the PDF documentation (docs/NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.

cd ./src/; make install-plugin
make[1]: Entering directory `/tmp/raja/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/tmp/raja/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory `/tmp/raja/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/tmp/raja/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 startup/default-init /etc/init.d/nrpe
Starting nrpe
UPGRADE: NRPE upgraded OK.
UPGRADE: NRDP is being upgraded...
UPGRADE: NRDP upgraded OK.
Finished updating Core, Plugins, NRPE, NRDP ...
Upgrading MySQL database for XI...
Removing Ajaxterm...
Installing new SSH Terminal...
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
No package shellinabox available.
Error: Nothing to do
You have new mail in /var/spool/mail/nagios

upgrade.zip

Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Wed Aug 01, 2018 8:53 am
by scottwilkerson
Please run

Code: Select all

yum repolist
Is this machine connected to the Internet?

shellinabox is in the epel repository which every XI system should have unless someone removed or disabled it on your server.

Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Wed Aug 01, 2018 9:46 pm
by rajasegar
scottwilkerson wrote:Please run

Code: Select all

yum repolist
Is this machine connected to the Internet?

shellinabox is in the epel repository which every XI system should have unless someone removed or disabled it on your server.
Yes connected to internet

Code: Select all

[nagios@nagiosprodcol2 ~]$ sudo yum repolist
Loaded plugins: product-id, security, subscription-manager
download.mono-project.com_repo_centos_                                                           | 2.9 kB     00:00
nagios-base                                                                                      | 1.5 kB     00:00
nagiosxi-deps                                                                                    | 1.5 kB     00:00
repo id                                  repo name                                                                status
download.mono-project.com_repo_centos_   added from: http://download.mono-project.com/repo/centos/                 1,470
nagios-base                              Nagios                                                                      165
nagiosxi-deps                            Nagios XI Dependencies                                                       33
rhel-6-server-optional-debug-rpms        Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs)                 4,944
rhel-6-server-optional-rpms              Red Hat Enterprise Linux 6 Server - Optional (RPMs)                      11,873
rhel-6-server-rpms                       Red Hat Enterprise Linux 6 Server (RPMs)                                 20,477
rhel-6-server-supplementary-debuginfo    Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs)               85
rhel-6-server-supplementary-rpms         Red Hat Enterprise Linux 6 Server - Supplementary (RPMs)                    829
rhel-server-dts-6-rpms                   Red Hat Developer Toolset RPMs for Red Hat Enterprise Linux 6 Server         84
rhel-server-dts2-6-rpms                  Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server      469
repolist: 40,429

This is from another nagios box

Code: Select all

[nagios@nagiosprodxi1 ~]$ sudo yum repolist
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:

Error Class Code: 6001
Error Class Info:
     RHN is in the process of being decommissioned and systems are no longer able to receive updates or make use of any RHN services.
     Please see https://access.redhat.com/articles/2979901 for more info.

download.mono-project.com_repo_centos_                                                           | 2.9 kB     00:00
download.mono-project.com_repo_centos_/primary_db                                                | 1.0 MB     00:00
epel/metalink                                                                                    | 6.6 kB     00:00
epel                                                                                             | 3.2 kB     00:00
epel/primary                                                                                     | 3.6 MB     01:07
epel                                                                                                        12639/12639
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-rpms                                                                               | 3.5 kB     00:00
rhel-6-server-rpms/primary_db                                                                    |  64 MB     04:16
rhel-server-dts-6-rpms                                                                           | 3.4 kB     00:00
rhel-server-dts-6-rpms/primary_db                                                                |  44 kB     00:00
rhel-server-dts2-6-rpms                                                                          | 3.2 kB     00:00
rhel-server-dts2-6-rpms/primary_db                                                               | 166 kB     00:00
repo id                                  repo name                                                                status
download.mono-project.com_repo_centos_   added from: http://download.mono-project.com/repo/centos/                 1,470
epel                                     Extra Packages for Enterprise Linux 7 - x86_64                           12,639
nagios-base                              Nagios                                                                      165
nagiosxi-deps                            Nagios XI Dependencies                                                       33
rhel-6-server-rpms                       Red Hat Enterprise Linux 6 Server (RPMs)                                 20,477
rhel-server-dts-6-rpms                   Red Hat Developer Toolset RPMs for Red Hat Enterprise Linux 6 Server         84
rhel-server-dts2-6-rpms                  Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server      469
repolist: 35,337
You have new mail in /var/spool/mail/nagios
[nagios@nagiosprodxi1 ~]$


Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Thu Aug 02, 2018 7:48 am
by scottwilkerson
You are missing the epel repo

see if this file exists

Code: Select all

ll /etc/yum.repos.d/epel.repo
If it does, you need to edit the file and activate the repo..

If not you need to install the epel repo

Code: Select all

yum install epel-release -y

Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Thu Aug 02, 2018 9:23 am
by rajasegar
scottwilkerson wrote:You are missing the epel repo

see if this file exists

Code: Select all

ll /etc/yum.repos.d/epel.repo
If it does, you need to edit the file and activate the repo..

If not you need to install the epel repo

Code: Select all

yum install epel-release -y
Says nothing to do. The file is not there

Code: Select all

[nagios@nagiosprodcol2 ~]$ sudo yum install epel-release -y
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
download.mono-project.com_repo_centos_                                                         | 2.9 kB     00:00
nagios-base                                                                                    | 1.5 kB     00:00
nagiosxi-deps                                                                                  | 1.5 kB     00:00
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-rpms/primary_db                                                                  |  64 MB     01:01
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
Nothing to do
[nagios@nagiosprodcol2 ~]$ sudo yum repolist
Loaded plugins: product-id, security, subscription-manager
repo id                                 repo name                                                               status
download.mono-project.com_repo_centos_  added from: http://download.mono-project.com/repo/centos/                1,470
nagios-base                             Nagios                                                                     165
nagiosxi-deps                           Nagios XI Dependencies                                                      33
rhel-6-server-optional-debug-rpms       Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs)                4,944
rhel-6-server-optional-rpms             Red Hat Enterprise Linux 6 Server - Optional (RPMs)                     11,873
rhel-6-server-rpms                      Red Hat Enterprise Linux 6 Server (RPMs)                                20,477
rhel-6-server-supplementary-debuginfo   Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs)              85
rhel-6-server-supplementary-rpms        Red Hat Enterprise Linux 6 Server - Supplementary (RPMs)                   829
rhel-server-dts-6-rpms                  Red Hat Developer Toolset RPMs for Red Hat Enterprise Linux 6 Server        84
rhel-server-dts2-6-rpms                 Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server     469
repolist: 40,429
[nagios@nagiosprodcol2 ~]$ ll /etc/yum.repos.d/epel.repo
ls: cannot access /etc/yum.repos.d/epel.repo: No such file or directory
[nagios@nagiosprodcol2 ~]$ ls -l /etc/yum.repos.d
total 104
-rw-r--r--. 1 root root   170 Feb 22 11:46 download.mono-project.com_repo_centos_.repo
-rw-r--r--. 1 root root   739 Mar 20  2013 mirrors-rpmforge
-rw-r--r--. 1 root root   717 Mar 20  2013 mirrors-rpmforge-extras
-rw-r--r--. 1 root root   728 Mar 20  2013 mirrors-rpmforge-testing
-rw-r--r--  1 root root   307 Mar 17 05:23 nagios-6.repo
-rw-r--r--. 1 root root 70214 Jul 27 20:13 redhat.repo
-rw-r--r--. 1 root root   529 Feb 22 11:46 rhel-source.repo
-rw-r--r--  1 root root  1128 Jul 31 09:45 rpmforge.repo
-rw-r--r--  1 root root  1128 Jul 31 09:53 rpmforge.repo.rpmnew
[nagios@nagiosprodcol2 ~]$


Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Thu Aug 02, 2018 9:58 am
by scottwilkerson
Run this, not sure why your system cannot find the package

Code: Select all

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
Then you should be able to continue

Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Thu Aug 02, 2018 10:16 am
by rajasegar
scottwilkerson wrote:Run this, not sure why your system cannot find the package

Code: Select all

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
Then you should be able to continue
Installed but same problem

Code: Select all

[nagios@nagiosprodcol2 ~]$ sudo rpm -ivh epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]
        package epel-release-7-11.noarch (which is newer than epel-release-6-8.noarch) is already installed
        file /etc/yum.repos.d/epel-testing.repo from install of epel-release-6-8.noarch conflicts with file from package epel-release-7-11.noarch
        file /etc/yum.repos.d/epel.repo from install of epel-release-6-8.noarch conflicts with file from package epel-release-7-11.noarch
[nagios@nagiosprodcol2 ~]$ sudo yum remove epel-release-7-11.noarch
Loaded plugins: product-id, security, subscription-manager
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================
 Package                         Arch                      Version                 Repository                    Size
======================================================================================================================
Removing:
 epel-release                    noarch                    7-11                    installed                     24 k

Transaction Summary
======================================================================================================================
Remove        1 Package(s)

Installed size: 24 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Erasing    : epel-release-7-11.noarch                                                                           1/1
warning:    erase unlink of /etc/yum.repos.d/epel.repo failed: No such file or directory
warning:    erase unlink of /etc/yum.repos.d/epel-testing.repo failed: No such file or directory
  Verifying  : epel-release-7-11.noarch                                                                           1/1

Removed:
  epel-release.noarch 0:7-11

Complete!
[nagios@nagiosprodcol2 ~]$ sudo rpm -ivh epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

[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-Class-Accessor-0.31-6.1.el6.noarch 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
Package perl-Math-Calc-Units-1.07-6.el6.noarch already installed and latest version
Package perl-Number-Format-1.73-3.el6.noarch already installed and latest version
Nothing to do
===================
XI 5.5.0 Updates
===================
NOTICE: This upgrade script will update ALL XI components, wizards, and dashlets
to the latest available versions. Before running this upgrade the currently
installed versions will be backed up to the /tmp directory.

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: jhP0E
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/jhP0E/amazon_ec2/amazon_ec2.inc.php | wc -l
1
OUT=1
Wizard looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/jhP0E/amazon_ec2 /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/jhP0E
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 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/boto3/



Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Thu Aug 02, 2018 11:13 am
by rajasegar
This time it completed but took 1 hour plus. Most of the time was spent on boto3 and pymongo errors.

Re: 5.4.13 to 5.5.1 upgrade dependency issue

Posted: Thu Aug 02, 2018 3:43 pm
by scottwilkerson
rajasegar wrote:This time it completed but took 1 hour plus. Most of the time was spent on boto3 and pymongo errors.
Glad to hear it completed