<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
The same it happened to me today. Delete records with leases < 0 solved the problem.<BR>
<BR>
One question, Who updates this table? a kea-dhcp proccess, a trigger?. When is it updated?. In my case, it doesn't show the real and updated information.<BR>
<BR>
Thanks for any help. Regards,<BR>
<BR>
Fernando.<BR>
<BR>
<BR>
-----Mensaje original-----<BR>
<B>De</B>: flingo <<A HREF="mailto:flingo%20%3cmartin.messmer@t-systems.com%3e">martin.messmer@t-systems.com</A>><BR>
<B>Para</B>: <A HREF="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</A><BR>
<B>Asunto</B>: Re: [Kea-users] DHCP4_CONFIG_LOAD_FAIL - "getNextRow failed" with MySQL<BR>
<B>Fecha</B>: Mon, 1 Jul 2019 13:14:28 -0700 (MST)<BR>
<BR>
<PRE>
Exactly the same here: the Kea DHCP server setup worked for weeks and all
over sudden, after a configuration change / restart the servers refused to
start with the mentioned error. 

DELETE FROM lease4_stat where leases < 0 

solved the issue so far. Since I don't want to wait for the next occurence
of quite unfrequent issue, I changed the table description of lease4_stat,
so that field 'leases' is now 'BIGINT(20) UNSIGNED NULL DEFAULT NULL'. This
should prevent any further negative values. Hope this doesn't break the code
elsewhere. Let's wait and see ...

Here is my setup:
- 2 CentOS7 machines 
- each running KEA DHCP 1.5.0 and 
- MYSQL 5.7.x Leases Database 
- MYSQL Master-Master-Replication
- KEA HA / Failover (not load balancing) w/ send-lease-updates and
sync-leases set to false (i.e. leases are replicated via MySQL replication)




--
Sent from: <A HREF="http://kea-users.7364.n8.nabble.com/">http://kea-users.7364.n8.nabble.com/</A>
_______________________________________________
Kea-users mailing list
<A HREF="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</A>
<A HREF="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</A>
</PRE>
</BODY>
</HTML>