<div>Hi :)</div><div><br></div>This is the pipe-command related stuff in my pdns.conf (rest is default):<div><br><div><div>launch=pipe,bind</div><div>pipe-command=/etc/powerdns/dns_pipe.rb</div><div>pipebackend-abi-version=2</div>
<div>pipe-timeout=5</div><div>distributor-threads=1</div></div><div><br></div><div>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:</div>
</div><div><br></div><div><div>Jan 27 21:25:26 zanview pdns[30070]: Query: 'Q#<a href="http://011zanview.com#011IN#011SOA#011-1#01162.189.34.89#0110.0.0.0">011zanview.com#011IN#011SOA#011-1#01162.189.34.89#0110.0.0.0</a>'</div>
<div>Jan 27 21:25:26 zanview pdns[30070]: Query: 'Q#<a href="http://011zanview.com#011IN#011ANY#011-1#01162.189.34.89#0110.0.0.0">011zanview.com#011IN#011ANY#011-1#01162.189.34.89#0110.0.0.0</a>'</div></div><div>
<br>
</div><div>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!</div><div><br></div><div>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 </div>
<div><br></div><div>Now when I run pdns_server I see this in the log:</div><div><br></div><div><div>Jan 27 22:13:19 zanview pdns[13883]: Engaging bypass - now operating unthreaded</div><div>Jan 27 22:13:19 zanview pdns[13883]: [PIPEBackend] Fatal argument error: Timeout waiting for data from coprocess</div>
<div>Jan 27 22:13:19 zanview pdns[13883]: Caught an exception instantiating a backend: Timeout waiting for data from coprocess</div><div>Jan 27 22:13:19 zanview pdns[13883]: Cleaning up</div><div>Jan 27 22:13:19 zanview pdns[13883]: Got a signal 6, attempting to print trace: </div>
<div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance() [0x6b6ce0]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f56908774a0]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f5690877425]</div>
<div>Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f569087ab8b]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x115) [0xb62315]</div>
<div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN10__cxxabiv111__terminateEPFvvE+0x6) [0xb60756]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance() [0xb60783]</div>
<div>
Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(__cxa_rethrow+0x46) [0xb60806]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN17BackendMakerClass3allEb+0x6e9) [0x69b179]</div>
<div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN12UeberBackendC1ERKSs+0x169) [0x6c0709]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_ZN13PacketHandlerC1Ev+0x20) [0x673080]</div>
<div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance() [0x6f28a1]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /usr/sbin/pdns_server-instance(_Z7qthreadPv+0xb38) [0x6f4948]</div><div>Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f5690f03e9a]</div>
<div>Jan 27 22:13:19 zanview pdns[13883]: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f5690934cbd]</div><div>Jan 27 22:13:20 zanview pdns[13670]: Our pdns instance (13883) exited after signal 6</div><div>Jan 27 22:13:20 zanview pdns[13670]: Respawning</div>
</div><div><br></div><div>Here is the pipe script in action:</div><div><br></div><div><div>~ # sudo -u pdns /etc/powerdns/dns_pipe.rb</div><div>Q<span class="Apple-tab-span" style="white-space:pre"> </span>test_host<span class="Apple-tab-span" style="white-space:pre"> </span>IN ANY<span class="Apple-tab-span" style="white-space:pre"> </span>-1<span class="Apple-tab-span" style="white-space:pre"> </span>192.0.43.10</div>
<div>DATA<span class="Apple-tab-span" style="white-space:pre"> </span>test_host<span class="Apple-tab-span" style="white-space:pre"> </span>IN<span class="Apple-tab-span" style="white-space:pre"> </span>A<span class="Apple-tab-span" style="white-space:pre"> </span>120<span class="Apple-tab-span" style="white-space:pre"> </span>-1<span class="Apple-tab-span" style="white-space:pre"> </span>89.207.135.250</div>
<div>END</div></div><div><br></div><div>So it doesn't appear to be the script or anything to do with permissions.</div><div><br></div><div>Any ideas what am I doing wrong?</div>