<div dir="ltr"><p>Hello,</p>
<p>I am using Kea 3.0.1 on Debian with the default Debian packages, and I am experiencing an issue where <strong>kea-shell hangs indefinitely</strong> when I try to execute any commands that should go through the Control Agent, such as:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-corner-superellipse/1.1 gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!">lease4-get
lease4-del
list-commands
</code></div></div></pre>
<p><strong>What triggered this:</strong><br>
I needed to delete an active lease because a printer was replaced, and Kea was still holding a lease for the old MAC address. When I tried to run:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-corner-superellipse/1.1 gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!">kea-shell <span class="gmail-hljs-attr">--auth-user</span> ... lease4-<span class="gmail-hljs-selector-tag">del</span> ...
</code></div></div></pre>
<p>the command never returned. It authenticates successfully, but just hangs forever.</p>
<p><strong>Relevant details:</strong></p>
<ul>
<li>
<p>Kea DHCPv4 is working normally.</p>
</li>
<li>
<p>Stork also works normally.</p>
</li>
<li>
<p>Control Agent starts successfully and listens on port 8000.</p>
</li>
<li>
<p>Authentication works (I get 401 if wrong credentials).</p>
</li>
<li>
<p>The DHCPv4 control socket exists at:<br>
<code>/var/run/kea/kea4-ctrl-socket</code></p>
</li>
<li>
<p>In <code>kea-ctrl-agent.conf</code> I have:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-corner-superellipse/1.1 gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre! gmail-language-json"><span class="gmail-hljs-attr">"control-sockets"</span><span class="gmail-hljs-punctuation">:</span> <span class="gmail-hljs-punctuation">{</span>
<span class="gmail-hljs-attr">"dhcp4"</span><span class="gmail-hljs-punctuation">:</span> <span class="gmail-hljs-punctuation">{</span>
<span class="gmail-hljs-attr">"socket-type"</span><span class="gmail-hljs-punctuation">:</span> <span class="gmail-hljs-string">"unix"</span><span class="gmail-hljs-punctuation">,</span>
<span class="gmail-hljs-attr">"socket-name"</span><span class="gmail-hljs-punctuation">:</span> <span class="gmail-hljs-string">"kea4-ctrl-socket"</span>
<span class="gmail-hljs-punctuation">}</span>
<span class="gmail-hljs-punctuation">}</span>
</code></div></div></pre>
</li>
<li>
<p>However, kea-shell hangs as soon as the Control Agent tries to forward the request to DHCPv4. No errors appear, just an indefinite wait.</p>
</li>
</ul>
<p>I also noticed that the Control Agent rejects attempts to use absolute paths (e.g., <code>/run/kea/kea4-ctrl-socket</code>) with the error:<br>
<strong>“invalid path specified, supported path is /etc/kea”</strong><br>
so I cannot use explicit absolute socket paths.</p>
<p><strong>Question:</strong><br>
How can I correctly configure the Control Agent in Kea 3.0.1 (Debian packaging) so that lease-related commands (lease4-get, lease4-del) work through kea-shell without hanging?<br>
Is there an officially supported way to specify the socket directory/path for the DHCPv4 control socket in this version?</p>
<p>Thank you very much.<br>
Oliver</p></div>