Page 1 of 1

Upgrade to 5.7.2 issue

Posted: Wed Aug 12, 2020 2:09 am
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.

Re: Upgrade to 5.7.2 issue

Posted: Wed Aug 12, 2020 2:22 pm
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.

Re: Upgrade to 5.7.2 issue

Posted: Fri Aug 14, 2020 2:07 am
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.

Re: Upgrade to 5.7.2 issue

Posted: Fri Aug 14, 2020 4:11 pm
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

Re: Upgrade to 5.7.2 issue

Posted: Mon Aug 17, 2020 12:37 am
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 :)

Re: Upgrade to 5.7.2 issue

Posted: Mon Aug 17, 2020 7:42 am
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