<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I resolved this issue. It turned out to be when I was creating the control socket in the config. I moved the control socket statement to the first line of the config under the service and the control socket was created. It appears if you
 declare interfaces before the control socket – the control socket is not created.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve add the HA Pair to stork – but am not able to retrieve any subnet stats from them – I just get a no stats yet message. I’ve messaged the stork users list for guidance on that.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Chris<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> <b>
On Behalf Of </b>Wlodek Wencel<br>
<b>Sent:</b> Wednesday, August 5, 2020 2:35 AM<br>
<b>To:</b> kea-users@lists.isc.org<br>
<b>Subject:</b> Re: [Kea-users] ha heartbeat error: unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p>it can be privileges or path issue, it's weird with /tmp though. <o:p></o:p></p>
<p>Make sure that socket can be created, second option is to try configure it in different directories.<o:p></o:p></p>
<p>Regards<o:p></o:p></p>
<p>Wlodek<o:p></o:p></p>
<div>
<p class="MsoNormal">On 31/07/2020 15:06, Chris Calbreath wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">So a bit more investigation and it appears the socket is the cause of the issue. running strace against the PID of kea-ctrl-agent produces this message:<o:p></o:p></p>
<p class="MsoNormal">connect(17, {sa_family=AF_UNIX, sun_path="/tmp/dhcp6.sock"}, 17) = -1 ENOENT (No such file or directory)<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">What would cause the socket to not be created in the path specified?
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Here is my config.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><u>Server 1:</u><o:p></o:p></p>
<p class="MsoNormal"><b>dhcpv6.conf</b><o:p></o:p></p>
<p class="MsoNormal">"control-socket": {<o:p></o:p></p>
<p class="MsoNormal">                        "socket-type": "unix",<o:p></o:p></p>
<p class="MsoNormal">                        "socket-name": "/tmp/dhcp6.sock "<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b>ctrl-agent.conf</b><o:p></o:p></p>
<p class="MsoNormal">"dhcp6": {<o:p></o:p></p>
<p class="MsoNormal">            "socket-type": "unix",<o:p></o:p></p>
<p class="MsoNormal">            "socket-name": "/tmp/dhcp6.sock"<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><u>Server 2</u><o:p></o:p></p>
<p class="MsoNormal"><b>dhcpv6.conf</b><o:p></o:p></p>
<p class="MsoNormal">"control-socket": {<o:p></o:p></p>
<p class="MsoNormal">                        "socket-type": "unix",<o:p></o:p></p>
<p class="MsoNormal">                        "socket-name": "/tmp/dhcp6.sock "<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b>ctrl-agent.conf</b><o:p></o:p></p>
<p class="MsoNormal">"dhcp6": {<o:p></o:p></p>
<p class="MsoNormal">            "socket-type": "unix",<o:p></o:p></p>
<p class="MsoNormal">            "socket-name": "/tmp/dhcp6.sock "<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Chris<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Kea-users <<a href="mailto:kea-users-bounces@lists.isc.org">kea-users-bounces@lists.isc.org</a>>
<b>On Behalf Of </b>Wlodek Wencel<br>
<b>Sent:</b> Tuesday, July 28, 2020 3:24 PM<br>
<b>To:</b> <a href="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</a><br>
<b>Subject:</b> Re: [Kea-users] ha heartbeat error: unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Hello,<o:p></o:p></p>
<p>thank you for using Kea :)<o:p></o:p></p>
<p>This is problem of communication between kea-ctrl-agent and kea-dhcp6, two most common issues in this case are:<o:p></o:p></p>
<p> - kea-dhcp6 is not running / failed to open socket<o:p></o:p></p>
<p> - there is misconfiguration of sockets (configuration in kea-ctrl-agent has to point to the socket that kea-dhcp6 is opening)
<o:p></o:p></p>
<p>Regards<o:p></o:p></p>
<p>Wlodek Wencel<o:p></o:p></p>
<p>ISC QA<o:p></o:p></p>
<div>
<p class="MsoNormal">On 28/07/2020 22:15, Chris Calbreath wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Has anyone experienced this before? I have 2 Kea v1.79 servers running in a load balancing pair but I get the following errors when running kea-ctrl:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">{ "command": "ha-heartbeat", "service": [ "dhcp6" ] }<o:p></o:p></p>
<p class="MsoNormal">INFO  COMMAND_RECEIVED Received command 'ha-heartbeat'<o:p></o:p></p>
<p class="MsoNormal">DEBUG CTRL_AGENT_COMMAND_FORWARD_BEGIN begin forwarding command ha-heartbeat to service dhcp6<o:p></o:p></p>
<p class="MsoNormal">DEBUG CTRL_AGENT_COMMAND_FORWARD_FAILED failed forwarding command ha-heartbeat: unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline<o:p></o:p></p>
<p class="MsoNormal">DEBUG HTTP_SERVER_RESPONSE_SEND sending HTTP response HTTP/1.1 200 OK to XXX.XXX.223.245<o:p></o:p></p>
<p class="MsoNormal">DEBUG HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent to XXX.XXX.223.245:<o:p></o:p></p>
<p class="MsoNormal">HTTP/1.1 200 OK<o:p></o:p></p>
<p class="MsoNormal">Content-Length: 140<o:p></o:p></p>
<p class="MsoNormal">Content-Type: application/json<o:p></o:p></p>
<p class="MsoNormal">Date: Tue, 28 Jul 2020 20:06:35 GMT<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">[ { "result": 1, "text": "unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline" } ]<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Kea-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a><o:p></o:p></pre>
<pre><a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Kea-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a><o:p></o:p></pre>
<pre><a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a><o:p></o:p></pre>
</blockquote>
</div>
</body>
</html>