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

Load config error: Get http://consul-leader:8500 #16

Closed
rodrigosaraiva opened this issue May 20, 2019 · 3 comments
Closed

Load config error: Get http://consul-leader:8500 #16

rodrigosaraiva opened this issue May 20, 2019 · 3 comments

Comments

@rodrigosaraiva
Copy link

rodrigosaraiva commented May 20, 2019

Traefik container is failing:

Load config error: Get http://consul-leader:8500/v1/kv/traefik?consistent=&recurse=&wait=30000ms: dial tcp 10.0.7.10:8500: i/o timeout, retrying in 434.838594ms

I am getting this error, trying to work with one manager and one worker node.

@tiangolo
Copy link
Owner

It seems that Traefik is not being able to communicate with Consul. So, it's possible that Consul has some error. Check the logs in the Consul service.


It's possible that you started more consul replicas than needed.

If you have less than 3 nodes, you can use export CONSUL_REPLICAS=0: https://dockerswarm.rocks/traefik/#preparation

That will start a single Consul with -bootstrap. That way there will be only one Consul, and it won't have problems trying to choose a leader if it knows he's the only one.

@rodrigosaraiva
Copy link
Author

I manage that, I was trying to create swarm mode with external IP. I did without and it works.
Now I have one more problem with invalid certificates.

@tiangolo
Copy link
Owner

Cool! I'm glad you solved the first problem 🤷‍♂️

Thanks for reporting back and closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants