Page 1 of 1
NagiosXI 5.6.0 upgarde error
Posted: Thu Apr 25, 2019 5:23 pm
by Sampath.Basireddy
NagiosXI 5.6.0 upgrade failed with below error:
Code: Select all
Error: php56w-common conflicts with php-common-5.4.16-46.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Re: NagiosXI 5.6.0 upgarde error
Posted: Fri Apr 26, 2019 9:43 am
by benjaminsmith
Hi
@Sampath.Basireddy,
Do you have any additional repos installed on your server? Can you post the full output to the following command:
Thanks.
Re: NagiosXI 5.6.0 upgarde error
Posted: Fri Apr 26, 2019 10:25 am
by Sampath.Basireddy
Sent you a PM with the output of yum repolist -v
Thank You.
Re: NagiosXI 5.6.0 upgarde error
Posted: Fri Apr 26, 2019 10:29 am
by jomann
This is an issue caused with trying to update the nagiosxi-deps package when you have a different version of PHP installed, to get around this issue, when you extract the nagiosxi folder from the tarball, edit the upgrade script:
Line 201, delete these lines:
Code: Select all
yumlocalinstall="$(readlink -e ./$xiverrpm-$xiver-1.noarch.rpm)"
if ! yum -y --nogpgcheck localinstall $yumlocalinstall; then
yum clean all
yum -y --nogpgcheck localinstall $yumlocalinstall
fi
Then, where you deleted those, add:
Re-run the upgrade process.
Re: NagiosXI 5.6.0 upgarde error
Posted: Fri Apr 26, 2019 5:28 pm
by Sampath.Basireddy
After changing the mentioned changes to upgrade script, upgrade ran find without any errors, but now the console is not opening.
Getting page cannot be displayed. Please help.
Code: Select all
Checked 488 contacts.
Checked 20 contact groups.
Checked 210 commands.
Checked 573 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1235 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 573 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1336
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
Nagios XI Upgrade Complete!
---------------------------
You can access the Nagios XI web interface by visiting:
http://<nagiosserverip>/nagiosxi/
Re: NagiosXI 5.6.0 upgarde error
Posted: Sat Apr 27, 2019 6:55 pm
by Sampath.Basireddy
Got it figured, a bunch of files permissions changed to root which appeared to have caused the problem.
Changing the ownership to nagios:nagios fixed the issue.
Here is one of the error message I found in "/var/log/httpd/ssl_error_log. There were more than few such errors:
Code: Select all
[Fri Apr 26 21:11:59.668995 2019] [:error] [pid 13542] [client 10.10.120.143:51643] PHP Warning: require_once(/usr/local/nagios/nagiosxi/html/includes/utils-graphs.inc.php): failed to open stream: Permission denied in /usr/local/nagios/nagiosxi/html/includes/utils.inc.php on line 25,
Here are a list of files I found to have permissions changed or new files added after upgrade to 5.6.0 which were owned by root.
Code: Select all
/usr/local/nagios/nagiosxi/html/includes/utils-graphs.inc.php
/usr/local/nagiosxi/html/images/disabled_small.png
/usr/local/nagiosxi/html/images/enabled_small.png
/usr/local/nagiosxi/html/images/control_stop.png
/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/activedirectory.png
/usr/local/nagiosxi/html/images/control_restart.png
/usr/local/nagiosxi/html/images/disabled_unimportant_small.png
/usr/local/nagios/nagiosxi/html/includes/utils.inc.php
I still see this error though, but does not really help to identify what the issue is looking at the message:
Code: Select all
[Fri Apr 26 21:53:56.873756 2019] [:error] [pid 17145] [client 10.20.132.175:51890] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Re: NagiosXI 5.6.0 upgarde error
Posted: Mon Apr 29, 2019 10:33 am
by benjaminsmith
Hi Sampeth,
Sounds like you were able to it resolve it. Regarding the last message, please try running the script to reset the file permissions. Log into the terminal as root and run the following:
Code: Select all
/usr/local/nagiosxi/scripts/reset_config_perms.sh
Re: NagiosXI 5.6.0 upgarde error
Posted: Thu May 02, 2019 11:23 am
by Sampath.Basireddy
Thanks
@benjaminsmith
I think am all good for now, please close the topic.
Re: NagiosXI 5.6.0 upgarde error
Posted: Thu May 02, 2019 12:55 pm
by benjaminsmith
Hi Sampath,
I think am all good for now, please close the topic.
Great. Thanks for the update.