PDNS Recursor - Fail to start - Main proces exist

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

PDNS Recursor - Fail to start - Main proces exist

Federico87
Hi guys,

Just installed the new version of PDNS recursor and I m not able to start it. That is the message. 

Nov 17 23:18:01 banana systemd[1]: pdns-recursor.service: main process exited, code=exited, status=1/FAILURE
Nov 17 23:18:01 banana systemd[1]: Unit pdns-recursor.service entered failed state.

Any clue?

Thank You very much

Federico

_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users
Reply | Threaded
Open this post in threaded view
|

Re: PDNS Recursor - Fail to start - Main proces exist

Peter van Dijk
Hello Federico,

On 18 Nov 2015, at 0:23, Federico Olivieri wrote:

> Just installed the new version of PDNS recursor and I m not able to
> start
> it. That is the message.

What version? Where did you get it?

> Nov 17 23:18:01 banana systemd[1]: pdns-recursor.service: main process
> exited, code=exited, status=1/FAILURE
> Nov 17 23:18:01 banana systemd[1]: Unit pdns-recursor.service entered
> failed state.

Usually there is at least some logging from recursor itself. Can you
check other logfiles, or the systemd journal?

Kind regards,
--
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/

_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users
Reply | Threaded
Open this post in threaded view
|

Re: PDNS Recursor - Fail to start - Main proces exist

Aki Tuomi
In reply to this post by Federico87
journalctl -xn

might know

Aki

On Tue, Nov 17, 2015 at 11:23:09PM +0000, Federico Olivieri wrote:

> Hi guys,
>
> Just installed the new version of PDNS recursor and I m not able to start
> it. That is the message.
>
> Nov 17 23:18:01 banana systemd[1]: pdns-recursor.service: main process
> exited, code=exited, status=1/FAILURE
> Nov 17 23:18:01 banana systemd[1]: Unit pdns-recursor.service entered
> failed state.
>
> Any clue?
>
> Thank You very much
>
> Federico

> _______________________________________________
> Pdns-users mailing list
> [hidden email]
> http://mailman.powerdns.com/mailman/listinfo/pdns-users


_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users
Reply | Threaded
Open this post in threaded view
|

Re: PDNS Recursor - Fail to start - Main proces exist

Federico87
In reply to this post by Peter van Dijk
Removed dnsdist package and it started

root@banana:~# apt-get remove dnsdist

Have I done something wrong during the installation. I don't know nothing about dnsdist. I just installed for getting a better understandi and play with it

Federico

2015-11-17 23:38 GMT+00:00 Federico Olivieri <[hidden email]>:
That is the output form journactl. No many info unfortunately

root@banana:~# journalctl -xn
-- Logs begin at Tue 2015-11-17 23:35:44 GMT, end at Tue 2015-11-17 23:36:25 GMT. --
Nov 17 23:35:55 banana acpid[544]: starting up with netlink and the input layer
Nov 17 23:35:55 banana acpid[544]: 1 rule loaded
Nov 17 23:35:55 banana acpid[544]: waiting for events: event logging is off
Nov 17 23:35:55 banana systemd[1]: Unit pdns-recursor.service entered failed state.
Nov 17 23:35:55 banana kernel: random: nonblocking pool is initialized
Nov 17 23:36:15 banana apache2[493]: Starting web server: apache2AH00557: apache2: apr_sockaddr_info_get() failed for banana
Nov 17 23:36:15 banana apache2[493]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppre
Nov 17 23:36:24 banana sshd[772]: Accepted password for root from 192.168.0.15 port 58578 ssh2
Nov 17 23:36:24 banana sshd[772]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 17 23:36:25 banana apache2[493]: .
root@banana:~# service pdns-recursor restart
root@banana:~#
root@banana:~#
root@banana:~# journalctl -xn
-- Logs begin at Tue 2015-11-17 23:35:44 GMT, end at Tue 2015-11-17 23:36:46 GMT. --
Nov 17 23:36:46 banana pdns_recursor[886]: Enabling IPv6 transport for outgoing queries
Nov 17 23:36:46 banana pdns_recursor[886]: Inserting rfc 1918 private space zones
Nov 17 23:36:46 banana pdns_recursor[886]: Exception: Resolver binding to server socket on port 53 for 127.0.0.1: Address already in use
Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 PowerDNS Recursor itself will distribute queries over threads
Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 If using IPv6, please raise sysctl net.ipv6.route.max_size, currently set to 4096 which is < 16384
Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 Enabling IPv6 transport for outgoing queries
Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 Inserting rfc 1918 private space zones
Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 Exception: Resolver binding to server socket on port 53 for 127.0.0.1: Address already in use
Nov 17 23:36:46 banana systemd[1]: pdns-recursor.service: main process exited, code=exited, status=1/FAILURE
Nov 17 23:36:46 banana systemd[1]: Unit pdns-recursor.service entered failed state.
root@banana:~#

The version not sure, I need to check. I got form PDSN jessie debian repository (that one published on your website)

Federico

2015-11-17 23:25 GMT+00:00 Peter van Dijk <[hidden email]>:
Hello Federico,

On 18 Nov 2015, at 0:23, Federico Olivieri wrote:

Just installed the new version of PDNS recursor and I m not able to start
it. That is the message.

What version? Where did you get it?

Nov 17 23:18:01 banana systemd[1]: pdns-recursor.service: main process
exited, code=exited, status=1/FAILURE
Nov 17 23:18:01 banana systemd[1]: Unit pdns-recursor.service entered
failed state.

Usually there is at least some logging from recursor itself. Can you check other logfiles, or the systemd journal?

Kind regards,
--
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/


_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users



_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users
Reply | Threaded
Open this post in threaded view
|

Re: PDNS Recursor - Fail to start - Main proces exist

shthead
On 18/11/2015 7:56 AM, Federico Olivieri wrote:

Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 Exception: Resolver binding to server socket on port 53 for 127.0.0.1: Address already in use

Hi,

That's the reason. dnsdist was most likely listening on 127.0.0.1:53, when you start PowerDNS it then tries to bind to the same address/port but it is already in use.

_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users
Reply | Threaded
Open this post in threaded view
|

Re: PDNS Recursor - Fail to start - Main proces exist

Federico87

Hi, Thanks for your reply.

I'm quite new in load-balancing in DNS (and in DNS i general) and I'm trying to understand what it could be the best practice for dnsdist.

I have a server pdns recursor and a second dns recursor (still with power dns) where I would send all doggy traffic that I receive from some customer. Can I set-up dnsdist on the same machine where I'm running dns recursor? I guess that I will have a config file where I can change the local address where bind it

Thank You!

On 18 Nov 2015 00:04, "Chris" <[hidden email]> wrote:
On 18/11/2015 7:56 AM, Federico Olivieri wrote:

Nov 17 23:36:46 banana pdns_recursor[886]: Nov 17 23:36:46 Exception: Resolver binding to server socket on port 53 for 127.0.0.1: Address already in use

Hi,

That's the reason. dnsdist was most likely listening on 127.0.0.1:53, when you start PowerDNS it then tries to bind to the same address/port but it is already in use.

_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users


_______________________________________________
Pdns-users mailing list
[hidden email]
http://mailman.powerdns.com/mailman/listinfo/pdns-users