RESOLVED: XI will not upgrade via UI or terminal methods

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

RESOLVED: XI will not upgrade via UI or terminal methods

Post by gregbeyer »

Currently running 2024R1.1.4, and have notification that upgrade to 2024R1.1.5 is available.

Attempted three times to upgrade via the UI. It completed, without error, however version shown in UI remains v1.1.4.

Then used the manual upgrade instructions at https://assets.nagios.com/downloads/nag ... ctions.pdf, first using the "Quick", then the "Manual Download" method. Both finished without error, but XI remains v1.1.4.

Admin /Check for Updates continues to indicate I am on v1.1.4, and v1.1.5 is available.

This is what I find in the log or console, regardless of the method I use:

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
RPM Install detected, switching to yum update
Updating Subscription Management repositories.
nagios-dep-rh9 52 kB/s | 1.5 kB 00:00
salt-9-x86_64-3005 71 kB/s | 2.0 kB 00:00
pace-slurm-el9 60 kB/s | 1.5 kB 00:00
MLNX_OFED_LINUX-5.8-4.1.5.0-5.14.0-362.24.1.el9 60 kB/s | 1.5 kB 00:00
OIT Endpoint EL9 57 kB/s | 1.5 kB 00:00
OIT Endpoint EL8 55 kB/s | 1.5 kB 00:00
nagios-rh9 55 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 116 kB/s | 4.1 kB 00:00
OIT Endpoint EL7 53 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStre 129 kB/s | 4.5 kB 00:00
EPEL93 x86_64 84 kB/s | 2.3 kB 00:00
vast-drivers-4.0.28-MLNX_OFED_LINUX-23.10-3.2.2 53 kB/s | 1.5 kB 00:00
lustre-2.14.0_ddn154-5.14.0-427.24.1.el9_4.x86_ 54 kB/s | 1.5 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
Last edited by gregbeyer on Fri Aug 02, 2024 2:05 pm, edited 1 time in total.
sgardil
Posts: 327
Joined: Wed Aug 09, 2023 9:58 am

Re: XI will not upgrade via UI or terminal methods

Post by sgardil »

gregbeyer wrote: Wed Jul 31, 2024 9:25 am Currently running 2024R1.1.4, and have notification that upgrade to 2024R1.1.5 is available.

Attempted three times to upgrade via the UI. It completed, without error, however version shown in UI remains v1.1.4.

Then used the manual upgrade instructions at https://assets.nagios.com/downloads/nag ... ctions.pdf, first using the "Quick", then the "Manual Download" method. Both finished without error, but XI remains v1.1.4.

Admin /Check for Updates continues to indicate I am on v1.1.4, and v1.1.5 is available.

This is what I find in the log or console, regardless of the method I use:

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
RPM Install detected, switching to yum update
Updating Subscription Management repositories.
nagios-dep-rh9 52 kB/s | 1.5 kB 00:00
salt-9-x86_64-3005 71 kB/s | 2.0 kB 00:00
pace-slurm-el9 60 kB/s | 1.5 kB 00:00
MLNX_OFED_LINUX-5.8-4.1.5.0-5.14.0-362.24.1.el9 60 kB/s | 1.5 kB 00:00
OIT Endpoint EL9 57 kB/s | 1.5 kB 00:00
OIT Endpoint EL8 55 kB/s | 1.5 kB 00:00
nagios-rh9 55 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 116 kB/s | 4.1 kB 00:00
OIT Endpoint EL7 53 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStre 129 kB/s | 4.5 kB 00:00
EPEL93 x86_64 84 kB/s | 2.3 kB 00:00
vast-drivers-4.0.28-MLNX_OFED_LINUX-23.10-3.2.2 53 kB/s | 1.5 kB 00:00
lustre-2.14.0_ddn154-5.14.0-427.24.1.el9_4.x86_ 54 kB/s | 1.5 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
Hey @gregbeyer

What OS are you currently running nagiosXI on? If its cent 7, rhel 7, or oracle 7 then we recommend moving your system on a more modern OS as those os's are being deprecated. There was an unintended error on our end where this deprecation went out in 2024R1.1.5 without a changelog. We will be rereleasing 2024R1.1.5 that will work with cent 7 however in our next release of 2024R1.2 it will be deprecated. Sorry for any inconvinence.
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Re: XI will not upgrade via UI or terminal methods

Post by gregbeyer »

OS is RHEL 9.3. So the deprecation shouldn't effect me. Thanks.
jsimon
Posts: 318
Joined: Wed Aug 23, 2023 11:27 am

Re: XI will not upgrade via UI or terminal methods

Post by jsimon »

Hi Greg,

For clarity here, is the upgrade.log output that you posted here the entire contents of the log? What upgrade method are you using for this?
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Re: XI will not upgrade via UI or terminal methods

Post by gregbeyer »

That was not the entirety of the log. Whole log is at bottom.

Methods attempted were, first the XI UI (Admin / Check for Updates - Upgrade to latest version. When that said it was successful, but really wasn't, I went to CLI, using the Quick and then Manual Download methods. All of which produced the same results -- no upgrade.

---- Starting Nagios XI Backup ----
\nStarting new backup....\n
tr: write error: Broken pipe
tr: write error
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/spool/perfdata: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP directories
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up nagios user home dir...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...

===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgradebackup.1722431753.tar.gz

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
RPM Install detected, switching to yum update
Updating Subscription Management repositories.
nagios-dep-rh9 52 kB/s | 1.5 kB 00:00
salt-9-x86_64-3005 71 kB/s | 2.0 kB 00:00
pace-slurm-el9 60 kB/s | 1.5 kB 00:00
MLNX_OFED_LINUX-5.8-4.1.5.0-5.14.0-362.24.1.el9 60 kB/s | 1.5 kB 00:00
OIT Endpoint EL9 57 kB/s | 1.5 kB 00:00
OIT Endpoint EL8 55 kB/s | 1.5 kB 00:00
nagios-rh9 55 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 116 kB/s | 4.1 kB 00:00
OIT Endpoint EL7 53 kB/s | 1.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStre 129 kB/s | 4.5 kB 00:00
EPEL93 x86_64 84 kB/s | 2.3 kB 00:00
vast-drivers-4.0.28-MLNX_OFED_LINUX-23.10-3.2.2 53 kB/s | 1.5 kB 00:00
lustre-2.14.0_ddn154-5.14.0-427.24.1.el9_4.x86_ 54 kB/s | 1.5 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
jsimon
Posts: 318
Joined: Wed Aug 23, 2023 11:27 am

Re: XI will not upgrade via UI or terminal methods

Post by jsimon »

I think what might be happening here is that a different upgrade method is being used than the one used to install XI initially. You will need to use the same upgrade method as the initial install. If this was an RPM install, you'll want to follow these instructions:

https://repo.nagios.com/?repo=offline

For a tarball install, you'll want to manually download the version you are looking to upgrade to and run the upgrade script from that. Apologies for the inconvenience!
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Re: XI will not upgrade via UI or terminal methods

Post by gregbeyer »

Thanks for the information. That worked.

So this means that an admin coming into an unknown XI environment, potentially years old, would need to know, or find documentation, on how it was originally installed? I think that is not realistic.

I wonder if the UI script (Admin/Check for Upgrade) could perhaps be made to detect that an RPM install was done? I'm sure it can owing to that clue in the log you knew how to interpret ("RPM Install detected") And, upon detecting such, direct the admin to that offline upgrade document. Far more effective than an erroneous "Nothing to do. Complete!" message. :idea:
jsimon
Posts: 318
Joined: Wed Aug 23, 2023 11:27 am

Re: RESOLVED: XI will not upgrade via UI or terminal methods

Post by jsimon »

Agreed that we could improve how we handle this. I actually went ahead and added a feature request to improve how this is handled after my last post on Friday.
Post Reply