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

    Does anyone know how to fix this error?

    Scheduled Pinned Locked Moved DHCP and DNS
    dhcp6
    10 Posts 3 Posters 304 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.
    • JonathanLeeJ
      JonathanLee
      last edited by

      DiagnosticsCommand Prompt
      Shell Output - ls -l /usr/local/sbin/dhcpleases6
      ls: /usr/local/sbin/dhcpleases6: No such file or directory
      Execute Shell Command
      

      What is funny is DHCP6 is working.... How can I fix this I have already done this

      pkg-static install -y -f pfSense
      

      Make sure to upvote

      patient0P GertjanG 2 Replies Last reply Reply Quote 0
      • patient0P
        patient0 @JonathanLee
        last edited by patient0

        @JonathanLee said in Does anyone know how to fix this error?:

        ls -l /usr/local/sbin/dhcpleases6

        /root: pkg which /usr/local/sbin/dhcpleases6 
        /usr/local/sbin/dhcpleases6 was installed by package dhcpleases6-0.1_3
        

        But it shouldn't just disappear?!

        /root: pkg info dhcpleases6
        dhcpleases6-0.1_3
        Name           : dhcpleases6
        ...
        Comment        : read dhpcd6.leases file and trigger command on modification
        ...
        Description    :
        read dhpcd.lease file and add it to hosts file
        

        The info would suggest that it is used by dhcpd.

        JonathanLeeJ 2 Replies Last reply Reply Quote 0
        • JonathanLeeJ
          JonathanLee @patient0
          last edited by

          @patient0 I have no idea why it is missing. I am just missing that file how can I get it?

          Make sure to upvote

          1 Reply Last reply Reply Quote 0
          • JonathanLeeJ
            JonathanLee
            last edited by

            Can I just reinstall that package ??

            Like do an apt get to download it ?

            Make sure to upvote

            1 Reply Last reply Reply Quote 0
            • JonathanLeeJ
              JonathanLee
              last edited by

              No wait it is there…

              Make sure to upvote

              1 Reply Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee @patient0
                last edited by

                @patient0 It deletes when you clear the leases ... But if you clear leases it should not throw an error shouldn't that have a flag if leases cleared in last 5 mins do not throw error or something ?

                Make sure to upvote

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

                  @JonathanLee said in Does anyone know how to fix this error?:

                  What is funny is DHCP6 is working.... How can I fix this I have already done this

                  Fix what ?
                  True, this executable file

                  /usr/local/sbin/dhcpleases6
                  

                  exists, but I couldn't find out how it's used. I presume its a left over the good old ISC days.

                  These days, "dhcpd" now uses kea, and the kea2unbound script tool to store the host names from the lease (v4 and v6) into the /etc/hosts file - and DNS local cache.

                  Btw : I'm using 25.03 latest Beta.

                  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
                  • patient0P
                    patient0 @JonathanLee
                    last edited by

                    @JonathanLee have a look at this post from Oct 2023, https://forum.netgate.com/post/1130947. It may apply to your setup.

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

                    But if you are using KEA I still think you won't need it. Of course it does make sense to install it anyway, just so you have a consistent installation.

                    To reinstall, FreeBSD Manual Pages: pkg-install suggests:

                    pkg install -f dhcpleases6
                    
                    JonathanLeeJ 2 Replies Last reply Reply Quote 1
                    • JonathanLeeJ
                      JonathanLee @patient0
                      last edited by

                      @patient0 Thanks that fixed it

                      Make sure to upvote

                      1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @patient0
                        last edited by

                        @patient0 that was my exact issue

                        Make sure to upvote

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