<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Was this after a reboot or Kea just suddenly stopped responding during normal operation?</div><div><br></div>Was there nothing in logs? <div><br></div><div>1) perhaps consider some retry options: <a href="https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html#interface-configuration">https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html#interface-configuration</a> "service-sockets-max-retries” and “service-sockets-retry-wait-time”.  These settings cause kea to not immediately give up in the event the interfaces aren’t available when it starts.</div><div><br></div><div>2) If there was nothing in logs, you may need to consider setting up additional loggers and/or turning up severity.  The chart here: <a href="https://kea.readthedocs.io/en/kea-2.2.0/arm/logging.html?highlight=logging#id3">https://kea.readthedocs.io/en/kea-2.2.0/arm/logging.html?highlight=logging#id3</a> shows a list of available loggers and what they log.  You may need to look at the system logs if it isn’t getting far enough to read your loggers statement.  I personally like to set up a separate file for each logger name so that I can control log severity and look at things individually.  Example (not exhaustive):</div><div><br></div><div><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">        "loggers": [</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">            {</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "name": "kea-dhcp4",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "severity": "INFO",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "output_options": [</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                    {</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "output": "/usr/local/var/log/kea-dhcp4.log",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "maxver": 10,</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "flush": false</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                    }</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                ]</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">            },</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">            {</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "name": "kea-dhcp4.packets",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "severity": "DEBUG",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "debuglevel": 98,</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "output_options": [</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                    {</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "output": "/usr/local/var/log/kea-dhcp4-packets.log",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "maxver": 10,</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "flush": false</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                    }</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                ]</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">            },</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">            {</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "name": "kea-dhcp4.alloc-engine",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "severity": "INFO",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                "output_options": [</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                    {</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "output": "/usr/local/var/log/kea-dhcp4-alloc-engine.log",</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "maxver": 10,</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                        "flush": false</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                    }</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">                ]</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">            },</span></p></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><br></div><div>3) you might change “Wants=“ to “Requires=“ as apparently “Wants=“ will let the kea service still start even if the network-online.target hasn’t properly started.  Though you might be better served by #1 above.</div><div><div><br><blockquote type="cite"><div>On Jan 3, 2023, at 3:20 AM, Stefan G. Weichinger <lists@xunil.at> wrote:</div><br class="Apple-interchange-newline"><div><div>Am 27.12.22 um 12:46 schrieb Darren Ankney:<br><br><blockquote type="cite">In any case, I’d be concerned why it was running but not answering requests more-so than I would be about how to monitor it using actual DHCP.  I vaguely remember having some trouble with Kea and systemd startup ordering (ie: it started up before the server’s IP was on the interface).  Setting After=network.target took care of it.<br></blockquote><br>We saw the behavior again yesterday: no DHCP leases after a reboot until we restarted kea.<br><br>In the service file there are these lines:<br><br>Wants=network-online.target<br>After=network-online.target<br>After=time-sync.target<br><br>https://systemd.io/NETWORK_ONLINE/ gives some information about these targets ... "network-online.target" should fit better .. but doesn't seem to be enough.<br><br>We use raw sockets for kea, but the server listens on multiple vlan-interfaces:<br><br>{<br>        "Dhcp4": {<br>                "interfaces-config": {<br>                        "interfaces": [ "enp0s31f6", "enp0s31f6.101", "enp0s31f6.102", "enp0s31f6.103", "enp0s31f6.200" ],<br>                        "dhcp-socket-type": "raw"<br>                },<br><br><br>-- <br>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br><br>To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br><br>Kea-users mailing list<br>Kea-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/kea-users<br></div></div></blockquote></div><br></div></body></html>