Update in progress. Please wait...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Update in progress. Please wait...

Post by DennisPR »

Hi,

I'm having problems upgrading 2 Nagios XI Servers from 5.5.11 to 5.6.
When I run the upgrade from the UI is see the message "Update in progress. Please wait. Update may take a few minutes." but noting appears in the command line box below.

Rebooting the servers didn't help.
Performing the upgrade from the command line worked but in the UI I still see the "Update in progress" message.

Code: Select all

cat /usr/local/nagiosxi/var/xiversion
###################################
# DO NOT DELETE THIS FILE!
# Nagios XI version information
###################################
full=5.6.0
major=5
minor=6.0
releasedate=2018-04-18
release=5600
How can I get rid of the message an be sure that the upgrades went fine ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update in progress. Please wait...

Post by scottwilkerson »

You can just click the "Go back" button on that page

The cat of the file above show me the system have been updated already
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Update in progress. Please wait...

Post by DennisPR »

Hi Scott

Whenever I go back to the check for updates page I it keeps stating "Update in progress. Please wait. Update may take a few minutes."
Nagios update.PNG
Even if I open the page in another browser or after a reboot of the server.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update in progress. Please wait...

Post by scottwilkerson »

Underneath the textarea box is there a "Go back" button?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Update in progress. Please wait...

Post by DennisPR »

Sorry I don't see it.
Nagios update 2.PNG
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update in progress. Please wait...

Post by scottwilkerson »

That is strange, Can I have you go to this url in the browser

Code: Select all

/nagiosxi/admin/updates.php?acknowledge=true
and then return to the page and it should be reset
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Update in progress. Please wait...

Post by GldRush98 »

I had my Dev box choke on the 5.6.0 autoupgrade too. I had upgraded that box through the gui since 2016 and this was the first time it failed me.
I also had the same issue of the hung upgrade in progress message.
This was how I fixed mine:
Run this command:
grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -l

If the command above outputs the number 3, run this command:
echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi

If the command above outputs the number 2, run this command:
echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update in progress. Please wait...

Post by scottwilkerson »

GldRush98 wrote:I had my Dev box choke on the 5.6.0 autoupgrade too. I had upgraded that box through the gui since 2016 and this was the first time it failed me.
I also had the same issue of the hung upgrade in progress message.
This was how I fixed mine:
Run this command:
grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -l

If the command above outputs the number 3, run this command:
echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi

If the command above outputs the number 2, run this command:
echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
Thanks!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Update in progress. Please wait...

Post by DennisPR »

scottwilkerson wrote:That is strange, Can I have you go to this url in the browser

Code: Select all

/nagiosxi/admin/updates.php?acknowledge=true
and then return to the page and it should be reset
If I browse to that URL I get : {"success":1}
If i go back to "Check for updates" it still says " Update in progress."

The commands from GldRush98 fixed the issue on 1 server. Thx !

Code: Select all

[root@myserver ~]# grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -l
2
[root@myserver  ~]# echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
UPDATE 1
The second server was running mysql and I had to add the database name nagiosxi to the command

Code: Select all

[root@my2ndserver ~]# grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -l
3
[root@my2ndserver  ~]# echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi
ERROR 1046 (3D000) at line 1: No database selected

[root@my2ndserver  ~]# echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi nagiosxi
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update in progress. Please wait...

Post by scottwilkerson »

DennisPR wrote:The commands from GldRush98 fixed the issue on 1 server. Thx !
great!

Glad it was resolved!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked