Ticket #82 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

Incomplete information in syslog error message for webserver binding

Reported by: friggstadk@… Owned by: ahu
Priority: normal Milestone:
Component: component1 Version:
Severity: trivial Keywords:
Cc:

Description

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.

Change History

Changed 6 years ago by ahu

  • owner changed from somebody to ahu
  • status changed from new to assigned

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!

Changed 6 years ago by ahu

  • status changed from assigned to closed
  • resolution set to fixed

fixed in 991

Note: See TracTickets for help on using tickets.