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

    DHCP Server Issues

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    8 Posts 4 Posters 11.6k 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.
    • P
      phospher
      last edited by

      I'm running build```
      2.0-RC1 (i386)
      built on Tue Mar 22 05:44:21 EDT 2011

      
      My dhcp server seems to have quit. Very little in the logs about it.. The only useful peice of info seems to be "dhcpd exiting" It will not manually restart either. At least not by the "services" page or a reboot.
      
      Anyone else seeing this?
      1 Reply Last reply Reply Quote 0
      • P
        phospher
        last edited by

        Here's a bit more info from the logs. These firewalls are configured in a cluster with failover dhcp.

        
        Mar 23 08:57:36  dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
        Mar 23 08:57:36 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
        Mar 23 08:57:36  dhcpd: All rights reserved.
        Mar 23 08:57:36  dhcpd: For info, please visit https://www.isc.org/software/dhcp/
        Mar 23 08:57:36 dhcpd: Wrote 0 deleted host decls to leases file.
        Mar 23 08:57:36  dhcpd: Wrote 0 new dynamic host decls to leases file.
        Mar 23 08:57:36  dhcpd: Wrote 102 leases to leases file.
        Mar 23 08:57:36  dhcpd: Listening on BPF/em1/00:50:56:b0:00:20/172.16.32.0/24
        Mar 23 08:57:36  dhcpd: Sending on   BPF/em1/00:50:56:b0:00:20/172.16.32.0/24
        Mar 23 08:57:36  dhcpd: Sending on   Socket/fallback/fallback-net
        Mar 23 08:57:36  dhcpd: failover peer dhcp0: I move from normal to startup
        Mar 23 08:57:36  dhcpd: There's already a DHCP server running.
        Mar 23 08:57:36  dhcpd:
        Mar 23 08:57:36  dhcpd: If you did not get this software from ftp.isc.org, please
        Mar 23 08:57:36  dhcpd: get the latest from ftp.isc.org and install that before
        Mar 23 08:57:36  dhcpd: requesting help.
        Mar 23 08:57:36  dhcpd:
        Mar 23 08:57:36  dhcpd: If you did get this software from ftp.isc.org and have not
        Mar 23 08:57:36  dhcpd: yet read the README, please read it before requesting help.
        Mar 23 08:57:36  dhcpd: If you intend to request help from the dhcp-server@isc.org
        Mar 23 08:57:36  dhcpd: mailing list, please read the section on the README about
        Mar 23 08:57:36  dhcpd: submitting bug reports and requests for help.
        Mar 23 08:57:36  dhcpd:
        Mar 23 08:57:36  dhcpd: Please do not under any circumstances send requests for
        Mar 23 08:57:36  dhcpd: help directly to the authors of this software - please
        Mar 23 08:57:36  dhcpd: send them to the appropriate mailing list as described in
        Mar 23 08:57:36  dhcpd: the README file.
        Mar 23 08:57:36 dhcpd:
        Mar 23 08:57:36 dhcpd: exiting.
        
        
        1 Reply Last reply Reply Quote 0
        • P
          phospher
          last edited by

          If I run the following command:

          /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf em1
          

          I get the following error.

          Internet Systems Consortium DHCP Server 4.1.1-P1
          Copyright 2004-2010 Internet Systems Consortium.
          All rights reserved.
          For info, please visit https://www.isc.org/software/dhcp/
          Wrote 0 deleted host decls to leases file.
          Wrote 0 new dynamic host decls to leases file.
          Wrote 0 leases to leases file.
          Listening on BPF/em1/00:50:56:b0:00:20/172.16.32.0/24
          Sending on   BPF/em1/00:50:56:b0:00:20/172.16.32.0/24
          Sending on   Socket/fallback/fallback-net
          # There's already a DHCP server running.
          
          If you did not get this software from ftp.isc.org, please
          get the latest from ftp.isc.org and install that before
          requesting help.
          
          If you did get this software from ftp.isc.org and have not
          yet read the README, please read it before requesting help.
          If you intend to request help from the dhcp-server@isc.org
          mailing list, please read the section on the README about
          submitting bug reports and requests for help.
          
          Please do not under any circumstances send requests for
          help directly to the authors of this software - please
          send them to the appropriate mailing list as described in
          the README file.
          
          exiting.
          
          
          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by

            The command output and the log extract both contain:

            There's already a DHCP server running.

            There should be only one copy of dhcpd running per interface.

            dhcpd clearly thinks it is already running. You apparently think there is no dhcpd running. You can't both be right. Please provide additional evidence to support your assertion.

            The pfsense shell command

            ps ax | grep dhcpd

            will show all running dhcpd processes.

            pfSense does (unnecessarily) start some programs multiple times. I don't know if that applies to dhcpd.

            1 Reply Last reply Reply Quote 0
            • P
              phospher
              last edited by

              @wallabybob:

              dhcpd clearly thinks it is already running. You apparently think there is no dhcpd running. You can't both be right. Please provide additional evidence to support your assertion.

              The pfsense shell command [/quote

              Right, for some reason it thinks it's running..

              After an upgrade I'm running 2.0-RC1 built on Wed Mar 23 09:48.

              So I disabled the dhcp server and rebooted. After the server has booted I issue the following command:

              [code]

              ps ax | grep dhcpd

              16583  ??  Ss    0:00.41 /usr/sbin/syslogd -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf

              Then, I try and start the server and issue the command again. The dhcp server fails to start(errors listed in prior post) and if I re-run the same command I get the same output. It does not find dhcp running.

              1 Reply Last reply Reply Quote 0
              • P
                phospher
                last edited by

                Actually, it looks like I just figured it out.

                In /var/dhcpd/run/  there was a dhcpd.pid file that got left behind. I deleted that pid file and restarted the dhcp server and it's now working. Hmm, how did it get left there to begin with?

                1 Reply Last reply Reply Quote 0
                • D
                  dwood
                  last edited by

                  Thanks for this..after a power outage today, on RC3 had the same issue.  Removing the .pid file and restarting DHCP fixed the issue.

                  Apparently I need a UPS and NUT for pfsense.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    I just hit this with a customer last week as well. The problem is that checking by pid, something was running on the stale pid, so the functions thought things were running normally. Only removing the pid file was enough to get it going again.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

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