Page 1 of 1

NagiosXI upgrade failed?!

Posted: Mon Jun 24, 2019 11:00 am
by xpertech
Today we tried to upgrade NagiosXI from 5.4.11 to 5.6.3 but failed, no matter from GUI or command line were all failed?!

Re: NagiosXI upgrade failed?!

Posted: Mon Jun 24, 2019 1:40 pm
by benjaminsmith
Hi Xpertech,

Please login as root in the terminal and run the following commands:

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 
If it fails, please post the full output from above in code wraps and PM your system profile. 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.

Re: NagiosXI upgrade failed?!

Posted: Mon Jun 24, 2019 8:57 pm
by xpertech
Last week we already run the commands you provide, first it upgrade from 5.4 to 5.5 successful and it ask if want to continue upgrade to 5.6, but whether we choose yes or no, it will failed eventually.

Since the NagiosXI host is a production system, we can not try to upgrade all the time, could you use the attachment to analysis and see if other way to fix that?

Re: NagiosXI upgrade failed?!

Posted: Tue Jun 25, 2019 9:52 am
by benjaminsmith
Hello @xpertech,

When reviewing the install log, I noticed that the upgrade was cancelled. Can you re-run the manual installation, so we can review any errors?
XI 5.5.0 Updates
===================
NOTICE: This upgrade script will update ALL XI components, wizards, and dashlets
to the latest available versions. Before running this upgrade the currently
installed versions will be backed up to the /tmp directory.

Are you sure you want to continue? [y/N] N
Upgrade cancelled
[root@twtpelnag02p nagiosxi]# ./upgrade
Connection closed by foreign host.
Also, please PM a fresh copy of the system profile as there maybe database issues present. 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.

Re: NagiosXI upgrade failed?!

Posted: Wed Jun 26, 2019 12:19 pm
by xpertech
It was cancelled because it hanged(no matter we choose yes or no .... Are you sure you want to continue? [y/N] ),
so we had to stop it.

PM you the profile.

Re: NagiosXI upgrade failed?!

Posted: Wed Jun 26, 2019 12:54 pm
by benjaminsmith
Hi @xpertech,

Thank you for sending over the system profile. One thing a I noticed is that the main partition is low on disk space - about 7.2G free. When the system upgrades, it will take a full backup first which can be quite large depending on your environment.

Are you using a VM? Can you increase the amount of drive space on the machine and then run the manual upgrade again.

Alternatively, you can remove older archives out of the backup directory at /store/backups/nagiosxi/ to free up space. The names of the archives are preceded with the Unix timestamp of the time the backups were created.