Skip to content
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

Traefik crashes when using Consul catalog #699

Closed
sonnysideup opened this issue Sep 24, 2016 · 6 comments
Closed

Traefik crashes when using Consul catalog #699

sonnysideup opened this issue Sep 24, 2016 · 6 comments

Comments

@sonnysideup
Copy link

I'm running Traefik inside of a container (v1.0.2) configured to use the Consul catalog for backend discovery. It will run well for about 2 days on average and then crash with the following error: Cannot connect to consul server Consul service list nil. This happens consistently.

My Consul cluster has remained stable during this entire testing effort so I believe this is a bug inside of Traefik. Here is some console output:

image

@emilevauge
Copy link
Member

I assume it's due to a lot of reconnections to consul. This should be fixed in master. Could you try with containous/traefik:experimental Docker image?

@sonnysideup
Copy link
Author

I can use that image and it should be pretty straightforward to verify that this fixes the problem. I do, however, have one question. Should I be using the traefik or containous/traefik container in general? Is the former being actively maintained (it doesn't have the v1.0.3 or experimental tagged images)?

@emilevauge
Copy link
Member

@drywheat traefik is the official Docker image, and each new version need a pull request at Docker. containous/traefik is managed by traefik team instead. We use the latest for experimental builds.

@sonnysideup
Copy link
Author

Thank you for clearing that up.

So, regarding the newer experimental traefik image, it no longer errors out in a way that causes the container to exit. Instead, its health check stopped responding and it stopped routing requests after a couple of days (same time period as before).

Here's a screenshot of the new logs:

image

@emilevauge emilevauge added this to the 1.1 milestone Oct 2, 2016
@emilevauge
Copy link
Member

@drywheat sadly I can't reproduce your issue :'( Could give me more details on this? How much errors do you get between traefik start and the issue? Could you launch traefik in DEBUG mode for few hours and send the logs?

@sonnysideup
Copy link
Author

I'm sorry I waited so long to respond. I believe this bug went away after I updated to v1.1.0-rc1. I'm happy to close the issue now and I want to say thanks for your help.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants