DHCP Service is not Starting



  • Hi All!

    Good day. Hope you are all doing fine in this time of pandemic.
    I'm having with my pfsense box. DHCP service is not starting.
    DHCP server is working before but its not working now.

    Here is the log:
    Jul 23 14:22:40 dhcpd Internet Systems Consortium DHCP Server 4.3.6-P1
    Jul 23 14:22:40 dhcpd Copyright 2004-2018 Internet Systems Consortium.
    Jul 23 14:22:40 dhcpd All rights reserved.
    Jul 23 14:22:40 dhcpd For info, please visit https://www.isc.org/software/dhcp/
    Jul 23 14:22:40 dhcpd Config file: /etc/dhcpd.conf
    Jul 23 14:22:40 dhcpd Database file: /var/db/dhcpd.leases
    Jul 23 14:22:40 dhcpd Internet Systems Consortium DHCP Server 4.3.6-P1
    Jul 23 14:22:40 dhcpd PID file: /var/run/dhcpd.pid
    Jul 23 14:22:40 dhcpd Copyright 2004-2018 Internet Systems Consortium.
    Jul 23 14:22:40 dhcpd All rights reserved.
    Jul 23 14:22:40 dhcpd For info, please visit https://www.isc.org/software/dhcp/
    Jul 23 14:22:40 dhcpd /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.
    Jul 23 14:22:40 dhcpd ^
    Jul 23 14:22:40 dhcpd Exiting
    Jul 23 14:22:40 dhcpd If you think you have received this message due to a bug rather
    Jul 23 14:22:40 dhcpd than a configuration issue please read the section on submitting
    Jul 23 14:22:40 dhcpd bugs on either our web page at www.isc.org or in the README file
    Jul 23 14:22:40 dhcpd before submitting a bug. These pages explain the proper
    Jul 23 14:22:40 dhcpd process and the information we find helpful for debugging.
    Jul 23 14:22:40 dhcpd exiting.

    Any info is greatly appreciated.



  • @limez17 said in DHCP Service is not Starting:

    /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.

    Try this : Delete that file.

    First, make sure the DHCP server is stopped.
    Then :

    rm /var/db/dhcpd.leases
    

    and start DHCP again.



  • @Gertjan Thank you for responding. Done:
    [2.4.4-RELEASE][root@]/var/db: ls -lrt dh*
    ---------- 1 root wheel 419 Aug 8 2019 dhclient.leases.igb2.bkp
    ---------- 1 root wheel 838 Aug 8 2019 dhclient.leases.igb0.bkp

    But still unable to start the DHCP service.



  • It seems that the files are extended with the NIC driver name, like em0 or igb0

    Probably a file like /var/db/ dhclient.leases doesn't even exist.

    I do not have - and never saw these dot bkp files, probably backup files.



  • @Gertjan I only backup dhclient.leases files to simulate deletion, i don't it to be deleted just in case my box will encounter an error,



  • Anyone who has idea on this? Thank you!



  • @limez17 said in DHCP Service is not Starting:

    Jul 23 14:22:40 dhcpd /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.

    What do you find a that lease file ?

    You should sections like this :

    lease {
      interface "em3";
      fixed-address 192.168.10.2;
      option subnet-mask 255.255.255.0;
      option routers 192.168.10.1;
      option domain-name-servers 192.168.10.1;
      option domain-name "home";
      option broadcast-address 192.168.10.255;
      option dhcp-lease-time 86400;
      option dhcp-message-type 5;
      option dhcp-server-identifier 192.168.10.1;
      renew 5 2020/7/24 02:09:50;
      rebind 5 2020/7/24 11:09:50;
      expire 5 2020/7/24 14:09:50;
    }
    lease {
      interface "em3";
      fixed-address 192.168.10.2;
      option subnet-mask 255.255.255.0;
      option routers 192.168.10.1;
      option domain-name-servers 192.168.10.1;
      option domain-name "home";
      option broadcast-address 192.168.10.255;
      option dhcp-lease-time 86400;
      option dhcp-message-type 5;
      option dhcp-server-identifier 192.168.10.1;
      renew 5 2020/7/24 14:09:50;
      rebind 5 2020/7/24 23:09:50;
      expire 6 2020/7/25 02:09:50;
    }
    
    etc
    

    Strange is that the DHCP server creates and maintains this file.
    It should be able to read it back in.
    What does it put in this file that it can't read back ?


Log in to reply