Page 1 of 1

Upgrade 5.7.1 to 5.8.5 manual process fails

Posted: Fri Jul 23, 2021 2:14 pm
by cstewart
I have a CentOS 7 VM installation with 5.7.1 and I need to preform an offline installation and build an Ansible playbook to answer yes to all the questions, because this system is not accessible to the internet. We just give our customer a playbook and the onsite guy just hits runs and everything is required to just work. That is the end result, but I'm running into issues with the basic install.

I have the 5.8.5 tar.gz file and following the directions (https://assets.nagios.com/downloads/nag ... ctions.pdf), I unarchive it and then run the ./upgrade file.

Code: Select all

[root@r2-nagios nagiosxi]# ./upgrade 
package nagiosxi-shellinabox is not installed
Loaded plugins: fastestmirror
Examining nagiosxi-shellinabox-5.8.5-1.el7.x86_64.rpm: nagiosxi-shellinabox-5.8.5-1.el7.x86_64
Marking nagiosxi-shellinabox-5.8.5-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-shellinabox.x86_64 0:5.8.5-1.el7 will be installed
--> Processing Conflict: nagiosxi-shellinabox-5.8.5-1.el7.x86_64 conflicts nagiosxi-deps-el7
Loading mirror speeds from cached hostfile
 * base: mirror.jaleco.com
 * extras: mirror.ette.biz
 * updates: mirror.es.its.nyu.edu
--> Processing Conflict: nagiosxi-shellinabox-5.8.5-1.el7.x86_64 conflicts shellinabox
--> Finished Dependency Resolution
Error: nagiosxi-shellinabox conflicts with shellinabox-2.20-5.el7.x86_64
Error: nagiosxi-shellinabox conflicts with nagiosxi-deps-el7-5.7.1-1.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@r2-nagios nagiosxi]# 
But, if I run the following:

Code: Select all

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh

sh ./upgrade.sh
It install fine. The problem is that at the customer site it will not have internet access.

Re: Upgrade 5.7.1 to 5.8.5 manual process fails

Posted: Mon Jul 26, 2021 10:41 am
by cstewart
I got it working, had to download the file from the online instructions with the wget command and then with that file I was able to run the update process, not sure of differences in the files.

Re: Upgrade 5.7.1 to 5.8.5 manual process fails

Posted: Mon Jul 26, 2021 11:21 am
by ssax
What is the output of this command?

Code: Select all

rpm -qa | grep nagiosxi
Does the web interface show XI 5.8.5 in the bottom of the left hand side after logging in or does it still show XI 5.7.1?