Page 1 of 1
RPM upgrade to Nagios 5.5.2 stuck
Posted: Tue Aug 07, 2018 8:24 am
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?
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Tue Aug 07, 2018 10:17 am
by scottwilkerson
Can you open another ssh session and grab the /tmp/xi-upgrade.log and post it back to this thread
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Tue Aug 07, 2018 11:43 pm
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
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Wed Aug 08, 2018 12:14 am
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
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Wed Aug 08, 2018 7:27 am
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
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Wed Aug 08, 2018 7:55 am
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
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Wed Aug 08, 2018 7:57 am
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?
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Wed Aug 08, 2018 8:18 am
by sib
yes this can be closed. Thanks for your help
Re: RPM upgrade to Nagios 5.5.2 stuck
Posted: Wed Aug 08, 2018 8:32 am
by scottwilkerson
sib wrote:yes this can be closed. Thanks for your help
closing