It is able to write to the database a couple of times - and I know it has permissions to both write to the file and create it's journal file in the same directory. Heck, the directory and files are owned by pdns so it can do whatever it desires.<br>

<br clear="all">Christian "BC" Svensson<br>Codelead Systems - <a href="http://www.codelead.se">http://www.codelead.se</a><br>
<br><br><div class="gmail_quote">On Sat, Jul 18, 2009 at 7:10 PM, bert hubert <span dir="ltr"><<a href="mailto:bert.hubert@netherlabs.nl">bert.hubert@netherlabs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Very quick reply without thinking, make sure PowerDNS has write<br>
permissions on the *directory* containing the sqlite3 database - this<br>
tends to trip people up 'it can write to the file' is not enough.<br>
<br>
I'll read your message more carefully to see what else might be happening.<br>
<br>
    Bert<br>
<div><div></div><div class="h5"><br>
On Sat, Jul 18, 2009 at 6:51 PM, Christian Svensson<<a href="mailto:blue@cmd.nu">blue@cmd.nu</a>> wrote:<br>
> Hello.<br>
><br>
> We are trying to migrate from bind9 to PowerDNS.<br>
> We have our back-end supermaster successfully constructed using PowerDNS +<br>
> postgresql 8.3 + alsonotify-patch (<a href="http://wiki.powerdns.com/trac/ticket/216" target="_blank">http://wiki.powerdns.com/trac/ticket/216</a>)<br>
> The slaves have to have a very small footprint and therefore we have chosen<br>
> sqlite3 as our target database.<br>
><br>
> After combating some weird incompatibility with Debian Lenny 5.0 where PDNSs<br>
> gsqlite3 refused to write anything to the database it begun to crash when we<br>
> did the initial transfer (notify of several hundred domains).<br>
> I have tried with the OpenDBX backend which seems to work much better<br>
> regarding the sqlite3 incompatibility but also crashes during heavy transfer<br>
> load.<br>
> Setting the distributor-threads to 1 helps it somewhat, but I think there<br>
> might be a different thread that messes things up.<br>
><br>
> Log excerpt:<br>
> Jul 18 16:45:40 Reading random entropy from '/dev/urandom'<br>
> Jul 18 16:45:40  [OpendbxBackend] This is the opendbx module version 2.9.22<br>
> (Jul 18 2009, 14:19:38) reporting<br>
> Jul 18 16:45:40  [OpendbxBackend] This is the opendbx module version 2.9.22<br>
> (Jul 18 2009, 14:19:28) reporting<br>
> Jul 18 16:45:40 This is a standalone pdns<br>
> Jul 18 16:45:40 It is advised to bind to explicit addresses with the<br>
> --local-address option<br>
> Jul 18 16:45:40 UDP server bound to <a href="http://0.0.0.0:53" target="_blank">0.0.0.0:53</a><br>
> Jul 18 16:45:40 TCP server bound to <a href="http://0.0.0.0:53" target="_blank">0.0.0.0:53</a><br>
> Jul 18 16:45:40 PowerDNS 2.9.22 (C) 2001-2009 PowerDNS.COM BV (Jul 18 2009,<br>
> 14:23:39, gcc 4.3.2) starting up<br>
> Jul 18 16:45:40 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free<br>
> software, and you are welcome to redistribute it according to the terms of<br>
> the GPL version 2.<br>
> Jul 18 16:45:40 Set effective group id to 104<br>
> Jul 18 16:45:40 Set effective user id to 102<br>
> Jul 18 16:45:40 DNS Proxy launched, local port 27636, remote <a href="http://127.0.0.1:1053" target="_blank">127.0.0.1:1053</a><br>
> Jul 18 16:45:40 Master/slave communicator launching<br>
> Jul 18 16:45:40 Launched webserver on <a href="http://127.0.0.1:8081" target="_blank">127.0.0.1:8081</a><br>
> Jul 18 16:45:40 Creating backend connection for TCP<br>
> % Jul 18 16:45:40 [OpendbxBackend] Database connection (read) to<br>
> '/srv/pdns/' succeeded<br>
> Jul 18 16:45:40 [OpendbxBackend] Database connection (write) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:40 211 slave domains need checking<br>
> Jul 18 16:45:40 [OpendbxBackend] Database connection (read) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:40 [OpendbxBackend] Database connection (write) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:40 About to create 1 backend threads for UDP<br>
> Jul 18 16:45:40 [OpendbxBackend] Database connection (read) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:40 [OpendbxBackend] Database connection (write) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:40 Done launching threads, ready to distribute questions<br>
> Jul 18 16:45:47 Engaging bypass - now operating unthreaded<br>
> Jul 18 16:45:47 [OpendbxBackend] Database connection (read) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:47 [OpendbxBackend] Database connection (write) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://stadsbudcentralen.nu" target="_blank">stadsbudcentralen.nu</a> from<br>
> 213.132.111.158 for which we are not authoritative<br>
> Jul 18 16:45:47 Created new slave zone '<a href="http://stadsbudcentralen.nu" target="_blank">stadsbudcentralen.nu</a>' from<br>
> supermaster 213.132.111.158, queued axfr<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://stadsbudcentralen.se" target="_blank">stadsbudcentralen.se</a> from<br>
> 213.132.111.158 for which we are not authoritative<br>
> Jul 18 16:45:47 Initiating transfer of '<a href="http://stadsbudcentralen.nu" target="_blank">stadsbudcentralen.nu</a>' from remote<br>
> '213.132.111.158'<br>
> Jul 18 16:45:47 [OpendbxBackend] Database connection (read) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:47 [OpendbxBackend] Database connection (write) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:47 Created new slave zone '<a href="http://stadsbudcentralen.se" target="_blank">stadsbudcentralen.se</a>' from<br>
> supermaster 213.132.111.158, queued axfr<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://westberg.info" target="_blank">westberg.info</a> from 213.132.111.158 for<br>
> which we are not authoritative<br>
> Jul 18 16:45:47 AXFR started for '<a href="http://stadsbudcentralen.nu" target="_blank">stadsbudcentralen.nu</a>', transaction started<br>
> Jul 18 16:45:47 AXFR done for '<a href="http://stadsbudcentralen.nu" target="_blank">stadsbudcentralen.nu</a>', zone committed<br>
> Jul 18 16:45:47 Initiating transfer of '<a href="http://stadsbudcentralen.se" target="_blank">stadsbudcentralen.se</a>' from remote<br>
> '213.132.111.158'<br>
> Jul 18 16:45:47 [OpendbxBackend] Database connection (read) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:47 Created new slave zone '<a href="http://westberg.info" target="_blank">westberg.info</a>' from supermaster<br>
> 213.132.111.158, queued axfr<br>
> Jul 18 16:45:47 [OpendbxBackend] Database connection (write) to '/srv/pdns/'<br>
> succeeded<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://trevlig.nu" target="_blank">trevlig.nu</a> from 213.132.111.158 for<br>
> which we are not authoritative<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://trevlig.nu" target="_blank">trevlig.nu</a> for<br>
> potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://drproduction.com" target="_blank">drproduction.com</a> from 213.132.111.158<br>
> for which we are not authoritative<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://drproduction.com" target="_blank">drproduction.com</a> for<br>
> potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://floopy.be" target="_blank">floopy.be</a> from 213.132.111.158 for which<br>
> we are not authoritative<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://floopy.be" target="_blank">floopy.be</a> for<br>
> potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://gronastuganikalmar.se" target="_blank">gronastuganikalmar.se</a> from<br>
> 213.132.111.158 for which we are not authoritative<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://gronastuganikalmar.se" target="_blank">gronastuganikalmar.se</a><br>
> for potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://kigsrdr.org" target="_blank">kigsrdr.org</a> from 213.132.111.158 for<br>
> which we are not authoritative<br>
> Jul 18 16:45:47 [OpendbxBackend] getRecord: Unable to get next result -<br>
> database is locked<br>
> Jul 18 16:45:47 Communicator thread died because of error: Error:<br>
> odbx_result() failed<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://kigsrdr.org" target="_blank">kigsrdr.org</a> for<br>
> potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://kalmargamecenter.com" target="_blank">kalmargamecenter.com</a> from<br>
> 213.132.111.158 for which we are not authoritative<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://kalmargamecenter.com" target="_blank">kalmargamecenter.com</a><br>
> for potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://larvig.nu" target="_blank">larvig.nu</a> from 213.132.111.158 for which<br>
> we are not authoritative<br>
> Jul 18 16:45:47 Unable to find backend willing to host <a href="http://larvig.nu" target="_blank">larvig.nu</a> for<br>
> potential supermaster 213.132.111.158<br>
> Jul 18 16:45:47 Received NOTIFY for <a href="http://lyktan-vilshult.se" target="_blank">lyktan-vilshult.se</a> from 213.132.111.158<br>
> for which we are not authoritative<br>
><br>
> This is an example where it happens quite early. Sometimes it gets a couple<br>
> of hundred domains before it crashes.<br>
> Tried with both gsqlite3 and opendbx.<br>
><br>
> Note: I have only been able to test the distributor-threads = 1 with<br>
> opendbx. But I would assume that option and thus the error is backend<br>
> agnostic in that it only requires the backend to handle one write/read<br>
> connection.<br>
><br>
> Please advice.<br>
><br>
> Christian "BC" Svensson<br>
> Codelead Systems - <a href="http://www.codelead.se" target="_blank">http://www.codelead.se</a><br>
</div></div>> !DSPAM:4a61fdc1156835958412055!<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" target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
><br>
><br>
> !DSPAM:4a61fdc1156835958412055!<br>
><br>
><br>
</blockquote></div><br>