Getting 404 errors for ALL routes. How can I troubleshoot?

I just restarted traefik on my server and now I'm getting 404 returned for ALL requests. When I enable debug verbosity on logs it shows no information about why it's returning a 404.

The access log just shows this whenever I try to hit the endpoint:

10.0.0.2 - - [24/Jan/2021:01:51:00 +0000] "GET / HTTP/2.0" - - "-" "-" 69 "-" "-" 0ms

All other log information on startup looks normal. My base config was successfully loaded with no errors.

Startup command:

/usr/local/bin/traefik \
--providers.file.directory=/tmp/traefik \
--providers.file.watch=true \
--entrypoints.web.address=:80 \
--entrypoints.preview.address=:8080 \
--api.dashboard=true \
--accesslog=true \
--log.level=debug \
--entrypoints.websecure.address=:443 \
--entryPoints.websecure.http.tls.certResolver=ideCertResolver \
--certificatesResolvers.ideCertResolver.acme.email=REDACTED \
--certificatesResolvers.ideCertResolver.acme.storage=/etc/traefik/acme.json \
--certificatesResolvers.ideCertResolver.acme.dnsChallenge.provider=azure

/tmp/traefik/base.toml:

[http.routers.ide-controller]
entrypoints = [ "web" ]
rule = "Host(`controller.ide.boldidea.org`)"
service = "ide-controller"

  [http.routers.ide-controller.tls]
  certResolver = "ideCertResolver"

    [[http.routers.ide-controller.tls.domains]]
    main = "ide.boldidea.org"
    sans = [ "*.ide.boldidea.org", "*.preview.ide.boldidea.org" ]

[http.routers.dashboard]
entrypoints = [ "web" ]
rule = "Host(`dashboard.ide.boldidea.org`)"
service = "api@internal"
middlewares = [ "dashboard-auth" ]

[[http.services.ide-controller.loadBalancer.servers]]
url = "http://app:3000"

[http.middlewares.auth-handler.forwardAuth]
address = "http://app:3000/auth"
trustForwardHeader = true

[http.middlewares.dashboard-auth.basicAuth]
users = [ "admin:REDACTED" ]

The ide-controller service works just fine and can be accessed without issue when running curl from the traefik container.

I eventually figured out what was wrong. I realized my router configs were all using the "web" entrypoint when they should have been using the "websecure" entrypoint. I didn't change it when moving to prod.

Having said that, I wish the debug logs could have given more information that would've clued be in on that :stuck_out_tongue:

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