jskarpe / ruby-pdns

Automatically exported from code.google.com/p/ruby-pdns
0 stars 0 forks source link

error intiating logging #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get:

/var/lib/gems/1.8/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.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `new'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `fatal'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/sbin/pdns-pipe-runner.rb:23
    from /usr/bin/pdns-pipe-runner.rb:19:in `load'
    from /usr/bin/pdns-pipe-runner.rb:19
Jul 03 14:29:45 [PIPEBackend] Fatal argument error: Child closed pipe
Jul 03 14:29:45 Caught an exception instantiating a backend, cleaning up
Jul 03 14:29:45 TCP server is unable to launch backends - will try again when 
questions come in: Child closed pipe
Jul 03 14:29:45 About to create 3 backend threads for UDP
Jul 03 14:29:45 Done launching threads, ready to distribute questions
/var/lib/gems/1.8/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.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `new'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `fatal'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/sbin/pdns-pipe-runner.rb:23
    from /usr/bin/pdns-pipe-runner.rb:19:in `load'
    from /usr/bin/pdns-pipe-runner.rb:19
Jul 03 14:29:45 [PIPEBackend] Fatal argument error: Child closed pipe
Jul 03 14:29:45 Caught an exception instantiating a backend, cleaning up
/var/lib/gems/1.8/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.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `new'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `fatal'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/sbin/pdns-pipe-runner.rb:23
    from /usr/bin/pdns-pipe-runner.rb:19:in `load'
    from /usr/bin/pdns-pipe-runner.rb:19
Jul 03 14:29:46 [PIPEBackend] Fatal argument error: Child closed pipe
Jul 03 14:29:46 Caught an exception instantiating a backend, cleaning up
/var/lib/gems/1.8/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.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `new'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/lib/pdns.rb:81:in `fatal'
    from /var/lib/gems/1.8/gems/ruby-pdns-0.5.1/sbin/pdns-pipe-runner.rb:23
    from /usr/bin/pdns-pipe-runner.rb:19:in `load'
    from /usr/bin/pdns-pipe-runner.rb:19
Jul 03 14:29:46 [PIPEBackend] Fatal argument error: Child closed pipe
Jul 03 14:29:46 Caught an exception instantiating a backend, cleaning up

Original issue reported on code.google.com by james%lo...@gtempaccount.com on 3 Jul 2010 at 6:31

GoogleCodeExporter commented 8 years ago
Looks like whatever goes wrong happens before the config is even parsed, so 
fatal fails cos it cant log.

The quickest way to figure out wtf is probably to modify pdns-pipe-runner.rb 
lines 23,24 and make it print to STDERR, then as the pdns user just run 
pdns-pipe-runner.rb and you should get something more useful to STDERR

Original comment by r...@devco.net on 3 Jul 2010 at 7:40

GoogleCodeExporter commented 8 years ago
Okay - it's very RH centric and the default logfile went somewhere it shouldn't 
have.  Fixed now.

Also I get:

Unknown config parameter stats_dir
Unknown config parameter keepstats

But things work now at least.

Original comment by james%lo...@gtempaccount.com on 3 Jul 2010 at 9:23

GoogleCodeExporter commented 8 years ago
I'm getting the same error. However I've changed to print STDERR, but I got 
result 

Runner loop exited: 
/var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns/runner.rb:138: Invalid next
/var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns/runner.rb:143: Invalid next
/var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns/runner.rb:147: Invalid next
/var/lib/gems/1.9.1/gems/ruby-pdns-0.5.1/lib/pdns/runner.rb

Please advice

Original comment by g...@lumanau.web.id on 18 Jun 2014 at 12:19