Update Version 5.5.10 to 5.6.4 not finishing - stuck

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
thfadmin
Posts: 7
Joined: Tue Jul 16, 2019 8:45 am

Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by thfadmin »

The update screen is stuck updating and nothing I've tried will release or finish that update. The update box shows the info below but never completes. os looks to be CentOS release 6.7 (Final)

Also, I ran a manual update via ssh and it appeared to complete. Still can't get the gui to reflect the new version and remove the upgrade in progress dialog.


---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Stopping nagios: done.
Starting nagios: done.
Backing up NagiosQL...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
Backing up Nagios XI...
tar: Removing leading `/' from member names
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by mbellerue »

Hi thfadmin,

Sometimes that "Upgrade in progress" message needs to be cleared manually. Here is a KB that will walk you through that process.

https://support.nagios.com/kb/article/n ... e-851.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
thfadmin
Posts: 7
Joined: Tue Jul 16, 2019 8:45 am

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by thfadmin »

I had not come across that article. Thanks. It did indeed reset the update status in the web interface but clicking to update to the new version still stalls and does not complete. Just sits at "update in progress" with the text below showing.

Verified that the upgrade log has the same information and nothing more.

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Stopping nagios: done.
Starting nagios: done.
Backing up NagiosQL...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
Backing up Nagios XI...
tar: Removing leading `/' from member names
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by benjaminsmith »

Hello @thfadmin,

If you ran a manual upgrade and it completed, you should be running the latest version. Please send over a system profile for us to review the logs. Thanks.

To send us your system profile.

Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
thfadmin
Posts: 7
Joined: Tue Jul 16, 2019 8:45 am

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by thfadmin »

The download profile does not work for some reason. I get the error

"PROFILE BUILD FAILED
Array
(
)
CODE: 1

I just copied and pasted the output to a txt file. Odd....
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by benjaminsmith »

Hi @thfadmin,
"PROFILE BUILD FAILED
Array
(
)
CODE: 1
This error is typically the result of an incorrect sudoers file. To correct, follow the instructions in the article below and then try to download the system profile again.

Nagios XI - Profile Build Failed

Let me know if you have any questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
thfadmin
Posts: 7
Joined: Tue Jul 16, 2019 8:45 am

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by thfadmin »

That worked. Here is the file.
Last edited by benjaminsmith on Tue Jul 23, 2019 3:14 pm, edited 1 time in total.
Reason: saved profile
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by benjaminsmith »

Hi @thfadmin,

Thanks for the system profile. I dd notice crashed database tables in the logs, so let's run the db repair script and then try upgrading again.

1. To repair the script, log in as root and run the following command:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
2. Then run the commands the following commands to upgrade and post the output of any errors.

Code: Select all

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh
sh ./upgrade.sh
Reference: Nagios XI Upgrade Instructions
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
thfadmin
Posts: 7
Joined: Tue Jul 16, 2019 8:45 am

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by thfadmin »

Ok I completed those commands. No change in Update status.


DISTRO INFO:
CentOS
6.7
x86_64


Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[ OK ]
Checking required prereqs...
Please wait...

OLD VERSION: 5510
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@localhost ~]#
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Update Version 5.5.10 to 5.6.4 not finishing - stuck

Post by benjaminsmith »

Hello @thfadmin,
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
It looks like some issues with the repos on the server causing the upgrade to fail. Please post the the full output to the following commands to help us diagnose the issue. Thanks.

1. List repositories

Code: Select all

ls -l /etc/yum.repos.d/
2. Clear yum cache

Code: Select all

yum clean all
3. List configured repositories

Code: Select all

yum repolist
4.Lastly, are you able to successfully connect over both http and https?

Code: Select all

curl -k -L -v 'https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=x86_64'
curl -k -L -v http://download.fedoraproject.org/pub/epel/6/x86_64
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked