Hello,
According to this error message:it seems that the kea-ctrl-agent cannot communicate with the kea server using a unix socket [1] (i.e. /run/kea/kea4-ctrl-socket).
This unix socket (filename) is not found by the kea-ctrl-agent, so the error message "No such file or directory".
I'm not an kea expert, but the configuration for this socket seems to be missing in the server configurations you sent. (see [2]):
[1] https://sources.debian.org/src/isc-kea/2.4.1-3/src/bin/agent/ca_command_mgr.cc/?hl=246#L227
[2] Kea Administrator Reference Manual - 8.9 Management API for the DHCPv4 Server
According to this error message:
Code:
Dez 10 10:34:37 debian1 kea-ctrl-agent[441]: DEBUG DCTL_CONFIG_START parsing new configuration: { "control-sockets": { "d2": { "socket-name": "/run/kea/kea-ddns-ctrl-socket", "socket-type": "unix" }, "dhcp4": { "socket-name": "/run/kea/kea4-ctrl-socket", "socket-type": "unix" } }, "hooks-libraries": [ ], "http-host": "192.168.1.220", "http-port": 8000, "loggers": [ { "debuglevel": 99, "name": "kea-ctrl-agent", "output_options": [ { "output": "stderr", "pattern": "%-5p %m\n" } ], "severity": "DEBUG" } ] }[..]Dez 10 10:34:50 debian1 kea-ctrl-agent[441]: [ { "result": 1, "text": "unable to forward command to the dhcp4 service: No such file or directory. The server is likely to be offline" } ]
This unix socket (filename) is not found by the kea-ctrl-agent, so the error message "No such file or directory".
I'm not an kea expert, but the configuration for this socket seems to be missing in the server configurations you sent. (see [2]):
Hope this helps.[..]
The management API allows the issuing of specific management commands, such as statistics retrieval, reconfiguration, or shutdown. For more details, see Management API. Currently, the only supported communication channel type is the UNIX stream socket. By default there are no sockets open; to instruct Kea to open a socket, the following entry in the configuration file can be used:[..]Code:
"Dhcp4": { "control-socket": { "socket-type": "unix", "socket-name": "/path/to/the/unix/socket" }, "subnet4": [ ... ], ...}
[1] https://sources.debian.org/src/isc-kea/2.4.1-3/src/bin/agent/ca_command_mgr.cc/?hl=246#L227
[2] Kea Administrator Reference Manual - 8.9 Management API for the DHCPv4 Server
Statistics: Posted by Aki — 2024-12-12 07:27 — Replies 1 — Views 84