PHP Errors on csrf-magic.php and diag_command.php files
-
Hi,
I have been using pfsense for more than 3 years...
Package used are simple : Cron, ntopng, openvpn-client-export
I have very very few rulesI received notification emails from my firewall with the following errors...
I specify that I did nothing in the interface before discovering the errors in question.
How can I find the root cause of these error messages?Crash report begins. Anonymous machine information: amd64 12.3-STABLE FreeBSD 12.3-STABLE RELENG_2_6_0-XXXXXXXXXXXXXXXXXXXXXXXXXXX Crash report details: PHP Errors: [08-Feb-2023 16:06:02 Europe/Paris] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php on line 174 [08-Feb-2023 16:06:02 Europe/Paris] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161 [08-Feb-2023 16:07:19 Europe/Paris] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php on line 174 [08-Feb-2023 16:07:19 Europe/Paris] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161 [08-Feb-2023 16:07:23 Europe/Paris] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/www/diag_command.php on line 174 [08-Feb-2023 16:07:23 Europe/Paris] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161 No FreeBSD crash data found.
-
@elrick75 said in PHP Errors on csrf-magic.php and diag_command.php files:
(tried to allocate 4096 bytes) in /usr/local/www/diag_command.php
It looks like something was run in the Diag > Command Prompt page that didn't have a limited runtime and ended up exhausting the PHP memory limit.
Only ever run things there that complete immediately. So never run something likeping 8.8.8.8
there because it will just run continually in the background . If you need to set a count limit so it returns after that likeping -c 3 8.8.8.8
.Steve