[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

Chris Calbreath ccalbreath at gatewayfiber.com
Fri Jul 31 13:06:02 UTC 2020


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:
connect(17, {sa_family=AF_UNIX, sun_path="/tmp/dhcp6.sock"}, 17) = -1 ENOENT (No such file or directory)

What would cause the socket to not be created in the path specified?


Here is my config.

Server 1:
dhcpv6.conf
"control-socket": {
                        "socket-type": "unix",
                        "socket-name": "/tmp/dhcp6.sock "

ctrl-agent.conf
"dhcp6": {
            "socket-type": "unix",
            "socket-name": "/tmp/dhcp6.sock"

Server 2
dhcpv6.conf
"control-socket": {
                        "socket-type": "unix",
                        "socket-name": "/tmp/dhcp6.sock "

ctrl-agent.conf
"dhcp6": {
            "socket-type": "unix",
            "socket-name": "/tmp/dhcp6.sock "


Chris




From: Kea-users <kea-users-bounces at lists.isc.org<mailto:kea-users-bounces at lists.isc.org>> On Behalf Of Wlodek Wencel
Sent: Tuesday, July 28, 2020 3:24 PM
To: kea-users at lists.isc.org<mailto:kea-users at lists.isc.org>
Subject: 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


Hello,

thank you for using Kea :)

This is problem of communication between kea-ctrl-agent and kea-dhcp6, two most common issues in this case are:

 - kea-dhcp6 is not running / failed to open socket

 - there is misconfiguration of sockets (configuration in kea-ctrl-agent has to point to the socket that kea-dhcp6 is opening)

Regards

Wlodek Wencel

ISC QA
On 28/07/2020 22:15, Chris Calbreath wrote:
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:

{ "command": "ha-heartbeat", "service": [ "dhcp6" ] }
INFO  COMMAND_RECEIVED Received command 'ha-heartbeat'
DEBUG CTRL_AGENT_COMMAND_FORWARD_BEGIN begin forwarding command ha-heartbeat to service dhcp6
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
DEBUG HTTP_SERVER_RESPONSE_SEND sending HTTP response HTTP/1.1 200 OK to XXX.XXX.223.245
DEBUG HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent to XXX.XXX.223.245:
HTTP/1.1 200 OK
Content-Length: 140
Content-Type: application/json
Date: Tue, 28 Jul 2020 20:06:35 GMT

[ { "result": 1, "text": "unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline" } ]


_______________________________________________

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.



To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.



Kea-users mailing list

Kea-users at lists.isc.org<mailto:Kea-users at lists.isc.org>

https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20200731/e2df5ccf/attachment.htm>


More information about the Kea-users mailing list