"Cannot build the configuration: Key not found in store" providerName=consul

Use consul as provider, start traefik, report this:

traefik    | time="2020-12-19T03:02:47Z" level=info msg="Configuration loaded from file: /etc/traefik/traefik.toml"
traefik    | time="2020-12-19T03:02:48Z" level=error msg="Cannot build the configuration: Key not found in store" providerName=consul
traefik    | time="2020-12-19T03:02:48Z" level=error msg="KV connection error: Key not found in store, retrying in 462.318748ms" providerName=consul
traefik    | time="2020-12-19T03:02:48Z" level=error msg="KV connection error: Key not found in store, retrying in 492.389441ms" providerName=consul
traefik    | time="2020-12-19T03:02:49Z" level=error msg="KV connection error: Key not found in store, retrying in 1.142114207s" providerName=consul
traefik    | time="2020-12-19T03:02:50Z" level=error msg="KV connection error: Key not found in store, retrying in 1.486109007s" providerName=consul
traefik    | time="2020-12-19T03:02:51Z" level=error msg="KV connection error: Key not found in store, retrying in 1.982055195s" providerName=consul
traefik    | time="2020-12-19T03:02:53Z" level=error msg="KV connection error: Key not found in store, retrying in 2.728256121s" providerName=consul
traefik    | time="2020-12-19T03:02:56Z" level=error msg="KV connection error: Key not found in store, retrying in 6.097818893s" providerName=consul

And my traefik.toml is

[providers.consul]
  endpoints = ["consul_server:8500"]
  rootKey = "traefik"
  username = ""
  password = ""

Anyone has good idea?

Got it ! I should use "providers.consulCatalog" instead of "providers.consul", the traefik.toml like this:

[entryPoints]
  [entryPoints.app]
    address = ":8010"

[providers.consulCatalog]
  refreshInterval = "1s"
  prefix = "traefik"
  cache = true
  [providers.consulCatalog.endpoint]
  	address = "consul_server_2:8500"
  	scheme = "http"
  	datacenter = ""
  	endpointWaitTime = "15s"

And it work !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.