DHCPD Stopped working, fixed, but trying to figure it out.
-
I've been trying to solve a problem with my pfSense setup, (no need to go into it here) so I've been trying various things. My wife told me this evening she had no internet, so I started investigating.
DHCP was not running, after coming up with an error, as seen in this from the log file:Feb 12 20:32:46 dhcpd 4463 /etc/dhcpd.conf line 62: semicolon expected.
Feb 12 20:32:46 dhcpd 4463 option custom-s_lan_4-0 4,
Feb 12 20:32:46 dhcpd 4463 ^
Feb 12 20:32:46 dhcpd 4463 Configuration file errors encountered -- exitingafter that it showed several lines of how to report bugs to isc.org, and then:
Feb 12 22:32:46 dhcpd 74267 exiting.
after that all the messages were from dhcp6c.
I'm a newb on pfSense and BSD, so I tried to 'ee' the file /etc/dhcpd.conf, but it does not exist, I guess it's a temp file.
I tried undoing everything i could think of I might have done to the DHCP server, but didn't remember doing anything specific.
Finally I did a Restore recent configuration from the console, working my way back, #25 didn't work, but luckily #30, the last one available, from yesterday morning, was marked "DHCP Server Settings Saved" and it fixed the issue. So somewhere between #25 and #30 is something that caused the problem.So my question is how do I save the configuration files? Something I did working solely in the webConfigurator caused a configuration that was missing a semi-colon, which sounds like a bug someone would be interested in fixing (unless it's known bug?) Since it was the oldest available, I can't make any changes until I backup those files.
-
@coreycoop said in DHCPD Stopped working, fixed, but trying to figure it out.:
Feb 12 20:32:46 dhcpd 4463 /etc/dhcpd.conf line 62: semicolon expected.
Can you show the file that produces the error ?
It's here : /var/dhcpd/etc/dhcpd.conf
-
@gertjan said in DHCPD Stopped working, fixed, but trying to figure it out.:
/var/dhcpd/etc/dhcpd.conf
dhcpd.conf.works.txt
dhcpd.conf.dhcp-fails.txtIs there any way to save the #30 and #29 backups and get more info, like what exactly I did in the WebConfigurator to cause this problem?
-
@coreycoop said in DHCPD Stopped working, fixed, but trying to figure it out.:
Something I did working solely in the webConfigurator caused a configuration that was missing a semi-colon, which sounds like a bug someone would be interested in fixing (unless it's known bug?)
All possible bugs should be posted to https://redmine.pfsense.org/
-
@coreycoop said in DHCPD Stopped working, fixed, but trying to figure it out.:
Is there any way to save the #30 and #29 backups and get more info, like what exactly I did in the WebConfigurator to cause this problem?
There's a diff option in the Backup Config. You can also download them directly and do a diff comparison locally.