-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waitress 1.0 doesn't work on linux without reachable DNS #149
Comments
glibc also returns the wrong error code when it should simply return the IP address when calling Please verify that you don't have dns after files in nsswitch, because otherwise glibc will do the wrong thing. |
|
@romor do you have a /etc/resolv.conf? If you do, does it contain a "nameserver" entry? |
Yes, I have a /etc/resolv.conf and it contains a But, as mentioned, the system is not always connected to Internet so the DNS server may not be reachable while starting Pyramid. |
That shouldn't matter. That call ( Even if DNS is missing or doesn't resolve, it should return the IP address. Do you have an exact version number for Debian so that I can attempt to replicate the issue and figure out an appropriate work-around? |
I just recently installed it using the net-installer (
For testing purposes I just patched
This worked then... |
Sure, you're swallowing the error and returning pre-canned data. It looks like glibc "fixed" this here: https://bugzilla.redhat.com/show_bug.cgi?id=204122 This of course does the wrong thing, I never explicitly ask for Apparently that breaks Postfix, so now the behaviour doesn't match the man page, which is what bug https://bugzilla.redhat.com/show_bug.cgi?id=221583 is all about (which wasn't fixed, ultimately). The fix for waitress is to try and then except the |
Pin to 0.9.x for right now. I'll try and get a new release out sometime this week with the aforementioned changes. |
Thanks for your help. |
This fix works for me. Thank you. |
I've released Waitress 1.0.2 with the bugfix: https://pypi.python.org/pypi/waitress/1.0.2 |
I use waitress on a Debian server without Internet connection. Waitress does not start if the DNS server is not reachable:
I am not sure whether this is related to issue #131, but at least this is still open in version 1.0.0. Version 0.9.0 does not show this problem.
The text was updated successfully, but these errors were encountered: