[Kea-users] COMMAND_SOCKET_WRITE_FAIL
Shobhith Chikku
shobhithchikku at gmail.com
Thu Jun 15 07:50:14 UTC 2023
Hi,
I am getting this
*COMMAND_SOCKET_WRITE_FAIL Error while writing to command socket 35 :
Broken pipe*
in logs when I try to execute the command
*/usr/bin/echo '{"command":"lease4-get-all"}' | /usr/bin/socat -
UNIX:/opt/tcpwave/timsdhcp/kea4-ctrl-socket | /usr/bin/jq*Other commands
are working fine, but only the lease command is giving this error.
How do I fix this problem?
Thanks in advance.
Below mentioned is my config file
{"Dhcp4": {
"interfaces-config": {"interfaces": ["eth0"]},
"authoritative": true,
"multi-threading": {
"packet-queue-size": 28,
"enable-multi-threading": true,
"thread-pool-size": 4
},
"loggers": [{
"debuglevel": 55,
"severity": "DEBUG",
"output_options": [{
"output": "/var/log/kea-dhcp4.log",
"flush": true,
"maxsize": 204800
}],
"name": "kea-dhcp4"
}],
"lease-database": {
"name": "/opt/dhcp/dhcp/db/dhcp4.leases",
"persist": true,
"type": "memfile"
},
"hooks-libraries": [
{
"library": "/opt/dhcp/lib/kea/hooks/libdhcp_ha.so",
"parameters": {"high-availability": [{
"mode": "hot-standby",
"heartbeat-delay": 10000,
"trust-anchor": "",
"multi-threading": {
"http-dedicated-listener": true,
"enable-multi-threading": true,
"http-client-threads": 4,
"http-listener-threads": 4
},
"max-response-delay": 60000,
"cert-file": "",
"this-server-name": "server-47",
"max-ack-delay": 10000,
"peers": [
{
"role": "primary",
"name": "server-47",
"auto-failover": true,
"url": "http://192.168.0.47:8001"
},
{
"role": "standby",
"name": "server-46",
"auto-failover": true,
"url": "http://192.168.0.46:8001"
}
],
"key-file": "",
"max-unacked-clients": 10
}]}
},
{"library": "/opt/dhcp/lib/kea/hooks/libdhcp_lease_cmds.so"}
],
"server-hostname": "server-47",
"control-socket": {
"socket-type": "unix",
"socket-name": "/opt/dhcp/dhcp/kea4-ctrl-socket"
},
"decline-probation-period": 7200,
"sanity-checks": {"lease-checks": "fix-del"},
"subnet4": [
{
"subnet": "1.0.0.0/11",
"valid-lifetime": 86400,
"option-data": [
{
"data": "com",
"name": "domain-name"
},
{
"data": "86400",
"name": "dhcp-lease-time"
},
{
"data": "255.224.0.0",
"name": "subnet-mask"
},
{
"data": "1.0.0.1",
"name": "routers"
}
],
"pools": [
{
"client-class": "allow-client",
"pool": "1.0.0.12-1.0.0.19"
},
{
"client-class": "allow-client",
"pool": "1.0.0.21-1.0.0.40"
}
],
"id": 818135
},
{
"subnet": "3.0.0.0/8",
"valid-lifetime": 86400,
"option-data": [
{
"data": "com",
"name": "domain-name"
},
{
"data": "86400",
"name": "dhcp-lease-time"
},
{
"data": "255.0.0.0",
"name": "subnet-mask"
},
{
"data": "3.0.0.1",
"name": "routers"
}
],
"pools": [{
"client-class": "allow-client",
"pool": "3.0.0.2-3.1.173.179"
}],
"id": 818405
}
],
"client-classes": [
{"name": "deny-client"},
{
"test": "(not(member('deny-client')))",
"name": "allow-client"
}
]
}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230615/3a6099fe/attachment.htm>
More information about the Kea-users
mailing list