<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hello,</p>
<p>it can be privileges or path issue, it's weird with /tmp though.
<br>
</p>
<p>Make sure that socket can be created, second option is to try
configure it in different directories.</p>
<p>Regards</p>
<p>Wlodek<br>
</p>
<div class="moz-cite-prefix">On 31/07/2020 15:06, Chris Calbreath
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:MN2PR07MB655726893A13B79ECAFCB825B24E0@MN2PR07MB6557.namprd07.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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;
margin-bottom:.0001pt;
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;
margin-bottom:.0001pt;
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.EmailStyle23
{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]-->
<div class="WordSection1">
<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:<o:p></o:p></u></p>
<p class="MsoNormal"><b>dhcpv6.conf<o:p></o:p></b></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<o:p></o:p></u></p>
<p class="MsoNormal"><b>dhcpv6.conf<o:p></o:p></b></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<o:p></o:p></b></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"
moz-do-not-send="true">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"
moz-do-not-send="true">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/" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">Kea-users@lists.isc.org</a><o:p></o:p></pre>
<pre><a href="https://lists.isc.org/mailman/listinfo/kea-users" moz-do-not-send="true">https://lists.isc.org/mailman/listinfo/kea-users</a><o:p></o:p></pre>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at <a class="moz-txt-link-freetext" href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.
To unsubscribe visit <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.
Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
</blockquote>
</body>
</html>