OPNsense Forum

English Forums => 25.1, 25.4 Series => Topic started by: Patrick M. Hausen on May 08, 2025, 04:22:42 PM

Title: Kea service state shown as down even when the server is running
Post by: Patrick M. Hausen on May 08, 2025, 04:22:42 PM
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:

(https://forum.opnsense.org/index.php?action=dlattach;attach=44715;image)

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

Kind regards,
Patrick
Title: Re: Kea service state shown as down even when the server is running
Post by: franco on May 08, 2025, 04:37:45 PM
let's handle this here https://forum.opnsense.org/index.php?topic=47127.0

already discussing a fix internally
Title: Re: Kea service state shown as down even when the server is running
Post by: MarkA on May 08, 2025, 04:40:13 PM
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
Title: Re: Kea service state shown as down even when the server is running
Post by: Patrick M. Hausen on May 08, 2025, 04:42:29 PM
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.
Title: Re: Kea service state shown as down even when the server is running
Post by: CrimsonKnight13 on May 08, 2025, 04:58:31 PM
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!
Title: Re: Kea service state shown as down even when the server is running
Post by: franco on May 08, 2025, 05:02:18 PM
@Patrick can you test this one before I make it public? https://github.com/opnsense/core/commit/ea1974a058e


Thanks,
Franco
Title: Re: Kea service state shown as down even when the server is running
Post by: Patrick M. Hausen on May 08, 2025, 05:19:34 PM
Seems to work. Stop, start, restart, too.
Title: Re: Kea service state shown as down even when the server is running
Post by: franco on May 08, 2025, 05:27:16 PM
Ok so this is it then :)

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

Hotfixing both cosmetic issues later today.


Thanks,
Franco