Upgrade Issue through Web Interface

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Upgrade Issue through Web Interface

Post by Berto »

Hello,

I noticed that a new update is available (5R1.0) and when I attempt to upgrade from web interface I get an error that the update failed and try to manually update. I'm trying to find the logs for this failed update to see where I can start troubleshooting this issue. Where would it be located?

Thanks,

--Berto
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Upgrade Issue through Web Interface

Post by jomann »

Well the update outputs the error and creates an upgrade.log. Can you copy in the lines here where the upgrade is failing?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Upgrade Issue through Web Interface

Post by Berto »

Hello,

Here is the output of the upgrade.log file.

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Core Config Manager (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
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...

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

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
Downloading Latest Nagios XI Tarball...


--Berto
r34220
Posts: 72
Joined: Fri Feb 06, 2015 6:47 pm

Re: Upgrade Issue through Web Interface

Post by r34220 »

I have the same issue.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Upgrade Issue through Web Interface

Post by jomann »

What was the output when you tried to do it manually? It seems like it's getting stuck downloading the tarball.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Upgrade Issue through Web Interface

Post by Berto »

Hello,

I think I might have discovered my issue. I think it's my corporate proxy that's causing me the issue, let me see if that's really it and I'll post back.

--Berto
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Upgrade Issue through Web Interface

Post by jomann »

Alright great! Let us know if you get it working or not. I did just test the file to make sure that it was located in the correct spot and that XI is looking for the right file. Also note that it uses https to connect and download the tarball.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Upgrade Issue through Web Interface

Post by Berto »

Hello,

Well the problem was the proxy as I had to use the ---no-check-certificate for wget. After downloading the latest nagios xi tar file and changing the upgrade script for wget it started upgrading, but I have ran into another problem. I uploaded the upgrade.log file but this is the error I saw;

Installing new XI templates...
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=******' -O nagiosql.login--2015-10-01 22:13:23-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2015-10-01 22:13:23 ERROR 403: Forbidden.

NAGIOSQL LOGIN FAILED!

--Berto
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Issue through Web Interface

Post by lmiltchev »

Did you configure your proxy according to our recommendations? Did you exclude localhost in the "/etc/wgetrc"?

https://support.nagios.com/wiki/index.p ... th_Proxies
Be sure to check out our Knowledgebase for helpful articles and solutions!
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Upgrade Issue through Web Interface

Post by Berto »

Hello,

Yes I have exclude localhost in the /etc/wgetrc file. I've uploaded the wgetrc file so you can take a look.

--Berto
You do not have the required permissions to view the files attached to this post.
Locked