RPM upgrade to Nagios 5.5.2 stuck

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

RPM upgrade to Nagios 5.5.2 stuck

Post by sib »

Hi

I try to upgrade my rpm based NagiosXI from 5.4.13 to 5.5.2 which gets stuck in the yum update

Is

Code: Select all

 this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nagiosxi-5.5.2-1.el7.x86_64                                                                                                                                        1/2
I have waited for more than an hour. Is that normal?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by scottwilkerson »

Can you open another ssh session and grab the /tmp/xi-upgrade.log and post it back to this thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by sib »

looks like it is stuck with a yum lock. Not sure why it is trying to use yum while it is doing an yum update?

Code: Select all

SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/domain_expiration/install.sh'...
RUNNING INSTALL SCRIPT...
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
              : disabled-repos, subscription-manager
Existing lock /var/run/yum.pid: another copy is running as pid 9929.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 111 M RSS (551 MB VSZ)
    Started: Wed Aug  8 06:36:11 2018 - 00:27 ago
    State  : Sleeping, pid: 9929

i tried to use "yum update nagiosxi" or the ./upgrade script. Both hang with the same error.

Looking in /usr/local/nagiosxi/html/includes/configwizards/domain_expiration/install.sh
Because it is not an offline install it tries to install jwhois while upgrading the rpm..

Code: Select all

#!/bin/sh
if [ -f $INSTALL_PATH/offline ]; then
        echo Nothing to do here, offline install.
else
        yum install jwhois -y
fi
exit 0
/usr/local/nagiosxi/html/includes/configwizards/domain_expiration/install.sh (END)
xi-upgrade.log
You do not have the required permissions to view the files attached to this post.
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by sib »

That is really painful. I went through all the install.sh scripts and did a manual yum install on these packages. They were all already installed. Now I get

Code: Select all

CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh'...
RUNNING INSTALL SCRIPT...
--2018-08-08 07:11:30--  https://assets.nagios.com/downloads/nagiosxi/scripts/wmicinstall.py
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... ^C

Which does not make any sense if we do an rpm install. We don't have acceess to the internet but we use a Satellite server to access the RPMs. I also tried to use ./upgrade -o but it gets stuck at the same spot
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by scottwilkerson »

What you want to do is the following to remove some old files that were left behind from a previous RPM

Code: Select all

rm -f /usr/local/nagiosxi/html/includes/components/nrdsconfigmanager/install.sh
rm -f /usr/local/nagiosxi/html/includes/components/nagvis/install.sh
rm -f /usr/local/nagiosxi/html/includes/components/snmptrapsender/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/domain_expiration/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/ftpserver/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/exchange/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mailserver/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mongodb_database/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
then you can reinstall the nagiosxi RPM

Code: Select all

yum reinstall nagiosxi-5.5.2-1.el7.x86_64.rpm
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by sib »

This has worked like a charm. I had to remove snmptt-1.4-0.9.beta2.el7.noarch from the system though.

Code: Select all

Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el7.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by scottwilkerson »

sib wrote:This has worked like a charm. I had to remove snmptt-1.4-0.9.beta2.el7.noarch from the system though.

Code: Select all

Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el7.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
It should re-add a different version of snmptt

May we close the case?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by sib »

yes this can be closed. Thanks for your help
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RPM upgrade to Nagios 5.5.2 stuck

Post by scottwilkerson »

sib wrote:yes this can be closed. Thanks for your help
closing
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked