File provider is showing no routes although dynamic_conf.yml has some #178
|
I'm struggling to get Traefik Manager to play nice with my actual setup. It's all managed in dockers. Nothing is shown from the @file provider.
I've tried moving around the I can see the routes from the Route Map, I can try to edit them, but then the forms are not properly filled and the few times I tried, there was a gap between Traefik's configuration and Traefik Manager's view with possibly some corruption in the dynamec_conf (not completely sure about who's the culprit here, could be me checking with vim that the file was properly written). Worth noting: The
|
Replies: 3 comments 1 reply
|
Thanks for the thorough report. The compose files and the config made this quick to track down. Your config is fine. I ran your exact So Why
I tested this with the real image rather than guessing:
Two things to note. A single file mount handles in place edits fine, so this only bites when something replaces the file. And once the container is orphaned it stays orphaned until it restarts, which is why you can open the file in vim, see the right content, and still see something else in the UI. That also explains the split you are seeing: Traefik reports 6 file objects (your 2 routers and 4 middlewares) because it was started after the edit, while Traefik Manager is still reading the pre edit inode. Confirm itdocker exec traefik-manager stat -c '%i %s %y' /app/dynamic_conf.yml
stat -c '%i %s %y' /srv/traefik/dynamic_conf.yml
docker exec traefik-manager cat /app/dynamic_conf.yml | head -30Different inodes, or content that does not match what you edited, confirms it. FixMount the directory instead of the file, in both containers, and point at the file inside it: traefik-manager:
environment:
- CONFIG_PATH=/app/traefik-config/dynamic_conf.yml
volumes:
- /srv/traefik:/app/traefik-configDo the same for Traefik, so its file provider reads a path inside a directory mount rather than If the inodes match and the content is right, then it is happening in the browser. Open DevTools, reload the Routes tab, and post what One more thing worth knowing: v1.14.0 is released tomorrow. It adds support for routes that point at |
|
v1.14.1 is out: https://github.com/chr0nzz/traefik-manager/releases/tag/v1.14.1 The File (external) tab now says why it is empty, either every file provider route comes from a file Traefik Manager manages or Traefik loads none, and links to the Routes tab. It also shows its count as 0 instead of leaving it blank. The docs now explain that the tab is switched on by hand and what an empty one means. |



Thanks for the thorough report. The compose files and the config made this quick to track down.
Your config is fine. I ran your exact
dynamic_conf.ymlagainst 1.13.5 and against tomorrow's build, and both read it correctly:So
noop@internal, theHost(...) || Host(...)rules and the@filemiddleware references are all handled. The problem is that your container is almost certainly reading a different copy of the file than Traefik is.Why
/srv/tra…