traefik: Traefik doesn't auto re-add re-enabled service based on Consul Catalog changes

Do you want to request a feature or report a bug?

Bug

What did you do?

  • register service -> service comes available in traefik
  • stop service -> service is gone from traefik
  • start same service -> service is not available in traefik but alive in Consul
  • wait 5-20 minutes -> service is not available in traefik
  • restart traefik -> service comes available in traefik

What did you expect to see?

It seems to be a sub-issue of previously closed issue

What did you see instead?

Changes are properly updated, but in case of deregistering and registering same service there are issues.

Also I believe I could misconfigured something, would appreciate for hints

Output of traefik version: (What version of Traefik are you using?)

Consul version: 1.0.6 Traefik version: v1.5.4, v1.6.0-rc4

What is your environment & configuration (arguments, toml, provider, platform, …)?

My Traefik config is:

[entryPoints]
  [entryPoints.http]
    address = ":5555"
    compress = false
    [entryPoints.http.proxyProtocol]
        trustedIPs = ["10.0.0.0/8"]
  [entryPoints.traefik_api]
    address = ":1111"
    compress = false
    
[ping]
  entryPoint = "http"

[consulCatalog]
endpoint = "127.0.0.1:8450"
exposedByDefault = false
prefix = "traefik"

[api]
  entryPoint = "traefik_api"
  dashboard = true
  debug = true
[traefikLog]
  format   = "json"
[accessLog]
  format   = "json"
defaultEntryPoints = ["http"]

Frontend rule is exposed via service tag: traefik.frontend.rule=Host:example.com

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 30 (16 by maintainers)

Most upvoted comments

@ldez in my opinion I dont think issue #3380 is a duplicate of this issue. There are two related issues but quite different:

  1. Issue with re-registration of a service (service register/de-register). Issue with “watchCatalogServices” function to be precise.
  2. Issue with reflection of healthy/unhealthy nodes (health checks in consul catalog) of a service in traefik “backends” configuration. Issue with “watchHealthState” function to be precise.

I think this issue thread is for the 1st. And I opened #3380 for the 2nd.