failed to upgrade from 5.2.0 to 5.2.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

failed to upgrade from 5.2.0 to 5.2.2

Post by doneil326 »

running the ./uprgrade i get this

error_log

[Fri Nov 13 21:57:45 2015] [crit] [client 127.0.0.1] (13)Permission denied: /usr/local/nagiosxi/html/backend/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=pass' -O nagiosql.login--2015-11-13 21:57:00-- https://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
WARNING: cannot verify localhost’s certificate, issued by “/DC=ad/DC=compan/CN=ca”:
Unable to locally verify the issuer’s authority.
WARNING: no certificate subject alternative name matches
requested host name “localhost”.
HTTP request sent, awaiting response... 403 Forbidden
2015-11-13 21:57:01 ERROR 403: Forbidden.

no proxy settings for wgetrc or any other proxy settings.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by Box293 »

Can you please double check your SSL setup:

https://assets.nagios.com/downloads/nag ... s%20XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by doneil326 »

all settings match the requirements of the document
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by tgriep »

Can you run the following as root in a command prompt and post the output?

Code: Select all

ls -al /usr/local/nagiosxi/html
ls -al /usr/local/nagiosxi/html/backend/
Can you upload the following files so we can review them?

Code: Select all

/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
/usr/local/nagiosxi/html/config.inc.php
Be sure to check out our Knowledgebase for helpful articles and solutions!
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by doneil326 »

tgriep wrote:Can you run the following as root in a command prompt and post the output?

Code: Select all

ls -al /usr/local/nagiosxi/html
ls -al /usr/local/nagiosxi/html/backend/
Can you upload the following files so we can review them?

Code: Select all

/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
/usr/local/nagiosxi/html/config.inc.php
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by tgriep »

The configs look good. Lets check the firewall by running the following. Please post the output here.

Code: Select all

service iptables status
Be sure to check out our Knowledgebase for helpful articles and solutions!
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by doneil326 »

Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
2 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
4 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
5 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
6 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
7 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
8 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by scottwilkerson »

tgriep wrote:Can you run the following as root in a command prompt and post the output?

Code: Select all

ls -al /usr/local/nagiosxi/html
ls -al /usr/local/nagiosxi/html/backend/
I believe you missed this from a previous request
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by doneil326 »

this is in the archive.zip as ls.txt
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: failed to upgrade from 5.2.0 to 5.2.2

Post by tgriep »

Can you run the following and post the output?

Code: Select all

ls -l /usr/local/nagiosxi/html/includes/components/ccm/
ls -l /usr/local/nagiosxi/scripts
grep -r htacc /etc/httpd/*
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked