DHCP wont Start Version 2.3.4
-
Hello
My DHCP service suddenly stops and wont start. here is the logs
For info, please visit https://www.isc.org/software/dhcp/
Oct 5 11:25:21 dhcpd /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.
Oct 5 11:25:21 dhcpd ^
Oct 5 11:25:21 dhcpd Exiting
Oct 5 11:25:21 dhcpd If you think you have received this message due to a bug rather
Oct 5 11:25:21 dhcpd than a configuration issue please read the section on submitting
Oct 5 11:25:21 dhcpd bugs on either our web page at www.isc.org or in the README file
Oct 5 11:25:21 dhcpd before submitting a bug. These pages explain the proper
Oct 5 11:25:21 dhcpd process and the information we find helpful for debugging..
Oct 5 11:25:21 dhcpd exiting.
Oct 5 11:27:12 dhcpd Internet Systems Consortium DHCP Server 4.3.5
Oct 5 11:27:12 dhcpd Copyright 2004-2016 Internet Systems Consortium.
Oct 5 11:27:12 dhcpd All rights reserved.
Oct 5 11:27:12 dhcpd For info, please visit https://www.isc.org/software/dhcp/
Oct 5 11:27:12 dhcpd Config file: /etc/dhcpd.conf
Oct 5 11:27:12 dhcpd Database file: /var/db/dhcpd.leases
Oct 5 11:27:12 dhcpd PID file: /var/run/dhcpd.pid
Oct 5 11:27:12 dhcpd Internet Systems Consortium DHCP Server 4.3.5
Oct 5 11:27:12 dhcpd Copyright 2004-2016 Internet Systems Consortium.
Oct 5 11:27:12 dhcpd All rights reserved.
Oct 5 11:27:12 dhcpd For info, please visit https://www.isc.org/software/dhcp/
Oct 5 11:27:12 dhcpd /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.
Oct 5 11:27:12 dhcpd ^Hope somebody can help me. thanks
-
Hi,
I advise you to do what dhcpd is asking you to do :
/var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.
Delete the file.
dhcpd will regenerate it.
Right now, he isn't capable of reading it. -
Im sorry but i am newbie in pfsense. can you give me tips and guide on how to delete the file? i already erased the contents of that file but i dont know how to delete it.
Thank you
-
@rommelzkie said in DHCP wont Start Version 2.3.4:
i already erased the contents of that file
So its size is zero bytes ?
That doesn't correspond with the message "whitespace too long, buffer overflow."Use console mode, option 8, and the 50 years old command :
Check if the file exists :ls -al /var/dhcpd/var/dbdhcpd.leases
See what's in it :
cat /var/dhcpd/var/db/dhcpd.leases
Delete it :
rm /var/dhcpd/var/db/dhcpd.leases
Or use the GUI : Diagnostics => Command Prompt
Btw
The file is here /var/dhcpd/var/db/dhcpd.leases and not in /var/dbdhcpd.leases because dhcpd is chrooted into /var/dhcpd.Also : what happened that this file became corrupt ? That' quiet very rare. You pulled the plug or something like that ?
-
Thank you for that very detailed information.
Yes it is 0 bytes.
The problem happened when we had power iinterruption last night. If forces our pfsense box to shut down forcefully.
After boot up. I added static ip mapping to the dhcp lease.
After that, i noticed dhcp service doesnt turn on. And this error occurs.
-
@rommelzkie said in DHCP wont Start Version 2.3.4:
After boot up. I added static ip mapping to the dhcp lease.
Using the GUI, right ?
A human should never use/touch/edit this "dhcpd.leases" file. -
Yes only on GUI
-
@rommelzkie said in DHCP wont Start Version 2.3.4:
The problem happened when we had power iinterruption last night. If forces our pfsense box to shut down forcefully.
That likely corrupted the disk, take a backup of your config and do a fresh install. Preferably with a currently supported pfSense version, the 2.3 line is EOL and 2.3.4 isn't even the most current in the 2.3 line. Also get an UPS to protect against power interruptions.