[Pdns-users] 3.0-RC2 crash on sending notify
Charles Sprickman
spork at bway.net
Fri May 27 03:06:16 UTC 2011
Hello,
This might be a n00b mistake, not sure. I've got two test instances of
PowerDNS setup. One is setup as a master with sqlite3 backend, the
other as a slave, also with sqlite3 backend. Both are using the schema
outlined in the documentation.
The slave has only this in it's db:
sqlite> select * from supermasters;
x.x.x.38|pdns1.foo.com|auto
And the master has one domain and 3 records:
sqlite> select * from domains;
1|pdnsexample.com|||MASTER||
sqlite> select * from records;
1|1|pdnsexample.com|NS|pdns2.foo.com|||
2|1|pdnsexample.com|NS|pdns1.foo.com|||
3|1||SOA|pdns1.foo.com hostmaster at foo.com 1 3600 3600 10800 3600|||
The master responds to queries for "pdnsexample.com" (both NS and SOA)
properly, so I assume I have the records entered correctly.
I manually told the master to notify the slave about this domain to test
that the master/slave and supermaster functionality works, and I could
not see anything at all happening on the slave. Going back to the
master, I found that powerdns was crashing each time I asked it to send
notifies. I could not get verbose logging out of the master (tried
various values for loglevel from 5 all the way up to 999 and never saw
an increase in verbosity), so I tried launching powerdns from gdb, just
to see if I could get more of a hint about what was happening. This is
what I see when running "pdns_control notify pdnsexample.com":
[New Thread 286564c0 (LWP 100444)]
May 26 08:16:50 gsqlite3: connection to
'/usr/local/etc/pdns/pdns-test.db' successful
May 26 08:16:50 gsqlite3: connection to
'/usr/local/etc/pdns/pdns-test.db' successful
May 26 08:16:51 Done launching threads, ready to distribute questions
[New Thread 28656380 (LWP 100445)]
May 26 08:17:16 Notification request for domain 'pdnsexample.com'
received from operator
May 26 08:17:16 gsqlite3: connection to
'/usr/local/etc/pdns/pdns-test.db' successful
May 26 08:17:16 gsqlite3: connection to
'/usr/local/etc/pdns/pdns-test.db' successful
May 26 08:17:16 Queued notification of domain 'pdnsexample.com' to x.x.x.38
May 26 08:17:16 Queued notification of domain 'pdnsexample.com' to x.x.x.39
Unable to close down sqlite connection: 5
Program received signal SIGABRT, Aborted.
[Switching to Thread 28657140 (LWP 100236)]
0x2847366b in thr_kill () from /lib/libc.so.7
(gdb) cont
Continuing.
Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb) quit
The one thing I see here that I didn't see in the log was the "Unable to
close down sqlite connection: 5" message.
Any ideas? I understand 3.0 is not production yet, so I'm not sure how
much confidence to place in it - in other words, is this me or is this PDNS?
Also if I need to recompile with debugging enabled, I'll need some help
- I'm not at all familiar with C++.
Thanks,
Charles
More information about the Pdns-users
mailing list