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

2.4.5 upgrade: dhcpd not found

Problems Installing or Upgrading pfSense Software
dhcp upgrade 2.4.4-p3 2.4.5
5
10
1.4k
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.
  • S
    Spookje
    last edited by Mar 31, 2020, 3:06 PM

    Well, funny day...

    Just updated pfSense from 2.4.4-p3 to 2.4.5 and i'm finding with the following:

    • DHCPD Service not running,
    • DHCP Logging "empty" (nothing about DHCPD) also nothing after restarting the service.
    • and finally in the system log:
    /status_services.php: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid igb1 lagg0.15 lagg0.20 lagg0.25 lagg0 lagg0.30 lagg0.12' returned exit code '127', the output was 'sh: /usr/local/sbin/dhcpd: not found' 
    

    So, DHCPD is gone... does any one know a way to restore DHCPD without reinstalling pfSense completely?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Mar 31, 2020, 3:11 PM

      If that's missing, then it is likely that more things are missing.

      Connect via ssh or the console and open a shell prompt, then run pfSense-upgrade -d and see what it reports.

      The fastest and most reliable thing to do would be to grab a backup and then reinstall+restore using the 2.4.5 installer.

      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
      • S
        Spookje
        last edited by Mar 31, 2020, 3:26 PM

        [2.4.5-RELEASE][root@RT01.]/root: pfSense-upgrade -d
        >>> Updating repositories metadata... 
        Updating pfSense-core repository catalogue...
        Fetching meta.txz: . done
        Fetching packagesite.txz: . done
        Processing entries: . done
        pfSense-core repository update completed. 7 packages processed.
        Updating pfSense repository catalogue...
        Fetching meta.txz: . done
        Fetching packagesite.txz: .......... done
        Processing entries: .......... done
        pfSense repository update completed. 522 packages processed.
        All repositories are up to date.
        Your packages are up to date
        [2.4.5-RELEASE][root@RT01]/root: 
        
        

        mmm, it doesn't report much...
        any other ideas?
        otherwise i try a clean 2.4.5 install with the config backup...

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Mar 31, 2020, 3:28 PM

          A reinstall+restore would be the best thing to do. You could do things like pkg check -d and so on which may also help, but the best way to ensure a consistent system at that point would be reinstall+restore.

          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
          • S
            Spookje
            last edited by Mar 31, 2020, 3:35 PM

            Jep, Reinstall it is...
            Thanks for the support

            [2.4.5-RELEASE][root@RT01]/root: pkg check -d
            Checking all packages: 100%
            [2.4.5-RELEASE][root@RT01]/root: pkg check -s
            Checking all packages:   0%
            avahi-app-0.7_2: missing file /usr/local/man/man1/avahi-browse-domains.1.gz
            avahi-app-0.7_2: missing file /usr/local/man/man1/avahi-browse.1.gz
            avahi-app-0.7_2: missing file /usr/local/man/man1/avahi-publish-address.1.gz
            
            [... 2400 lines later ...]
            
            xinetd-2.3.15_2: missing file /usr/local/man/man8/xinetd.log.8.gz
            Checking all packages:  99%
            zip-3.0_1: missing file /usr/local/man/man1/zip.1.gz
            zip-3.0_1: missing file /usr/local/man/man1/zipcloak.1.gz
            zip-3.0_1: missing file /usr/local/man/man1/zipnote.1.gz
            zip-3.0_1: missing file /usr/local/man/man1/zipsplit.1.gz
            Checking all packages: 100%
            [2.4.5-RELEASE][root@RT01]/root:
            
            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Mar 31, 2020, 3:40 PM

              The pkg check -s errors for man page files are normal/expected.

              Then it must think the dhcp package isc-dhcp44-server is installed, but it's missing files, which is odd. It could be that you have a filesystem issue.

              I'd grab a backup and reinstall. You could forcefully reinstall all packages but that wouldn't fix a filesystem issue and would take a long time. So a lot of time+effort for possibly less benefit than a relatively quick reinstall.

              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 1
              • S
                Spookje
                last edited by Mar 31, 2020, 3:56 PM

                I reinstalled "isc-dhcp44-server" (pkg install --force isc-dhcp44-server) and DHCPD is running again, This is giving me a bit more room to prep the file-system check and the reinstall, which i will do very soon, just to be sure.

                thanks for the support!!!

                PS, i removed lines contaning "man/" of "doc/" out of the other log:

                [2.4.5-RELEASE][root@RT01]/root: pkg check -s
                Checking all packages:   0%
                Checking all packages:   1%
                Checking all packages:   1%
                Checking all packages:   2%
                Checking all packages:   4%
                Checking all packages:   6%
                curl-7.67.0: missing file /usr/local/share/aclocal/libcurl.m4
                Checking all packages:   7%
                dbus-1.12.16: missing file /usr/local/share/xml/dbus-1/busconfig.dtd
                dbus-1.12.16: missing file /usr/local/share/xml/dbus-1/introspect.dtd
                Checking all packages:  12%
                [...]
                Checking all packages:  16%
                glib-2.56.3_7,1: missing file /usr/local/share/aclocal/glib-2.0.m4
                glib-2.56.3_7,1: missing file /usr/local/share/aclocal/glib-gettext.m4
                glib-2.56.3_7,1: missing file /usr/local/share/aclocal/gsettings.m4
                Checking all packages:  18%
                [...]
                Checking all packages:  25%
                Checking all packages:  26%
                libgcrypt-1.8.5: missing file /usr/local/share/aclocal/libgcrypt.m4
                Checking all packages:  26%
                libgpg-error-1.36: missing file /usr/local/share/aclocal/gpg-error.m4
                libgpg-error-1.36: missing file /usr/local/share/aclocal/gpgrt.m4
                Checking all packages:  27%
                Checking all packages:  27%
                Checking all packages:  28%
                Checking all packages:  29%
                libmcrypt-2.5.8_3: missing file /usr/local/share/aclocal/libmcrypt.m4
                Checking all packages:  30%
                Checking all packages:  31%
                Checking all packages:  32%
                libxml2-2.9.10: missing file /usr/local/share/aclocal/libxml.m4
                Checking all packages:  32%
                libxslt-1.1.34: missing file /usr/local/share/aclocal/libxslt.m4
                Checking all packages:  33%
                Checking all packages:  36%
                Checking all packages:  39%
                mysql57-client-5.7.29: missing file /usr/local/share/aclocal/mysql.m4
                Checking all packages:  39%
                [...]
                Checking all packages:  99%
                Checking all packages: 100%
                [2.4.5-RELEASE][root@RT01]/root:
                
                1 Reply Last reply Reply Quote 1
                • J
                  jiggier
                  last edited by jiggier Apr 26, 2020, 11:24 PM Apr 26, 2020, 10:37 PM

                  Just wanted to add that also have the same issue. DHCP fails to start because it is missing. However, pkg install --force isc-dhcp44-server did not help.

                  Update:
                  By saying the update did not work, pkg did not install the DHCP. Then, pkg started complaining about missing objects. Did pkg bootstrap -f and no result. Had to repeat couple of times, until it solved the issue. Then reinstalling DHCP worked just like for Spookje.

                  R 1 Reply Last reply May 10, 2020, 6:22 PM Reply Quote 0
                  • R
                    reefland @jiggier
                    last edited by May 10, 2020, 6:22 PM

                    I just upgraded from 2.4.4 to 2.4.5 today and ran into the same problem of dhcp service not starting. I had this entry in my system logs:

                    /status_services.php: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid igb1 igb2 igb3' returned exit code '127', the output was 'sh: /usr/local/sbin/dhcpd: not found'
                    

                    As suggested above, reinstalling DHCPD from Diagnostics > Command Prompt > Shell Command:
                    pkg install -y --force isc-dhcp44-server

                    Once that completed, DHCP service started right up.

                    1 Reply Last reply Reply Quote 1
                    • P
                      patrick0525
                      last edited by Jun 6, 2020, 12:49 PM

                      It worked. Nice job.

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