<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Have you considered putting in a “watchdog” timer at the operating system level to restart the OS after a number of minutes (if network link is down) to allow your network gear more time to recover?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Kea-users <kea-users-bounces@lists.isc.org> on behalf of Wagner Vlastimil - HZS Ústeckého kraje <Vlastimil.Wagner@hzscr.cz><br>
<b>Date: </b>Tuesday, October 29, 2024 at 8:00</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">AM<br>
<b>To: </b>kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject: </b>[EXTERNAL] [Kea-users] Kea fail start after power outage, mysql connect problem<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi<br>
<br>
I have Kea servers on places where sometimes doesnt work power (longer than UPS) 
<br>
I have config, leases and hosts in database MySQL<br>
When power is back server get up faster than switches and routers so interface is down and Kea doesnt start<br>
<br>
říj 29 12:42:15 dhcp-01.hzsulk.cz kea-dhcp4[8647]: ERROR [kea-dhcp4.dhcp4.140105088432256] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, reason: during update from config backend database: Unknown server host 'db.example.com'
 (-2)  <br>
říj 29 12:42:15 dhcp-01.hzsulk.cz kea-dhcp4[8647]: ERROR [kea-dhcp4.dhcp4.140105088432256] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': during update from config backend database: Unknown server
 host 'db.example.com' >  <br>
říj 29 12:42:15 dhcp-01.hzsulk.cz kea-dhcp4[8647]: ERROR [kea-dhcp4.dhcp4.140105088432256] DHCP4_PARSER_COMMIT_FAIL parser failed to commit changes: during update from config backend database: Unknown server host 'db.example.com' (-2) 
<br>
<br>
<br>
Config is:<br>
<br>
<br>
"Dhcp4": {<br>
    "server-tag": "DHCP-01",<br>
    "interfaces-config": {<br>
        "interfaces": ["ens33"],<br>
        "service-sockets-max-retries": 100,<br>
        "service-sockets-retry-wait-time": 5000<br>
    },<br>
    "config-control": {<br>
        "config-databases": [{<br>
                "type": "mysql",<br>
                "name": "kea",<br>
                "user": "kea",<br>
                "password": "fhgfethfgthtfeg",<br>
                "host": "db.example.com",<br>
                "port": 3306,<br>
#               "retry-on-startup": "true",<br>
                "max-reconnect-tries" : 30000,<br>
                "reconnect-wait-time": 3000<br>
            }],<br>
        "config-fetch-wait-time": 20<br>
    },<br>
<br>
No setting work to try connect again<br>
<br>
<br>
VW<br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at
<a href="https://www.isc.org/contact/">https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=05%7C02%7Cdan.geist%40cox.com%7C34ce6c43dd16473322f208dcf8113d70%7C9feebc97ff0442c9a152767073872118%7C1%7C0%7C638658000201454565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=YyAIuowltu%2FHI4FiN5Q5OU5Zzg5LoHeXIZw%2BfNK%2Bnn0%3D&reserved=0</a>
 for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cdan.geist%40cox.com%7C34ce6c43dd16473322f208dcf8113d70%7C9feebc97ff0442c9a152767073872118%7C1%7C0%7C638658000201479405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=2AVX6msPo9CIFVkdBWmUu2ZM2e%2BFr9Hwid9cg4CM9Hg%3D&reserved=0</a>.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users">https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cdan.geist%40cox.com%7C34ce6c43dd16473322f208dcf8113d70%7C9feebc97ff0442c9a152767073872118%7C1%7C0%7C638658000201494671%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=tYR3rNuy1%2FmtiOmtiagSOhKedTCpQqSWfGOqFowT1IE%3D&reserved=0</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>