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

Consul demo not working - Undefined backend #411

Closed
VAdamec opened this issue May 27, 2016 · 1 comment
Closed

Consul demo not working - Undefined backend #411

VAdamec opened this issue May 27, 2016 · 1 comment

Comments

@VAdamec
Copy link

VAdamec commented May 27, 2016

Latest build:
https://github.com/containous/traefik/releases/tag/v1.0.0-beta.784

/sbin/traefik --debug --consul --consul.endpoint='10.4.21.139:8500' --debug --web --web.address=':8080'
2016/05/27 06:12:11 configuration.go:217: No configuration file found

ERRO[2016-05-27T06:12:11Z] Error getting keys /traefik/backends/traefik/servers/ Key not found in store
ERRO[2016-05-27T06:12:11Z] Error getting keys /traefik/backends/traefik/servers/ Key not found in store
ERRO[2016-05-27T06:12:11Z] Error getting keys /traefik/frontends/traefik/routes/ Key not found in store
ERRO[2016-05-27T06:12:11Z] Error loading new configuration, aborted Undefined backend:
ERRO[2016-05-27T06:12:11Z] Error getting keys /traefik/frontends/traefik/routes/ Key not found in store
ERRO[2016-05-27T06:12:13Z] Error loading new configuration, aborted Undefined backend:
#!/bin/sh

# backend 1
curl -i -H "Accept: application/json" -X PUT -d "NetworkErrorRatio() > 0.5"   http://10.4.21.139:8500/v1/kv/traefik/backends/backend1/circuitbreaker/expression
curl -i -H "Accept: application/json" -X PUT -d "http://172.17.0.2:80"        http://10.4.21.139:8500/v1/kv/traefik/backends/backend1/servers/server1/url
curl -i -H "Accept: application/json" -X PUT -d "10"                          http://10.4.21.139:8500/v1/kv/traefik/backends/backend1/servers/server1/weight
curl -i -H "Accept: application/json" -X PUT -d "http://172.17.0.3:80"        http://10.4.21.139:8500/v1/kv/traefik/backends/backend1/servers/server2/url
curl -i -H "Accept: application/json" -X PUT -d "1"                           http://10.4.21.139:8500/v1/kv/traefik/backends/backend1/servers/server2/weight

# backend 2
curl -i -H "Accept: application/json" -X PUT -d "drr"                         http://10.4.21.139:8500/v1/kv/traefik/backends/backend2/loadbalancer/method
curl -i -H "Accept: application/json" -X PUT -d "http://172.17.0.4:80"        http://10.4.21.139:8500/v1/kv/traefik/backends/backend2/servers/server1/url
curl -i -H "Accept: application/json" -X PUT -d "1"                           http://10.4.21.139:8500/v1/kv/traefik/backends/backend2/servers/server1/weight
curl -i -H "Accept: application/json" -X PUT -d "http://172.17.0.5:80"        http://10.4.21.139:8500/v1/kv/traefik/backends/backend2/servers/server2/url
curl -i -H "Accept: application/json" -X PUT -d "2"                           http://10.4.21.139:8500/v1/kv/traefik/backends/backend2/servers/server2/weight

# frontend 1
curl -i -H "Accept: application/json" -X PUT -d "backend2"                    http://10.4.21.139:8500/v1/kv/traefik/frontends/frontend1/backend
curl -i -H "Accept: application/json" -X PUT -d "http"                        http://10.4.21.139:8500/v1/kv/traefik/frontends/frontend1/entrypoints
curl -i -H "Accept: application/json" -X PUT -d "Host:test.localhost"         http://10.4.21.139:8500/v1/kv/traefik/frontends/frontend1/routes/test_1/rule

# frontend 2
curl -i -H "Accept: application/json" -X PUT -d "backend1"                    http://10.4.21.139:8500/v1/kv/traefik/frontends/frontend2/backend
curl -i -H "Accept: application/json" -X PUT -d "http"                  http://10.4.21.139:8500/v1/kv/traefik/frontends/frontend2/entrypoints
curl -i -H "Accept: application/json" -X PUT -d "Path:/test"                  http://10.4.21.139:8500/v1/kv/traefik/frontends/frontend2/routes/test_2/rule
@emilevauge
Copy link
Member

OK there is a bug in the default configuration. Workaround: add --consul.prefix=traefik in your command line.

@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

3 participants