[Pdns-users] Pdns python pipe

dfedorov bounce_04 at mail.ru
Thu May 10 11:51:46 UTC 2012


pdns config

allow-axfr-ips=192.168.0.0/20
local-address=192.168.1.134 127.0.0.1
query-local-address=192.168.1.134
cache-ttl=600
daemon=yes
default-ttl=3600
disable-axfr=no
disable-tcp=no
distributor-threads=32
do-ipv6-additional-processing=yes
fancy-records=no
guardian=no

launch=pipe
pipe-command=/etc/powerdns/p.py
pipebackend-abi-version=1
pipe-timeout=5

local-port=53

log-dns-details=/dev/stderr #/dev/log
log-failed-updates=/dev/stderr #/dev/log
logfile=/dev/stderr #/dev/log
loglevel=9
master=no
max-queue-length=500000
max-tcp-connections=10000
negquery-cache-ttl=600
no-shuffle=off
query-cache-ttl=600
query-logging=yes
queue-limit=1500
recursive-cache-ttl=84600
recursor=no
send-root-referral=yes
setgid=pdns
setuid=pdns

socket-dir=/var/run

On start im getting error_log - 

May 10 15:47:07 en0011 pdns[2418]: About to create 32 backend threads for
UDP
May 10 15:47:07 en0011 pdns[2418]: About to create 32 backend threads for
UDP
May 10 15:47:07 en0011 pdns[2418]: [PIPEBackend] Fatal argument error: Child
closed pipe
May 10 15:47:07 en0011 pdns[2418]: [PIPEBackend] Fatal argument error: Child
closed pipe
May 10 15:47:07 en0011 pdns[2418]: Caught an exception instantiating a
backend, cleaning up
May 10 15:47:07 en0011 pdns[2418]: Caught an exception instantiating a
backend, cleaning up
May 10 15:47:07 en0011 pdns[2418]: Caught an exception instantiating a
backend, cleaning up
May 10 15:47:07 en0011 pdns[2418]: Caught an exception instantiating a
backend, cleaning up
May 10 15:47:07 en0011 pdns[2418]: [PIPEBackend] Fatal argument error: Child
closed pipe
May 10 15:47:07 en0011 pdns[2418]: [PIPEBackend] Fatal argument error: Child
closed pipe

The backend script fails on 
import MySQLdb,
commenting this string resolves the problem.
Starting the script from the command line gives no errors, i've tried to
send messages to it from stdin and got correct responses to stdout.
Any suggestions?

-- 
View this message in context: http://old.nabble.com/Pdns-python-pipe-tp33763674p33763674.html
Sent from the PowerDNS mailing list archive at Nabble.com.




More information about the Pdns-users mailing list