Hi :) This is the pipe-command related stuff in my pdns.conf (rest is default):
launch=pipe,bind pipe-command=/etc/powerdns/dns_pipe.rb pipebackend-abi-version=2 pipe-timeout=5 distributor-threads=1 When I use the vanilla Ubuntu package that comes in Precise, it works for a few days, then it stops responding to requests. I have enabling logging but all I see is: Jan 27 21:25:26 zanview pdns[30070]: Query: 'Q# 011zanview.com#011IN#011SOA#011-1#01162.189.34.89#0110.0.0.0' Jan 27 21:25:26 zanview pdns[30070]: Query: 'Q# 011zanview.com#011IN#011ANY#011-1#01162.189.34.89#0110.0.0.0' I have no idea what is happening, pdns is not growing in memory and taking a low 0.1% cpu but the pipe backend simply stops responding after a few days! I saw that pdns had some commits related to the pipe backend so I've upgrade to the official package: pdns-static 3.2-1 Now when I run pdns_server I see this in the log: Jan 27 22:13:19 zanview pdns[13883]: Engaging bypass - now operating unthreaded Jan 27 22:13:19 zanview pdns[13883]: [PIPEBackend] Fatal argument error: Timeout waiting for data from coprocess Jan 27 22:13:19 zanview pdns[13883]: Caught an exception instantiating a backend: Timeout waiting for data from coprocess Jan 27 22:13:19 zanview pdns[13883]: Cleaning up Jan 27 22:13:19 zanview pdns[13883]: Got a signal 6, attempting to print trace: Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance() [0x6b6ce0] Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f56908774a0] Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f5690877425] Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f569087ab8b] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x115) [0xb62315] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN10__cxxabiv111__terminateEPFvvE+0x6) [0xb60756] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance() [0xb60783] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(__cxa_rethrow+0x46) [0xb60806] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN17BackendMakerClass3allEb+0x6e9) [0x69b179] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN12UeberBackendC1ERKSs+0x169) [0x6c0709] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN13PacketHandlerC1Ev+0x20) [0x673080] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance() [0x6f28a1] Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_Z7qthreadPv+0xb38) [0x6f4948] Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f5690f03e9a] Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5690934cbd] Jan 27 22:13:20 zanview pdns[13670]: Our pdns instance (13883) exited after signal 6 Jan 27 22:13:20 zanview pdns[13670]: Respawning Here is the pipe script in action: ~ # sudo -u pdns /etc/powerdns/dns_pipe.rb Q test_host IN ANY -1 192.0.43.10 DATA test_host IN A 120 -1 89.207.135.250 END So it doesn't appear to be the script or anything to do with permissions. Any ideas what am I doing wrong?
_______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users