Kea service state shown as down even when the server is running

Started by Patrick M. Hausen, May 08, 2025, 04:22:42 PM

Previous topic - Next topic
root@opnsense:/var/log/kea # ps awwux | grep kea
root    23264   0.0  0.3   51808  22872  -  S    16:12     0:00.12 /usr/local/sbin/kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf
root     8097   0.0  0.0   13744   2460  0  S+   16:20     0:00.00 grep kea

Nothing unusual in the logfile, either, but:



State in the service settings identical to the widget. All "red".

Kind regards,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


I can confirm this.

Service overview attached.

ps awwux | grep kea
root    38676   0.0  0.3  47712 21216 v0- S    16:24    0:00.14 /usr/local/sbin/kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf

Seems to be running, but I also got the following message while updating:

You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.
You may need to manually remove /usr/local/etc/kea/kea-ctrl-agent.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/kea/kea-dhcp4.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/kea/keactrl.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/ssh/sshd_config if it is no longer needed.
You may need to manually remove /usr/local/etc/suricata/classification.config if it is no longer needed.
You may need to manually remove /usr/local/etc/suricata/reference.config if it is no longer needed.
You may need to manually remove /usr/local/etc/suricata/suricata.yaml if it is no longer needed.
=====

Looks like the config is very needed here.


I also have the missing leases error like described in https://forum.opnsense.org/index.php?topic=47127.0

Quote from: MarkA on May 08, 2025, 04:40:13 PMYou may need to manually remove /usr/local/etc/kea/kea-ctrl-agent.conf if it is no longer needed.

That's harmless and happens regularly when a package is updated - by uninstalling and reinstalling the new version. It's an artifact of the FreeBSD package manager.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: franco on May 08, 2025, 04:37:45 PMlet's handle this here https://forum.opnsense.org/index.php?topic=47127.0

already discussing a fix internally

Is there a patch for this issue as well? The other patch works well, thanks!


Seems to work. Stop, start, restart, too.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Ok so this is it then :)

# opnsense-patch https://github.com/opnsense/core/commit/1f1736457d

Hotfixing both cosmetic issues later today.


Thanks,
Franco