Page 1 of 3

failed to upgrade from 5.2.0 to 5.2.2

Posted: Fri Nov 13, 2015 11:59 pm
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.

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 12:16 am
by Box293
Can you please double check your SSL setup:

https://assets.nagios.com/downloads/nag ... s%20XI.pdf

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 1:56 am
by doneil326
all settings match the requirements of the document

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 10:58 am
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

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 1:46 pm
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

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 2:31 pm
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

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 3:53 pm
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

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 4:06 pm
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

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Mon Nov 16, 2015 11:57 pm
by doneil326
this is in the archive.zip as ls.txt

Re: failed to upgrade from 5.2.0 to 5.2.2

Posted: Tue Nov 17, 2015 2:36 pm
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