Upgrade to 5.7.2 issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
azubarev
Posts: 8
Joined: Mon Mar 18, 2019 12:10 pm

Upgrade to 5.7.2 issue

Post by azubarev »

Hello!

We trying to upgrade Nagios XI from 5.6.10 to 5.7.2 and faced some issues.
When we try to update via web-interface we've got error

Code: Select all

The update did not complete properly. Click Go Back and try updating manually.
When we try to upgrade XI manually we have error

Code: Select all

Your dbversion is 2.0.1, and our minimum supported upgrade version is
Upgrade your version of NDOUtils to 2.0.1 before attempting this upgrade
After that SQL has been corrupted and we recover Nagios from backup.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade to 5.7.2 issue

Post by ssax »

Is this an RPM install? Please send the output of this command:

Code: Select all

rpm -qa | grep nagiosxi
The upgrade bug you are hitting should be fixed in the upcoming XI 5.7.3 release.

We should be able to modify the script in the 5.7.2 release but I need to know if you're running a source install or an RPM install.
azubarev
Posts: 8
Joined: Mon Mar 18, 2019 12:10 pm

Re: Upgrade to 5.7.2 issue

Post by azubarev »

ssax wrote:Is this an RPM install? Please send the output of this command:

Code: Select all

rpm -qa | grep nagiosxi
The upgrade bug you are hitting should be fixed in the upcoming XI 5.7.3 release.

We should be able to modify the script in the 5.7.2 release but I need to know if you're running a source install or an RPM install.
Here is output

Code: Select all

nagiosxi-deps-el7-5.6.10-1.noarch
We've installed it a year ago from Nagios distro for VMware.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade to 5.7.2 issue

Post by ssax »

This is an issue that will be fixed in the upcoming 5.7.3 release.

To fix it in XI 5.7.2 when installing from source (what you have), you should be able to do this:

Code: Select all

cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.7.2.tar.gz
tar zxf xi-5.7.2.tar.gz
cd /tmp/nagiosxi/subcomponents/ndo
tar zxf ndo-3.0.2.tar.gz
sed -i 's/\$versions\[0\]/\$\{versions\[0\]\}/g' /tmp/nagiosxi/subcomponents/ndo/ndo-3.0.2/db/db-mgmt.sh
rm -f ndo-3.0.2.tar.gz
tar zcvf ndo-3.0.2.tar.gz ndo-3.0.2
rm -rf ndo-3.0.2
cd /tmp/nagiosxi
./upgrade
azubarev
Posts: 8
Joined: Mon Mar 18, 2019 12:10 pm

Re: Upgrade to 5.7.2 issue

Post by azubarev »

ssax wrote:This is an issue that will be fixed in the upcoming 5.7.3 release.

To fix it in XI 5.7.2 when installing from source (what you have), you should be able to do this:

Code: Select all

cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.7.2.tar.gz
tar zxf xi-5.7.2.tar.gz
cd /tmp/nagiosxi/subcomponents/ndo
tar zxf ndo-3.0.2.tar.gz
sed -i 's/\$versions\[0\]/\$\{versions\[0\]\}/g' /tmp/nagiosxi/subcomponents/ndo/ndo-3.0.2/db/db-mgmt.sh
rm -f ndo-3.0.2.tar.gz
tar zcvf ndo-3.0.2.tar.gz ndo-3.0.2
rm -rf ndo-3.0.2
cd /tmp/nagiosxi
./upgrade
Thank you Ssax! It's all work now. You're the great! ;)
Waiting forf 5.7.3 version :)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade to 5.7.2 issue

Post by scottwilkerson »

azubarev wrote:
ssax wrote:This is an issue that will be fixed in the upcoming 5.7.3 release.

To fix it in XI 5.7.2 when installing from source (what you have), you should be able to do this:

Code: Select all

cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.7.2.tar.gz
tar zxf xi-5.7.2.tar.gz
cd /tmp/nagiosxi/subcomponents/ndo
tar zxf ndo-3.0.2.tar.gz
sed -i 's/\$versions\[0\]/\$\{versions\[0\]\}/g' /tmp/nagiosxi/subcomponents/ndo/ndo-3.0.2/db/db-mgmt.sh
rm -f ndo-3.0.2.tar.gz
tar zcvf ndo-3.0.2.tar.gz ndo-3.0.2
rm -rf ndo-3.0.2
cd /tmp/nagiosxi
./upgrade
Thank you Ssax! It's all work now. You're the great! ;)
Waiting forf 5.7.3 version :)
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked