Ticket #82 (closed defect: fixed)
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.