Fatal error: Maximum execution time of 30 seconds exceeded

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Fatal error: Maximum execution time of 30 seconds exceeded

Post by jamiebah »

I get the following error message when trying to rebuild the poller cache,
Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/www/data-dist/cacti/include/config_settings.php on line 242
I can't find where this timeout value is set. I need to increase it so that my poller cache will rebuild...

Is this something in the config for Cacti or a default for PHP, I searched the Cacti settings files and also the ini file for php, but I cannot find it anywhere.

(I tried to compile cactid figuring that this would fix the problem, but it won't compile, complains about not finding the snmp libs. Tried the compile options as stated in the forums here for FreeBSD and still no go)

FreeBSD 4.9, Cacti 0.8.4a, PHP 4.3.1

Can anyone help?
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

It is setting called "maximum_execution_time" in php.ini. By default it is set to 30... you need to increase it to some longer time like 300.

- bulek
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Thank you!

Post by jamiebah »

Thanks!!
rewt

Post by rewt »

I thought that was the problem as well till I found that this script: include/adodb/adodb-time.inc.php has tried to disable the time limit with the set_time_limit(0) function.
I changed that to set_time_limit(300) as well. It works fine now.

I only done this as a last resort.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Hmm... set_time_limit(0) means no time restriction for script execution. But if it works for you then why not :)

- bulek
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests