Page 1 of 2

Stuck on upgrade

Posted: Mon Jan 14, 2013 5:21 pm
by niebais
I'm having a problem with one of the hosts, it keeps freezing in one location when I run the upgrades, also the core configuration manager apply is dying on the same spot.

URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2013-01-14 22:06:22-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response...

After that it hangs and I get this in the logs:
[Mon Jan 14 21:52:18 2013] [error] [client ::1] PHP Fatal error: Maximum execution time of 240 seconds exceeded in /var/www/html/nagiosql/functions/config_class.php on line 1164
zend_mm_heap corrupted

I'm usually able to get around these by fixing components up, but this time do you have any clues about what is causing this?

Re: Stuck on upgrade

Posted: Mon Jan 14, 2013 5:39 pm
by scottwilkerson
This looks like it cannot apply the configuration in the 240 time limit set in /etc/php.ini

You may need to increase max_execution_time directive in that file and then restart apache

Code: Select all

service httpd restart

Re: Stuck on upgrade

Posted: Mon Jan 14, 2013 5:46 pm
by mguthrie
Also came across this, may have something to do with the
output_buffering= value
in the php.ini file
http://stackoverflow.com/questions/2247 ... upted-mean

Re: Stuck on upgrade

Posted: Mon Jan 14, 2013 6:02 pm
by niebais
I fixed the corruption problem with the output_buffering value, but the process is still hanging and then I get a message "NAGIOSQL FAILED TO WRITE CONFIGS".

Re: Stuck on upgrade

Posted: Tue Jan 15, 2013 3:25 am
by niebais
I am going to have to send you guys the logs on this one. Without adding a ton of debugging everywhere, I'm not really sure where the problem is right now. I have gotten the logs, let me know who would like to look at them. I don't see anything big here that shows me where the real problem is.

Version is Nagios XI 2012R1.3 running on 6.2.

Re: Stuck on upgrade

Posted: Tue Jan 15, 2013 11:42 am
by mguthrie
Go ahead and send them along to [email protected].

Re: Stuck on upgrade

Posted: Tue Jan 15, 2013 6:16 pm
by niebais
Sent!

Re: Stuck on upgrade

Posted: Tue Jan 15, 2013 7:34 pm
by niebais
scottwilkerson wrote:This looks like it cannot apply the configuration in the 240 time limit set in /etc/php.ini

You may need to increase max_execution_time directive in that file and then restart apache

Code: Select all

service httpd restart
I even tried moving the time limit to 600 seconds then 1000, it just times out.

Re: Stuck on upgrade

Posted: Wed Jan 16, 2013 10:14 am
by mguthrie
Weird, if this information has already be sent by email then ignore this post.

What distro and version is this on?

What version of PHP is being run?

Can you list the PHP packages installed in this system?

Code: Select all

yum list installed | grep php

Re: Stuck on upgrade

Posted: Wed Jan 16, 2013 10:32 am
by niebais
php.i686 5.3.3-14.el6_3 @updates
php-ZendFramework.noarch 1.12.0-1.el6 @epel
php-ZendFramework-Cache-Backend-Memcached.noarch
php-bcmath.i686 5.3.3-14.el6_3 @updates
php-cli.i686 5.3.3-14.el6_3 @updates
php-common.i686 5.3.3-14.el6_3 @updates
php-gd.i686 5.3.3-14.el6_3 @updates
php-ldap.i686 5.3.3-14.el6_3 @updates
php-mbstring.i686 5.3.3-14.el6_3 @updates
php-mcrypt.i686 5.3.3-1.el6 @epel
php-mssql.i686 5.3.3-1.el6 @epel
php-mysql.i686 5.3.3-14.el6_3 @updates
php-odbc.i686 5.3.3-14.el6_3 @updates
php-pdo.i686 5.3.3-14.el6_3 @updates
php-pear.noarch 1:1.9.4-4.el6 @base
php-pear-HTML-Template-IT.noarch 1.3.0-2.el5 @/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pecl-memcache.i686 3.0.5-4.el6 @base
php-pgsql.i686 5.3.3-14.el6_3 @updates
php-process.i686 5.3.3-14.el6_3 @updates
php-snmp.i686 5.3.3-14.el6_3 @updates
php-xml.i686 5.3.3-14.el6_3 @updates