-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
marathon and traefik 2.1 not reading /etc/hosts of container resulting in 504 Gateway timeout #6001
marathon and traefik 2.1 not reading /etc/hosts of container resulting in 504 Gateway timeout #6001
Comments
Hi! I'm Træfiker 🤖 the bot in charge of communication regulation. Thanks for your interest in Traefik! We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug. To confirm this, please join our Community Forum and reach out to us on the Traefik section. In case I'm wrong (well, that would be embarrassing 😅), my developers will re-open the issue and fix me! In the meantime, you can double check Traefik's documentation. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Not related to #1243, it seems that Related to https://stackoverflow.com/questions/49476452/traefik-forwarding-to-a-host-and-overriding-ip
will solve the issue of |
Fix traefik/traefik#6001 ### What does this PR do? It create the missing `/etc/nsswitch.conf`. ### Motivation During proxying, traefik is performing a DNS resolution. This DNS resolution is skipping `/etc/hosts` file. This can cause unwanted DNS resolution, especially when using hostname as fqdn in marathon. If you use `/etc/hosts` file for some resolution, this will fix it. If you use a real fqdn in marathon on a private network, you will still have to properly configure DNS serveur in traefik host.
Bug
What did you do?
I have deployed the following app on marathon:
This is the
docker-compose.yml
used to start the traefik container onlocalhost
, that can reach marathon on the LAN throughhttp://192.168.0.22:8080
:What did you expect to see?
I expect to be able to succeed this command:
What did you see instead?
Curl response:
traefik debug log:
Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
This is my
traefik.yaml
If applicable, please paste the log output in DEBUG level (
--log.level=DEBUG
switch)Note: the IP it dial as nothing to do with my LAN, it is owned by my ISP and it is not even my WAN address.
On the dashboard, IP are correctly guessed and all are reachable by telnet from traefik host.
I am out of idea, it simply does not work with marathon, any idea what is failing here?
Thanks and best!
The text was updated successfully, but these errors were encountered: