Page 1 of 1

Upgrade to 5.5.9 fails

Posted: Tue Feb 05, 2019 4:33 pm
by jalbasan
Current version: 5.5.2
OS: Centos 7.4 (No Gnome)
Arc: x64
Repo: Enabled

Hi, we are having some upgrade issues with our NagiosXI.

Firstly we had no issue with our previous updates until now. This time it keeps failing and I am unable to troubleshoot any further. Log output says the upgrade was successful but web interface keeps saying" The update did not complete successfully. Please try updating manually."

After this process everything with UI breaks. Everywhere I click all I get is spinning circle but nothing is loading.

Restarting didn't resolve the issue.
I did a manual update to 5.5.3 and it was ok. However it failed with all manual updates above 5.5.3 and above. I had to revert back to snapshot in order to keep the service up.

Thanks in advance.

Here is a cut output log from upgrade log:

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
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
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP trap interface configuration files...
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
tar: /usr/local/nagvis: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Backing up MySQL databases...
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
cp: cannot stat ‘/etc/httpd/conf.d/nagvis.conf’: No such file or directory
Compressing backup...

===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgrade_backup.1549401023.tar.gz

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
No entry for terminal type "unknown";
using dumb terminal settings.
Nagios XI Upgrade Log
==========================
DATE: Tue Feb 5 15:11:08 CST 2019

DISTRO INFO:
CentOS
7.4.1708
x86_64


No entry for terminal type "unknown";
using dumb terminal settings.
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
No entry for terminal type "unknown";
using dumb terminal settings.
Checking required prereqs...
Please wait...

OLD VERSION: 5502
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No packages marked for update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package perl-Test-Simple-0.98-243.el7.noarch already installed and latest version
Package perl-Class-Accessor-0.34-12.el7.noarch already installed and latest version
Package perl-Params-Validate-1.08-4.el7.x86_64 already installed and latest version
Package perl-Config-Tiny-2.14-7.el7.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-9.el7.noarch already installed and latest version
Package perl-Number-Format-1.73-14.el7.noarch already installed and latest version
Nothing to do
UPGRADE: Nagios Core is upgrading...
Mod Gearman 2 not found! Continuing...
UPGRADE: Applying Nagios XI patches to Nagios Core...
patching file nagios-4.4.3/cgi/Makefile.in
Hunk #1 succeeded at 40 with fuzz 2 (offset 1 line).
Hunk #2 succeeded at 135 (offset -16 lines).
Hunk #3 succeeded at 165 with fuzz 2 (offset -13 lines).
....................................................
....................................................
.....................................................
make[1]: Leaving directory `/home/nagios/local/nagiosxi/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.4.3'
/bin/install -c -m 755 -d -o root -g root /etc/init.d
/bin/install -c -m 755 -o root -g root startup/default-init /etc/init.d/nagios
Stopping nagios: .done.
UPGRADE: Nagios Core upgraded OK.
no crontab for nagios
no crontab for root
Copying over new XI directory...
No entry for terminal type "unknown";
using dumb terminal settings.
Patching NDOUtils...
NDOUtils already patched at level 103
Installing new PNP templates...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...
No entry for terminal type "unknown";
using dumb terminal settings.

--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting Nagios Core corelog.newobjects user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
No entry for terminal type "unknown";
using dumb terminal settings.

--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg .. No entry for terminal type "unknown";
using dumb terminal settings.
SUCCESS
--------------------------------------
No entry for terminal type "unknown";
using dumb terminal settings.

--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
No entry for terminal type "unknown";
using dumb terminal settings.
Finished writing out configuraton
--------------------------------------

--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 229 hosts.
Checked 8 host groups.
Checked 0 service groups.
Checked 28 contacts.
Checked 10 contact groups.
Checked 143 commands.
Checked 29 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 229 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 29 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 342
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
No entry for terminal type "unknown";
using dumb terminal settings.

Nagios XI Upgrade Complete!
---------------------------

You can access the Nagios XI web interface by visiting:
http://10.x.x.x/nagiosxi/


###########################################################

Here is the log from error_log(httpd):

grep: /usr/local/nagvis/share/server/core/defines/global.php: No such file or directory
[Tue Feb 05 15:11:08.111851 2019] [mpm_prefork:notice] [pid 1355] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Feb 05 15:11:10.180886 2019] [suexec:notice] [pid 18428] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 05 15:11:10.202597 2019] [auth_digest:notice] [pid 18428] AH01757: generating secret for digest authentication ...
[Tue Feb 05 15:11:10.203077 2019] [lbmethod_heartbeat:notice] [pid 18428] AH02282: No slotmem from mod_heartmonitor
[Tue Feb 05 15:11:10.237624 2019] [mpm_prefork:notice] [pid 18428] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Tue Feb 05 15:11:10.237650 2019] [core:notice] [pid 18428] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Feb 05 15:14:17.055944 2019] [mpm_prefork:notice] [pid 18428] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Feb 05 15:14:21.119046 2019] [suexec:notice] [pid 3158] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 05 15:14:21.139169 2019] [auth_digest:notice] [pid 3158] AH01757: generating secret for digest authentication ...
[Tue Feb 05 15:14:21.139614 2019] [lbmethod_heartbeat:notice] [pid 3158] AH02282: No slotmem from mod_heartmonitor
[Tue Feb 05 15:14:21.174186 2019] [mpm_prefork:notice] [pid 3158] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Tue Feb 05 15:14:21.174206 2019] [core:notice] [pid 3158] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Re: Upgrade to 5.5.9 fails

Posted: Wed Feb 06, 2019 12:12 pm
by npolovenko
@jalbasan, We'll continue troubleshooting this issue in the support ticket. I will be closing this thread so we can best focus our efforts. Thank you!