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

    Resolved: dhcpleases6: not found

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 326 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.
    • RobbieTTR
      RobbieTT
      last edited by RobbieTT

      I am getting this constant error message:

      Oct 19 16:59:58	php-fpm	399	/rc.newwanipv6: The command '/usr/local/sbin/dhcpleases6 -c "/usr/local/bin/php-cgi -f /usr/local/sbin/prefixes.php" -l /var/dhcpd/var/db/dhcpd6.leases' returned exit code '127', the output was 'sh: /usr/local/sbin/dhcpleases6: not found'
      

      It is correct in that there is no file or directory of that name under /usr/local/sbin/.

      What gives?

      โ˜•๏ธ

      [edit: I should add that I don't get the error on a reboot, only if the WAN connection was lost or reset]

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

        Is that on 23.09? Or 23.05.1/2.7.0?

        If you have 23.05.1 or 2.7.0 and installed the system patches package and applied all the recommended patches, you might have missed the note on one saying you need to run pkg install dhcpleases6. One of the patches fixed an issue with prefix delegation but that binary has to be added back manually.

        If it's on 23.09 that should already be present, and if it's not, there may be some other dependency issue happening.

        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!

        RobbieTTR 2 Replies Last reply Reply Quote 1
        • RobbieTTR
          RobbieTT @jimp
          last edited by

          @jimp

          This is on my 23.05.1 machine with all packages installed. Not had a chance to test it on 23.09d yet.

          I'll re-run the pkg install dhcpleases6, just to be sure, but this bug seems more limited in scope than the original. It may be linked or due to the pppoe / ipv6 / interface crashing issue, effectively making it very limited in scope.

          โ˜•๏ธ

          1 Reply Last reply Reply Quote 0
          • RobbieTTR
            RobbieTT @jimp
            last edited by

            @jimp
            Well what do you know:

            [23.05.1-RELEASE]/root: pkg install dhcpleases6
            Updating pfSense-core repository catalogue...
            pfSense-core repository is up to date.
            Updating pfSense repository catalogue...
            pfSense repository is up to date.
            All repositories are up to date.
            The following 1 package(s) will be affected (of 0 checked):
            
            New packages to be INSTALLED:
            	dhcpleases6: 0.1_3 [pfSense]
            
            Number of packages to be installed: 1
            
            10 KiB to be downloaded.
            
            Proceed with this action? [y/N]: y
            [1/1] Fetching dhcpleases6-0.1_3.pkg: 100%   10 KiB   9.8kB/s    00:01    
            Checking integrity... done (0 conflicting)
            [1/1] Installing dhcpleases6-0.1_3...
            [1/1] Extracting dhcpleases6-0.1_3: 100%
            [23.05.1-RELEASE]/root: 
            

            If I am interpreting that correctly the package was not present. Not sure how I lost it on the journey between devices, snapshots, firmware loads and kernel dumps!

            Thanks for the prompt.

            โ˜•๏ธ

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

              It was (unintentionally) not installed by default on 23.05.1/2.7.0, and references to it had also been removed prematurely.

              One of the recommended system patches adds back code that references that program, but the patch can't reinstall it binary.

              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!

              RobbieTTR 1 Reply Last reply Reply Quote 0
              • RobbieTTR
                RobbieTT @jimp
                last edited by

                @jimp

                That makes sense as this machine was taken back to a virgin 23.05.1 state and the patches were applied en-masse.

                โ˜•๏ธ

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