Page 1 of 1
Updating Nagios XI through GUI hung
Posted: Thu May 09, 2019 2:12 pm
by amunter
I clicked the "update is available" link in the web GUI to update Nagios since this has worked well in the past. This time it is hung and just says:
Update in progress. Please wait. Update may take a few minutes.
I rebooted the VM, and it continues to say that. I'm using the OVA deployed one.
What can I do to poke it to complete the update?
Re: Updating Nagios XI through GUI hung
Posted: Thu May 09, 2019 2:14 pm
by cdienger
To clear out the "update in progress" message one of these should do the trick(assuming the default dbs are used):
Code: Select all
echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi nagiosxi
echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
After clearing this, try a manual upgrade with:
Code: Select all
cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Re: Updating Nagios XI through GUI hung
Posted: Thu May 09, 2019 2:18 pm
by amunter
Nevermind. I found the support PDF that says how to do it from the command line which worked fine. I'm on 5.6.1 now.
Re: Updating Nagios XI through GUI hung
Posted: Thu May 09, 2019 2:20 pm
by amunter
cdienger wrote:To clear out the "update in progress" message one of these should do the trick(assuming the default dbs are used):
Code: Select all
echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi nagiosxi
echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
After clearing this, try a manual upgrade with:
Code: Select all
cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Thanks for this! It will be useful to know how to clear out those codes.
Re: Updating Nagios XI through GUI hung
Posted: Thu May 09, 2019 2:22 pm
by cdienger
No problem
