ruby-pdns 0.5.1 on ruby 1.9.1

40 views
Skip to first unread message

Bursuc Sergiu

unread,
Aug 16, 2013, 2:30:22 PM8/16/13
to ruby-pd...@googlegroups.com
Hi,

I have a working pdns with ruby-pdns server running on debian squeeze which I am migrating to a new server running debian wheezy with ruby 1.9.1. The setup is the same.

In syslog I get this when starting powerdns:
Aug 16 18:17:52 ns1 pdns[5545]: gmysql Connection successful. Connected to database 'pdns' on '127.0.0.1'.
Aug 16 18:17:52 ns1 pdns[5545]: [PIPEBackend] Fatal argument error: Child closed pipe
Aug 16 18:17:52 ns1 pdns[5545]: Caught an exception instantiating a backend: Child closed pipe
Aug 16 18:17:52 ns1 pdns[5545]: Cleaning up

The pipe backend is:
pipe-command=/usr/sbin/pdns-pipe-runner.rb
pipebackend-abi-version=2

When I run the pipe backend command manually I get:
root@ns1:/tmp# /usr/sbin/pdns-pipe-runner.rb
/var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns/log.rb:10:in `initialize': undefined method `logfile' for nil:NilClass (NoMethodError)
        from /var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `new'
        from /var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `fatal'
        from /usr/sbin/pdns-pipe-runner.rb:23:in `rescue in <main>'
        from /usr/sbin/pdns-pipe-runner.rb:20:in `<main>'

logfile is specified in config file:
root@ns1:/tmp# cat /usr/local/etc/pdns-ruby-backend.cfg
# Ruby PowerDNS Config File
logfile = /var/log/pdns/pipe-backend.log
loglevel = info
records_dir = /usr/local/etc/records
statsdir = /var/log/pdns/stats
recordstats = true
soa_contact = ns1.someserver.com
soa_nameserver = ns1.someserver.com
reload_interval = 60
keep_logs = 10
max_log_size = 1024000
maint_interval = 60
geoip.dblocation = /usr/share/GeoIP/GeoIP.dat


Is there anything I need to do to make it work with ruby 1.9.1?
Please advise
Thanks
Reply all
Reply to author
Forward
0 new messages