DHCP Crash Report - Solved
-
I attempted to change my subnet from the default 192.168.1.0 to 192.168.99.0 so I could setup a VPN with my friend who is using the default. I stopped the DHCP service, deleted all of the in-use leases and changed the LAN IP to 192.168.99.1. I set a static IP on my PC and changed my DHCP scope to 192.168.99.20-192.168.99.99 and noticed there were some extra leases I missed if I clicked the "All Configured Leases" on the DHCP Lease page. I attempted to delete those, but kept getting a Crash Report, which I didn't think to save, but did submit to the developers through the automated interface.
I turned the DHCP service back on, after a few reboots and looking through the settings, I was unable to get any leases on my network devices. Even with a static IP set, I couldn't access the IPv4 internet, only IPv6 enabled sites. My wife started bugging me about the Internet being down, so I decided to revert my changes. I changed everything back to the default subnet and I am still getting crash reports on the DHCP service (though a different error). This error shows up by just refreshing the dashboard. Tried restarting the service, and rebooting. Still shows up.
Pasted below, not sure if this is the correct forum for this.
Crash report begins. Anonymous machine information: amd64 10.3-RELEASE-p9 FreeBSD 10.3-RELEASE-p9 #1 5fc1b19(RELENG_2_3_2): Tue Sep 27 12:26:06 CDT 2016 root@ce23-amd64-builder:/builder/pfsense-232/tmp/obj/builder/pfsense-232/tmp/FreeBSD-src/sys/pfSense Crash report details: PHP Errors: [31-Dec-2016 11:50:03 America/Los_Angeles] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /usr/local/bin/dhcpd_gather_stats.php on line 66 [31-Dec-2016 11:50:03 America/Los_Angeles] PHP Stack trace: [31-Dec-2016 11:50:03 America/Los_Angeles] PHP 1\. {main}() /usr/local/bin/dhcpd_gather_stats.php:0 [31-Dec-2016 11:50:03 America/Los_Angeles] PHP 2\. file() /usr/local/bin/dhcpd_gather_stats.php:66 [31-Dec-2016 11:51:07 America/Los_Angeles] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /usr/local/bin/dhcpd_gather_stats.php on line 66 [31-Dec-2016 11:51:07 America/Los_Angeles] PHP Stack trace: [31-Dec-2016 11:51:07 America/Los_Angeles] PHP 1\. {main}() /usr/local/bin/dhcpd_gather_stats.php:0 [31-Dec-2016 11:51:07 America/Los_Angeles] PHP 2\. file() /usr/local/bin/dhcpd_gather_stats.php:66 [31-Dec-2016 11:52:10 America/Los_Angeles] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /usr/local/bin/dhcpd_gather_stats.php on line 66 [31-Dec-2016 11:52:10 America/Los_Angeles] PHP Stack trace: [31-Dec-2016 11:52:10 America/Los_Angeles] PHP 1\. {main}() /usr/local/bin/dhcpd_gather_stats.php:0 [31-Dec-2016 11:52:10 America/Los_Angeles] PHP 2\. file() /usr/local/bin/dhcpd_gather_stats.php:66 [31-Dec-2016 11:53:14 America/Los_Angeles] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /usr/local/bin/dhcpd_gather_stats.php on line 66 [31-Dec-2016 11:53:14 America/Los_Angeles] PHP Stack trace: [31-Dec-2016 11:53:14 America/Los_Angeles] PHP 1\. {main}() /usr/local/bin/dhcpd_gather_stats.php:0 [31-Dec-2016 11:53:14 America/Los_Angeles] PHP 2\. file() /usr/local/bin/dhcpd_gather_stats.php:66 -
I still have the expired leases and when I try to delete them I get the following error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2 bytes) in /usr/local/www/status_dhcp_leases.php on line 79 Call Stack: 0.0003 231568 1\. {main}() /usr/local/www/status_dhcp_leases.php:0 0.0625 1047440 2\. file() /usr/local/www/status_dhcp_leases.php:79 PHP ERROR: Type: 1, File: /usr/local/www/status_dhcp_leases.php, Line: 79, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2 bytes)After the above error, the dhcpd service is in a stopped state. Service does seem to start without issue.
-
Looking through the DHCP log I found the following error:
/var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.That file didn't exist, and through this link, I found that it was actually /var/dhcpd/var/db/dhcpd.leases instead. That file was a bit over 3MB, so I deleted it and restarted the service. Leases came pouring in from throughout the network.
I'm not sure why all this started when trying to change my subnet, but next time I try I'll make sure I have more time to fix any issues that come up.