Kea-dhcp4 with mysql backend failed to start after dnf update

I just perform dnf on my Rocky10 which server dhcp4 using kea-dhcp with mysql lease db. Everything works perfecly and after update, kea-dhcp4 failed to start with message:

DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file ‘/etc/kea/kea-dhcp4.conf’: Unable to open database: The Kea server has not been compiled with support for lease database type: mysql. Did you forget to use -D mysql=enabled during setup or to load libdhcp_mysql hook library?

Now Im falling back to memfile lease database, and it’s work. Hope there’s update to include mysql to the rpm in the repo. Thank you.

Found the answer. Previous version of kea that were installed already compiled with mysql support, but the current one uses kea-hooks. Need to install kea-hooks package and add the hooks setting to the conf. Unfortunately, there’s version mismatch between new and old schema. executing kea-admin db-upgrade solve the problem.

Thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.