Stuck on upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Stuck on upgrade

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Stuck on upgrade

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Stuck on upgrade

Post 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
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Stuck on upgrade

Post 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".
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Stuck on upgrade

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Stuck on upgrade

Post by mguthrie »

Go ahead and send them along to [email protected].
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Stuck on upgrade

Post by niebais »

Sent!
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Stuck on upgrade

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Stuck on upgrade

Post 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
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Stuck on upgrade

Post 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
Locked