Logs filling up with errors trying to kill dhcpdv6.pid, but I have IPV6 disabled

Started by AbsolutelyFree, August 20, 2023, 03:38:57 AM

Previous topic - Next topic
I upgraded to 23.7.1 right from the 23.1 version and it was the most flawless of all updates so far, which was excellent!

I noticed today though when I logged into the web UI to add some new firewall rules that my /var/log zfs dataset was more full than usual. I went into my logs and saw that ever since that upgrade to the latest version, I am having the same error repeating many times per day:

/usr/local/etc/rc.linkup: The command '/bin/kill -'TERM' '68616''(pid:/var/dhcpd/var/run/dhcpdv6.pid) returned exit code '1', the output was 'kill: 68616: No such process'

It seems like the issue has something to do with ipv6 dhcp, but I do not use any ipv6 functionality in my network. I checked under the dhcp settings (services > DHCPv6 > Relay) and confirmed that dhcpv6 is disabled. I checked under every interface and confirmed that IPv6 Configuration Type is set to None for all of them. I am not using any VPN services either.

I have tried rebooting the system, as well as restarting dhcpd (the v4 version at least, like I said I don't use ipv6 in my network), neither of which fixed the issue.

Does anyone have any ideas about how I could resolve this issue?

I'm likely going to remove those log messages. They are not very helpful and confusing to the untrained eye.

They just mean the service was attempted to be stopped, but failed because it was very likely already stopped.


Cheers,
Franco


It dawned on me that /var/run dirs in chroot are never/not anymore cleared. Especially since /var MFS was changed to /var/log MFS.

https://github.com/opnsense/core/commit/720216f10e

So the file there is stale but it never gets rid of it so it never stops trying to stop. I'll try to get this into 23.7.2.


Cheers,
Franco

I saw that this fix was included in 23.7.2 and I can confirm that it resolves the issue completely. No more of these errors being logged anymore after the reboot for this update.

Thank you for your hard work Franco!