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

    2.1 Upgrade - DHCP Server Will Not Start (2 instances running) [SOLVED]

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    9 Posts 4 Posters 2.7k 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.
    • H
      HaburGate
      last edited by

      After the 2.1 upgrade, I'm seeing that everything comes up okay, but the DHCP server will not start (see attached images). In the log it says a DHCP server is already running?

      Doing a manual re-install is very difficult because the box has a broken VGA port, so I'd like to fix it without wiping and re-loading if possible. Where do I start to look?
      screenshot_003.png
      screenshot_003.png_thumb
      screenshot_004.png
      screenshot_004.png_thumb

      PGP Key: 0x82A211A2
      Server:    pool.sks-keyservers.net

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        I'd pull the drive, connect to another box, wipe, reinstall BASIC installation.  Then reinstall the drive to this box.  Boot and then restore settings from webgui.  Thats perhaps easier than hunting down an odd failure in DHCP and shouldn't require VGA.

        1 Reply Last reply Reply Quote 0
        • H
          HaburGate
          last edited by

          @kejianshi:

          I'd pull the drive, connect to another box, wipe, reinstall BASIC installation.  Then reinstall the drive to this box.  Boot and then restore settings from webgui.  Thats perhaps easier than hunting down an odd failure in DHCP and shouldn't require VGA.

          Thanks for the idea kejianshi. I come from the Windows world mostly, so pardon my ignorance, but will that cause any problems loading the hard drive back in the box after being installed on a different set of hardware?

          I'd still really like to track down why 2 DHCP servers are running, I only say this because I'm seeing a lot of other posts about some other services trying to run twice after the upgrade (NTP seems to be the main culprit right now).

          PGP Key: 0x82A211A2
          Server:    pool.sks-keyservers.net

          1 Reply Last reply Reply Quote 0
          • K
            kejianshi
            last edited by

            I've transplanted my own drives a couple times.  If the NIC card type is similar it will work fine.

            Doesn't have to be exact same but same driver family is nice.

            In my case I've gone from one system that used an em0 and em1 to a totally different system that also used an em0 and em1 and had SATA and it worked without any issue.

            Between exact same types of systems would surely work.

            1 Reply Last reply Reply Quote 0
            • T
              Tillebeck
              last edited by

              Just a note…

              Different NICs are no problem if you have serial access to the box you can get startet even with out proper LAN/WAN setup.

              • Connect a serial cable between your windows machine and your pfsense box and use putty or similar

              • The console will automatically write out info about missing conf for nics (if not just restart the pfsense while keeping terminal open)

              • From here you will be guided through the process setting up the new nics. When asked just plug in an ethernet cable in WAN port and save. Then same process for the LAN port

              • That is! You are up and running again :-)

              1 Reply Last reply Reply Quote 0
              • K
                kejianshi
                last edited by

                Yep - But I don't have any serial cables laying around - Maybe OP has.

                1 Reply Last reply Reply Quote 0
                • H
                  HaburGate
                  last edited by

                  Hey, I just wanted to post that I managed to fix it, it was a very easy fix. There was a stale PID (Process ID) left over from the upgrade, apparently the DHCP server didn't terminate gracefully on the upgrade, and it was still sitting around making pfSense think a DHCP server was still running.

                  This command fixed it (from the shell or the WebGUI shell page):

                  rm /var/dhcpd/var/run/dhcpd.pid
                  

                  After this I was able to start the DHCP server successfully. Thanks to everyone who chimed in!

                  PGP Key: 0x82A211A2
                  Server:    pool.sks-keyservers.net

                  1 Reply Last reply Reply Quote 0
                  • T
                    techaholic
                    last edited by

                    HaburGate you're de man, been pulling my hair out for 3 days about this error, and your cmd fixed it. The upgrade from 2.0 to 2.1 bombed (something about not being able to load a kernel), so I fell back onto the USB img full install, which went well except for the DHCP server error already running…. which your cmd fixed and I am now chugging on all cylinders, thanks for the fix  ;D

                    1 Reply Last reply Reply Quote 0
                    • H
                      HaburGate
                      last edited by

                      Hey techaholic, glad it helped!

                      PGP Key: 0x82A211A2
                      Server:    pool.sks-keyservers.net

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