<div>Hello,<br><br>This is a funny question.<br>Mysql is FINE and it's up and running on localhost.<br><br>Here is the startup log of PDNS.<br>Jan 29 14:59:05 k2 pdns[30294]: PowerDNS 2.9.20 (C) 2001-2006 PowerDNS.COM BV (Mar 10 2007, 00:36:58, gcc 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) starting up<br>
Jan 29 14:59:05 k2 pdns[30294]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.<br>Jan 29 14:59:05 k2 pdns[30294]: Set effective group id to 109<br>
Jan 29 14:59:05 k2 pdns[30294]: Set effective user id to 113<br>Jan 29 14:59:05 k2 pdns[30294]: Creating backend connection for TCP<br>Jan 29 14:59:05 k2 pdns[30294]: Master/slave communicator launching<br>Jan 29 14:59:05 k2 pdns[30294]: gmysql Connection succesful<br>
Jan 29 14:59:05 k2 pdns[30294]: gmysql Connection succesful<br>Jan 29 14:59:05 k2 pdns[30294]: About to create 10 backend threads for UDP<br>Jan 29 14:59:05 k2 pdns[30294]: gmysql Connection succesful<br>Jan 29 14:59:05 k2 pdns[30294]: 14 slave domains need checking<br>
Jan 29 14:59:05 k2 pdns[30294]: Domain <a href="http://test1.com">test1.com</a> is stale, master serial 1201611548, our serial 1201610827<br>Jan 29 14:59:05 k2 pdns[30294]: Domain <a href="http://test2.com">test2.com</a> is stale, master serial 1201611548, our serial 1201610827<br>
Jan 29 14:59:05 k2 pdns[30294]: Domain <a href="http://test3.com">test3.com</a> is stale, master serial 1201611548, our serial 1201610827<br>Jan 29 14:59:05 k2 pdns[30294]: gmysql Connection succesful<br>Jan 29 14:59:05 k2 pdns[30294]: AXFR started for '<a href="http://test1.com">test1.com</a>', transaction started<br>
Jan 29 14:59:05 k2 pdns[30294]: gmysql Connection succesful<br>Jan 29 14:59:05 k2 pdns[30294]: AXFR done for '<a href="http://test1.com">test1.com</a>', zone committed</div>
<div> </div>
<div> </div>
<div>The problem is that mysql closes the connection if there is no activity.</div>
<div>PDNS does not make sure that MySQL is still "alive" and from time to time it shows in the log errors like:</div>
<div>Jan 29 11:33:57 k2 pdns[28941]: Backend error: Failed to execute mysql_query, perhaps connection died? Err=1: MySQL server has gone away<br> </div>
<div>Does PDNS have a timeout for backend connection "recheck" ?</div>
<div>Can this be configured ?</div>
<div> </div>
<div>Is there anything we can do to make sure the connection does not go away ?</div>
<div> </div>
<div>Note: the NS server activity for now is not much (we're still testing and just have a couple of domains on it).</div>
<div><br>Thanks,</div>
<div> </div>
<div>On 1/29/08, Nico van Royen <<a href="mailto:nico@van-royen.nl">nico@van-royen.nl</a>> wrote:<br>> Hello,<br>> <br>> Do you infact have a running mysql server ?  Also check the database that<br>> you have specified in your pdns.conf matches your actual database<br>
> information (db name, user/password etc).<br>> <br>> Regards,<br>> Nico<br>> <a href="http://WARP3.COM">WARP3.COM</a><br>> ________________________________<br>> From: Catalin Constantin [mailto:<a href="mailto:dazoot@gmail.com">dazoot@gmail.com</a>]<br>
> To: <a href="mailto:pdns-users@mailman.powerdns.com">pdns-users@mailman.powerdns.com</a><br>> Sent: Tue, 29 Jan 2008 10:48:09 +0100<br>> Subject: [Pdns-users] Backend error: Failed to execute mysql_query, perhaps<br>
> connection died? Err=1: MySQL server has gone away<br>> <br>> <br>> Hello,<br>> <br>> We're getting quite many errors:<br>> Backend error: Failed to execute mysql_query, perhaps connection died?<br>
> Err=1: MySQL server has gone away latelly.<br>> <br>> I checked the docs and the mailing lists for this error and i found<br>> little informations about it.<br>> <br>> What is actually the solution for this error not to happen ?<br>
> Nice would be to have a real example.<br>> <br>> Note:<br>> - we use latest pdns package from Debian Etch (stable).<br>> <br>> Thanks,<br>> <br>> -- <br>> Catalin Constantin<br>> Dazoot Software<br>
> <a href="http://www.dazoot.eu/">http://www.dazoot.eu/</a><br>> _______________________________________________<br>> Pdns-users mailing list<br>> <a href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a><br>
> <a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>> <br>> _______________________________________________<br>> Pdns-users mailing list<br>
> <a href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a><br>> <a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
> <br>> <br><br><br>-- <br>Catalin Constantin<br>Dazoot Software<br><a href="http://www.dazoot.eu/">http://www.dazoot.eu/</a><br> </div>