Access to dashboard results in 404 after upgrade of traefik

Hello, access to my Traefik dashboard is not working anymore, the only changes I made was upgrading the Traefik container first from 2.10.4 to 2.10.5, then to 2.10.7 (currently running version).
When I activated the dashboard, I created a middleware to authenticate by Basic Auth.
My setup looks like this:

labels:
- traefik.http.routers.dashboard.rule=Host("my.server.tld") && (PathPrefix("/api") || PathPrefix("/dashboard"))
- traefik.http.routers.dashboard.service=api@internal
- traefik.http.routers.dashboard.tls=true
- traefik.http.routers.dashboard.tls.certresolver=myresolver
- traefik.http.routers.dashboard.tls.options=intermediate@file
- traefik.http.routers.dashboard.middlewares=traefik-auth
- traefik.http.middlewares.traefik-auth.basicauth.realm="Traefik Auth"
- traefik.http.middlewares.traefik-auth.basicauth.usersFile=/auth/users.txt

This was working without any problem with 2.10.4. After going to https://my.server.tld/dashboard" the basic auth dialog came up and after giving valid credentials the dashboard was displayed properly.
Then I did the above mentioned updates without testing access to the dashboard again.
When I now try to access the dashboard, the basic auth dialog is triggered, but after typing in username and password I get an "404 page not found". I have set the log level to debug, but no entries at all within the logs when trying to access the dashboard (!).
On the other hand access to the /api endpoint is working without any problems if I include the basic auth here (e.g. with Postman). Also I get various 200 response codes entries with ".../api" within the logs.
What is going wrong here? I checked the docs from the versions I upgraded to, but I found no changes regarding the behaviour of the internal service api@internal, which provides access to the api as well as the dashboard IMHO.
Within my traefik.toml configuration file I changed the entry "[api], insecure = true" (a relict from the times where I accessed the dashboard only by means of an SSH tunnel via 127.0.0.1:8080) to false - but no difference, still 404s.
Access via the SSH tunnel is not working anymore, too.
I have no clue at the moment why access to the api still works, but not the one to the dashboard.
The entry [api], dashboard = true in traefik.toml was set from the beginning.

Any help is appreciated.
Best regards

Ralf

Please format your config with 3 backticks before and after.

Note that the correct path is /dashboard/.

Hello bluepuma,

I'm very uncomfortable with missing this trailing slash :roll_eyes:. Added this to the end of the URL and all is working fine. For whatever reason I saved the bookmark for the dashboard wrongly without the trailing slash.

Thanks for giving me the hint regarding config formatting, I will follow this convention now.

Again, thanks for your (wasted) time to drive me in the right direction.

Best regards from winterly Germany

--
Ralf

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