When starting Traefik I get a set of errors such as the last line of the log:
2024-07-25T11:41:58+02:00 INF Stats collection is enabled.
2024-07-25T11:41:58+02:00 INF Many thanks for contributing to Traefik's improvement by allowing us to receive anonymous information from your configuration.
2024-07-25T11:41:58+02:00 INF Help us improve Traefik by leaving this feature on :)
2024-07-25T11:41:58+02:00 INF More details on: https://doc.traefik.io/traefik/contributing/data-collection/
2024-07-25T11:41:58+02:00 INF Starting provider aggregator aggregator.ProviderAggregator
2024-07-25T11:41:58+02:00 INF Starting provider *file.Provider
2024-07-25T11:41:58+02:00 INF Starting provider *traefik.Provider
2024-07-25T11:41:58+02:00 INF Starting provider *acme.ChallengeTLSALPN
2024-07-25T11:41:58+02:00 INF Starting provider *acme.Provider
2024-07-25T11:41:58+02:00 INF Starting provider *docker.Provider
2024-07-25T11:41:58+02:00 INF Testing certificate renew... acmeCA=https://acme-v02.api.letsencrypt.org/directory providerName=letsencrypt.acme
2024-07-25T11:41:58+02:00 ERR error="middleware \"authelia@docker\" does not exist" entryPointName=websecure routerName=hass@file
These are entries that are configured through a dynamic config file but Authelia is configured via docker and its labels.
I therefore suppose that when the file is loaded, it does not know yet about Authelia and issues this error.
The services ultimately work (and they are protected by Authelia), so there must be a recovery mechanism.
My questions:
- is my understanding correct?
- during the time between the error and the recovery, do the services work? (skipping Authelia). If they are failed this is not a problem but if the missing middleware is simply skipped this is a big problem (the Authelia authentication would be skipped)
- if we are in the "this is a big problem" situation, how could I fix that? My idea is to move Authelia to the dynamic file configuration despite it not existing yet, which would fail the whole service because
loadBalancer
would point to a non-existing service until Authelia is up
- if we are in the "this is a big problem" situation, how could I fix that? My idea is to move Authelia to the dynamic file configuration despite it not existing yet, which would fail the whole service because