Hi! Alas, yes. It requires directories /run/kea and /var/lib/kea .

I didn't want to upgrade any of my systems to testing so I ran a docker
container with debian:testing (age: 3 weeks ago).

# apt-get update
# apt-get install -y kea-dhcp4-server
# kea-dhcp4 -v
2.4.0

# /etc/init.d/kea-dhcp4-server status
kea-dhcp4-server is not running ... failed!

# /etc/init.d/kea-dhcp4-server start
# /etc/init.d/kea-dhcp4-server status
kea-dhcp4-server is not running ... failed!

# kea-dhcp4 -c /etc/kea/kea-dhcp4.conf 
Unable to use interprocess sync lockfile (No such file or directory): 
/var/run/kea/logger_lockfile
kea-dhcp4: Fatal error during start up: Unable to open PID file 
'/run/kea/kea-dhcp4.kea-dhcp4.pid' for write
Unable to use interprocess sync lockfile (No such file or directory): 
/var/run/kea/logger_lockfile

# mkdir /run/kea
# kea-dhcp4 -c /etc/kea/kea-dhcp4.conf
ERROR DHCP4_CONFIG_LOAD_FAIL configuration error using file: 
/etc/kea/kea-dhcp4.conf, reason: Unable to open database: unable to open 
'/var/lib/kea/kea-leases4.csv'
2023-12-12 11:48:30.963 ERROR [kea-dhcp4.dhcp4/38.139744226431424] 
DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file 
'/etc/kea/kea-dhcp4.conf': Unable to open database: unable to open 
'/var/lib/kea/kea-leases4.csv'

# mkdir /var/lib/kea
# /etc/init.d/kea-dhcp4-server start
# /etc/init.d/kea-dhcp4-server status
kea-dhcp4-server is running.

PS. Most probably I created /var/lib/kea on my real server after
installation; I don't remember. Unlike /run/kea it's not cleared on
reboots so it's enough to create it once upon installation.
/run/kea must be tested and recreated on every start.

On Mon, Dec 11, 2023 at 05:03:58PM +0100, Paride Legovini <par...@debian.org> 
wrote:
> Control: tags -1 moreinfo
> 
> Hello and thanks for this bug report. Are you able to verify that this
> bug still exists in the Kea version currently in Debian testing (2.4.0-1)?
> Some work was recently done on the sysv init scripts, so for sure they
> are working for someone.
> 
> Thanks,
> 
> Paride

Oleg.
-- 
    Oleg Broytman            https://phdru.name/            p...@phdru.name
           Programmers don't die, they just GOSUB without RETURN.

Reply via email to