Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCP wont Start Version 2.3.4

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 832 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rommelzkie
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        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.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • R
          rommelzkie
          last edited by

          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

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @rommelzkie
            last edited by Gertjan

            @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 ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 1
            • R
              rommelzkie
              last edited by

              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.

              GertjanG GrimsonG 2 Replies Last reply Reply Quote 0
              • GertjanG
                Gertjan @rommelzkie
                last edited by

                @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.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                R 1 Reply Last reply Reply Quote 0
                • R
                  rommelzkie @Gertjan
                  last edited by

                  @gertjan

                  Yes only on GUI

                  1 Reply Last reply Reply Quote 0
                  • GrimsonG
                    Grimson Banned @rommelzkie
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.