Incomplete information in syslog error message for webserver binding #82

Closed
Habbie opened this Issue Apr 26, 2013 · 2 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

Observed with PowerDNS 2.9.20, binary installed from RPM to Red Hat Enterprise Linux v3.0:

When attempting to start pdns, pdns_server kept exiting (code 1) with the following entries in the syslog:

Fatal error in webserver: binding to port 8081: Cannot assign requested address

It turned out that I had a bad IP address entered for the webserver-address variable in pdns.conf, but that was not obvious from the error message. A slight change to the error message to include the IP and port would prove much more helpful - for example (fake IP address):

Fatal error in webserver: binding to 123.231.132.213:8081: Cannot assign requested address

The success message for the webserver does display the IP address in the syslog:

Launched webserver on 123.231.132.213:8081

Adding the IP address to the error message would be consistent with the success message, and would be helpful in debugging configuration problems.

Thanks for considering this issue.

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
Looks worthwhile, but as we are rather busy, perhaps you could write the patch?

You can probably just copy paste around in ws.cc, part of the PowerDNS distribution.

Good luck!

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
fixed in 991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment