Page 1 of 4

Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:03 pm
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

Re: Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:07 pm
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?

Re: Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:18 pm
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

Re: Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:21 pm
by r34220
I have the same issue.

Re: Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:25 pm
by jomann
What was the output when you tried to do it manually? It seems like it's getting stuck downloading the tarball.

Re: Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:34 pm
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

Re: Upgrade Issue through Web Interface

Posted: Wed Sep 30, 2015 1:38 pm
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.

Re: Upgrade Issue through Web Interface

Posted: Thu Oct 01, 2015 9:17 pm
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

Re: Upgrade Issue through Web Interface

Posted: Fri Oct 02, 2015 9:54 am
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

Re: Upgrade Issue through Web Interface

Posted: Sat Oct 03, 2015 12:06 pm
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