utilities.php errors

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ritter6281
Posts: 11
Joined: Fri Sep 30, 2005 5:12 pm
Location: Madison, WI

utilities.php errors

Post by ritter6281 »

When I try to view the cacti log via the cacti web interface (or clear the log via the same interface) I get the following error:

[client 192.168.1.5] PHP Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 71 bytes) in /var/www/cacti/utilities.php on line 115, referer: http://10.10.20.11/cacti/utilities.php? ... ller_cache
Allowed memory size of 50331648 bytes exhausted (tried to allocate 128 bytes)
[client 192.168.1.5] PHP Warning: unlink(/var/www/cacti/log/cacti.log): Permission denied in /var/www/cacti/utilities.php on line 195, referer: http://10.10.20.11/cacti/utilities.php? ... ller_cache
[client 192.168.1.5] PHP Warning: touch(): Utime failed: Operation not permitted in /var/www/cacti/utilities.php on line 196, referer: http://10.10.20.11/cacti/utilities.php? ... ller_cache
[client 192.168.1.5] PHP Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 71 bytes) in /var/www/cacti/utilities.php on line 115, referer: http://10.10.20.11/cacti/utilities.php? ... ller_cache
Allowed memory size of 50331648 bytes exhausted (tried to allocate 128 bytes)
[client 192.168.1.5] PHP Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 151 bytes) in /var/www/cacti/utilities.php on line 115, referer: http://10.10.20.11/cacti/utilities.php? ... ller_cache
Allowed memory size of 50331648 bytes exhausted (tried to allocate 128 bytes)


I am running the most recent version of Cacti and running on RedHat Enterprise v4 for Xeon 64bit. Any ideas? I tried uping the script memory in php.ini, but the error does nto go away.

Nicholas
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You log is to large for php to load based upon that fact that php is limited in the memory it can use.

Manually clear you log and you will be able to view it, or view it from the command line.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Debug logging level is very dangerous in large installations, use it very sparingly.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest