Page 1 of 2
Failed upgrade from 5.3.2 to 5.6.10
Posted: Mon Jan 27, 2020 11:33 am
by mdlsupport
Hi, I am running into a problem where the nagios upgrade completed but I am still at the same version of 5.3.2. I am trying to update to the latest 5.6.10. I have rebooted the host and the system still thinks it is at 5.3.2. The attachment is the full output from the console.
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Mon Jan 27, 2020 6:00 pm
by benjaminsmith
Hello
@mdlsupport,
Did you perform the upgrade from the command line or from the web interface? The output of the log looks ok.
Nagios XI Upgrade Complete!
--------------------------
You can access the Nagios XI web interface by visiting:
If the web interface is hanging on "Upgrade in Progress" message, then I would try to clear that out and refresh the page.
Nagios XI - Reset Upgrade Status In Web Interface
Otherwise, please send over the 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 this in a private message and then
reply to this post to bring it up in the queue.
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Mon Jan 27, 2020 6:53 pm
by mdlsupport
Thank you for the help! I have sent the profile via a private message.
Moderator's Note: The profile has been shared with the support team.
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Wed Jan 29, 2020 3:32 pm
by cdienger
Did the upgrade log that was provided come from content that was shown on the screen or was an actual update.log created in /tmp/nagiosxi ? I ask because the contents look old - a timestamp in the log shows 2016-11-06 and that it was upgraded from 5.1.8. Maybe this was a log from the 5.1.8 to 5.3.2 upgrade?
I think it's worth another shot to upgrade the machine:
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
This should create a upgrade.log in /tmp/nagiosxi/. Please provide this if there are any problems.
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Wed Jan 29, 2020 3:43 pm
by benjaminsmith
@mdlsupport Also, You maybe running into disk space issues as well. Please post the output to the following command:
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Thu Jan 30, 2020 12:59 pm
by mdlsupport
The logs provided were from the UI only. I have kicked off the upgrade and it is taking much longer than before. I will provide an update when it completes.
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Thu Jan 30, 2020 1:05 pm
by mdlsupport
It upgraded to 5.5 and asked for user input to continue. It upgrade to 5.6 and ask for user input to continue. However, it failed in the 5.6 upgrade, with the following last lines:
Installing 'dashlets/googlemapdashlet.zip'
TMPNAME: gIvDa
Archive: /tmp/nagiosxi/subcomponents/xidashlets/dashlets/googlemapdashlet.zip
3202296df3dc2320a5aa366dd8cbc1715367db3c
creating: googlemapdashlet/
inflating: googlemapdashlet/googlemapdashlet.inc.php
inflating: googlemapdashlet/thumbnail.jpg
googlemapdashlet
DASHLET NAME: googlemapdashlet
CMD=grep register_dashlet /usr/local/nagiosxi/tmp/gIvDa/googlemapdashlet/googlemapdashlet.inc.php | wc -l
1
OUT=1
Dashlet looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/gIvDa/googlemapdashlet /usr/local/nagiosxi/html/includes/dashlets/
CMD: rm -rf /usr/local/nagiosxi/tmp/gIvDa
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/dashlets/googlemapdashlet
Done!
Installing 'dashlets/rss_dashlet.zip'
TMPNAME: nNHD6
Archive: /tmp/nagiosxi/subcomponents/xidashlets/dashlets/rss_dashlet.zip
9516d80a47aa2af87388f0f7c216c2e7380cd49b
creating: rss_dashlet/
creating: rss_dashlet/magpierss/
inflating: rss_dashlet/magpierss/AUTHORS
inflating: rss_dashlet/magpierss/CHANGES
inflating: rss_dashlet/magpierss/ChangeLog
inflating: rss_dashlet/magpierss/INSTALL
inflating: rss_dashlet/magpierss/NEWS
inflating: rss_dashlet/magpierss/README
inflating: rss_dashlet/magpierss/TROUBLESHOOTING
inflating: rss_dashlet/magpierss/cookbook
creating: rss_dashlet/magpierss/extlib/
inflating: rss_dashlet/magpierss/extlib/Snoopy.class.inc
inflating: rss_dashlet/magpierss/rss_cache.inc
inflating: rss_dashlet/magpierss/rss_fetch.inc
inflating: rss_dashlet/magpierss/rss_parse.inc
inflating: rss_dashlet/magpierss/rss_utils.inc
inflating: rss_dashlet/rss.jpg
inflating: rss_dashlet/rss_dashlet.css
inflating: rss_dashlet/rss_dashlet.inc.php
rss_dashlet
DASHLET NAME: rss_dashlet
CMD=grep register_dashlet /usr/local/nagiosxi/tmp/nNHD6/rss_dashlet/rss_dashlet.inc.php | wc -l
1
OUT=1
Dashlet looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/nNHD6/rss_dashlet /usr/local/nagiosxi/html/includes/dashlets/
CMD: rm -rf /usr/local/nagiosxi/tmp/nNHD6
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/dashlets/rss_dashlet
Done!
INSTALL: Dashlets installed/updated OK.
CREATE TYPE
CREATE SEQUENCE
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_05.sql:23: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "xi_mibs_pkey" for table "xi_mibs"
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_05.sql:23: NOTICE: CREATE TABLE / UNIQUE will create implicit index "xi_mibs_mib_name_key" for table "xi_mibs"
CREATE TABLE
ALTER TABLE
UPGRADE: NRDP is being upgraded...
UPGRADE: NRDP upgraded OK.
UPGRADE: NRDP is being upgraded...
UPGRADE: NRDP upgraded OK.
chmod: cannot access `/var/log/snmptt': No such file or directory
I will send you the logs via private message
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Fri Jan 31, 2020 2:52 pm
by benjaminsmith
Hello
@mdlsupport,
It looks like you are missing the snmptt packages, run the following command ( if they are not installed):
Code: Select all
yum install snmptt net-snmp net-snmp-perl -y
Then try running the upgrade once more:
If it still fails, we should verify the repos are correct on the server.
Did you check the disk space as well (df -h)? Let me know. Thanks.
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Fri Jan 31, 2020 3:06 pm
by mdlsupport
df -h /
Provided over 3 GB free
Re: Failed upgrade from 5.3.2 to 5.6.10
Posted: Fri Jan 31, 2020 3:34 pm
by mdlsupport
Upgrade completed this time. I have logged into the UI and it states 5.6.10. Thank you for the help!