Problem connecting to dhcp daemon: unable to forward command to the dhcp4 service
Hello, I receive the following error message whenever I try to start my Stork agent: promkeaexporter.go:146 Problem connecting to dhcp daemon: unable to forward command to the dhcp4 service: No such file or directory. The server is likely to be offline.
I encounter this message when attempting to start the service using the stork-agent
command.
The Kea DHCP server itself is functioning properly, and the keactrl
command shows dhcp4 as active. Additionally, I can inspect IP requests using "dhcpdump -i eth0," and IP addresses are successfully assigned.
The connection to the Stork web server is established. I can view various system parameters through the agent. The Stork web server is running on a different VM within the same network.
Here is my Basis (Staging) DHCP4-Configfile:
root@stg-kea-dhcp:/usr/local/etc/kea# cat kea-dhcp4.conf
{
"Dhcp4": {
"interfaces-config": {
"interfaces": ["eth0"]
},
"lease-database": {
"type": "memfile",
"persist": true,
"name": "/var/lib/kea/kea-leases4.csv",
"lfc-interval": 3600
},
"renew-timer": 15840,
"rebind-timer": 27720,
"valid-lifetime": 31680,
"option-data": [
{
"name": "domain-name-servers",
"data": "192.168.178.6"
},
{
"name": "domain-search",
"data": "templab.lan"
}
],
"subnet4": [
{
"subnet": "192.168.178.0/24",
"pools": [ { "pool": "192.168.178.100 - 192.168.178.150" } ],
"option-data": [
{
"name": "routers",
"data": "192.168.178.1"
}
]
// Add reservations here
}
// Add subnets here
],
"loggers": [
{
// This section affects kea-dhcp4, which is the base logger for DHCPv4
// component. It tells DHCPv4 server to write all log messages (on
// severity INFO or more) to a file.
"name": "kea-dhcp4",
"output_options": [
{
// Specifies the output file. There are several special values
// supported:
// - stdout (prints on standard output)
// - stderr (prints on standard error)
// - syslog (logs to syslog)
// - syslog:name (logs to syslog using specified name)
// Any other value is considered a name of the file
"output": "/usr/local/var/log/kea-dhcp4.log"
// Shorter log pattern suitable for use with systemd,
// avoids redundant information
// "pattern": "%-5p %m\n",
// This governs whether the log output is flushed to disk after
// every write.
// "flush": false,
// This specifies the maximum size of the file before it is
// rotated.
// "maxsize": 1048576,
// This specifies the maximum number of rotated files to keep.
// "maxver": 8
}
],
// This specifies the severity of log messages to keep. Supported values
// are: FATAL, ERROR, WARN, INFO, DEBUG
"severity": "INFO",
// If DEBUG level is specified, this value is used. 0 is least verbose,
// 99 is most verbose. Be cautious, Kea can generate lots and lots
// of logs if told to do so.
"debuglevel": 0
}
]
}
}