Does anyone know how to fix this error?
-
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
-
@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
. -
@patient0 I have no idea why it is missing. I am just missing that file how can I get it?
-
Can I just reinstall that package ??
Like do an apt get to download it ?
-
No wait it is there…
-
@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 ?
-
@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.
-
@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
-
@patient0 Thanks that fixed it
-
@patient0 that was my exact issue