Got this Error whilst deleting some idle/inactive ip's
-
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 RELENG_2_7_0-n255866-686c8d3c1f0: Wed Jun 28 04:21:19 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/obj/amd64/LwYAddCr/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/sources/FreeBSD-src-RELCrash report details:
PHP Errors:
[25-Jan-2024 07:28:21 America/Belize] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 134217736 bytes) in /usr/local/www/status_dhcp_leases.php on line 62
[25-Jan-2024 07:28:21 America/Belize] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 134217736 bytes) in /etc/inc/system.inc on line 690
[25-Jan-2024 07:28:25 America/Belize] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 134217736 bytes) in /usr/local/www/status_dhcp_leases.php on line 62
[25-Jan-2024 07:28:26 America/Belize] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 134217736 bytes) in /usr/local/www/status_dhcp_leases.php on line 62No FreeBSD crash data found.
-
Normally, the DHCP server maintains and uses a reasonable /var/dhcpd/var/db/dhcpd.leases xxx Kilo bytes file. Dd you check the file ?
For some reason, yours went to the "several mega bytes" size. This could be possible, if you have tens of thousands of LAN devices ... But reading it in, to show a web page, will use all memory available to PHP, and it aborts.
Or some other "2.7.0" bug, I can't recall. as that version is pretty old now.Example : I have about 250 active DHCP clients on my two LANs. My /var/dhcpd/var/db/dhcpd.leases is about 50Kbytes i size.
Also, when I add a new device, this is one of the files I check afterwards, together with the Status > System Logs > DHCP to see if it behaves correctly.What about upgrading ?
-
@Gertjan
found the root of the problem to be that the file had whitespaces, so I deleted it and let the DHCP server to re-assign IP's. I thought I had upgraded it to the latest community Version.