-
I'm experiansing issue behaviour on Traefik when attaching sablier middleware to a Traefik router configuration as a middleware in a stack/service. error: invalid middleware "it-tool-sablier-plugin-mid@file" configuration: invalid middleware type or middleware does not exist Weird is that If the sablier middleware not attached to any traefik router, it is recognized normally by traefik as a middleware. Has anyone experience the same ? Environment is: Traefik static config for sablier is:
Traefik dynamic config (file provider) for sablier middleware of it-tools specific service is:
At this point Traefik accepts and recognizes above middleware configuration, as it is not attached to any traefik router yet. The error behavior comes when I attach the "it-tool-sablier-plugin-mid@file" as middleware in a traefik router of a traefik service. Normally it shouldn't. Middleware really exists and recognized by traefik before attached to it-tools service traefik router. I use the following docker compose definition for it-tools service/stack:
And finally, Sablier API service it self:
Both Sablier and It-tools services are attached to traefik_traefik-net and capable to resolve / ping each other including traefik. F|or theshake of testing also created a docker provider version of sablier middleware "it-tool-sablier1-plugin-mid@docker" using tarefik labels in docker compose ...
... but also behaves with the same error when attaching to the traefik router. Really wander is there any sablier middleware configuration error by my side ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
if Traefik.log report back the following error, it's because Traefik has no permissions to create the directory plugins-storage. time="2022-11-03T16:09:42+01:00" level=error msg="Plugins are disabled because an error has occurred." error="mkdir plugins-storage: permission denied" Explanation: If you run Traefik container using non root user for security reasons, then Traefik can not create the directory . permission-denied. Solution: Inspired by Steps:
|
Beta Was this translation helpful? Give feedback.
if Traefik.log report back the following error, it's because Traefik has no permissions to create the directory plugins-storage.
time="2022-11-03T16:09:42+01:00" level=error msg="Plugins are disabled because an error has occurred." error="mkdir plugins-storage: permission denied"
Explanation:
Traefik tries to create directory /plugins-storage on the filesystem root.
If you run Traefik container using non root user for security reasons, then Traefik can not create the directory . permission-denied.
Solution:
Inspired by
Can’t use plugins - error=“mkdir plugins-storage: permission denied”
Steps: