<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Hi,</div><div><br></div><div>We are currently implementing Kea for a multi tenant/VRF scenario. We do this by running <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">multiple instances of </span>kea-dhcp4 with a systemd unit template. Because we have multiple Kea instances running, we need separate folders for storing PIDs, lock files and configs. So far, this is working fine. The Kea service is running, establishing HA session and serving requests.</div><div><br></div><div>We just have a problem with the periodic lease file cleaning performed by kea-lfc, while the lease file cleanup seems to be successful. It is logging errors relating to using a lock file for the logger.</div><div><br></div><div><div>Jun 04 15:49:27 dhcp-01 kea-dhcp4-VRF039[1395]: INFO  DHCPSRV_MEMFILE_LFC_START starting Lease File Cleanup</div><div>Jun 04 15:49:27 dhcp-01 kea-dhcp4-VRF039[1395]: INFO  DHCPSRV_MEMFILE_LFC_EXECUTE executing Lease File Cleanup using: /usr/sbin/kea-lfc -4 -x /var/lib/kea-VRF039/dhcp4.leases.2 -i /var/lib/kea-VRF039/dhcp4.leases.1 -o /var/lib/kea-VRF039/dhcp4.leases.output -f /var/lib/kea-VRF039/dhcp4.leases.completed -p /var/lib/kea-VRF039/dhcp4.leases.pid -c ignored-path</div><div>Jun 04 15:49:28 dhcp-01 kea-dhcp4-VRF039[2571]: Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Jun 04 15:49:28 dhcp-01 kea-dhcp4-VRF039[2571]: Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</span></div><div>---- 6 more identical messages ----</div></div><div><br></div><div>I have tried manually running the process with the specified arguments from the log message and setting the <font color="#000000">KEA_LOCKFILE_DIR environment variable. However, kea-lfc still doesn’t seem to use the environment variable.</font></div><div><br></div><div>$ export KEA_LOCKFILE_DIR=/run/lock/kea-VRF039</div><div>$ echo $KEA_LOCKFILE_DIR</div><div>/run/lock/kea-VRF039</div><div><br></div><div><div>$ sudo -u _kea -g _kea \</div><div>    /usr/sbin/kea-lfc -4 \</div><div>    -x /var/lib/kea-VRF039/dhcp4.leases.2 \</div><div>    -i /var/lib/kea-VRF039/dhcp4.leases.1 \</div><div>    -o /var/lib/kea-VRF039/dhcp4.leases.output \</div><div>    -f /var/lib/kea-VRF039/dhcp4.leases.completed \</div><div>    -p /var/lib/kea-VRF039/dhcp4.leases.pid \</div><div>    -c ignored-path</div></div><div><br></div><div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div><div>Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile</div></div><div><br></div><div><br></div><div><font color="#000000">I have read through the code and it seems like the environment variable should be used. So I am not sure what’s going wrong. I have found an issue on the nixpkgs GitHub which seems to describe the same issue (kea-lfc not using </font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">KEA_LOCKFILE_DIR)</span><font color="#000000"> </font><a href="https://github.com/NixOS/nixpkgs/issues/265826">https://github.com/NixOS/nixpkgs/issues/265826</a></div><div><br></div><div>Is this a known issue or am I doing something wrong?</div><div><br></div><div>Some additional info:</div><div>Distro: Ubuntu 24.04 LTS</div><div>Using the package from ubuntu APT sources:</div><div><div>Package: kea-dhcp4-server</div><div>Version: 2.4.1-3build3</div></div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Martijn</div></body></html>