Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Dashboard error with new Traefik2 setup #59

Closed
modem7 opened this issue Jun 28, 2020 · 10 comments
Closed

404 Dashboard error with new Traefik2 setup #59

modem7 opened this issue Jun 28, 2020 · 10 comments

Comments

@modem7
Copy link

modem7 commented Jun 28, 2020

Hi guys,

I'm pretty sure this is an ID10T issue, but I've previously used Nginx, so not quite sure where to diagnose here!

First time setting up Traefik v2, and got a Dashboard 404 error.

I've tried curl https://192.168.0.6:8080/api/http/routers and get: 404 page not found

Here's my config: https://pastebin.com/KUpSPVAk

Inspect response: https://pastebin.com/MwYaDPik

Here are the logs I currently have: https://pastebin.com/nR9cEzm1

I'm also getting 404 on https:// traefik. modem7. com.

69fe1bf3841f34e92f5b3928723a056cf6881886

I'm also seeing acme.json is still empty.

Any help for this muppet would certainly be appreciated!

Thank you

@modem7 modem7 changed the title 404 Error with new Traefik2 setup 404 Dashboard error with new Traefik2 setup Jun 28, 2020
@htpcBeginner
Copy link
Owner

htpcBeginner commented Jul 2, 2020

You have indentation issues:

ports:
 - "80:80"
  - "443:443"
  - "8080:8080"

And your traefik logs points this out.

@htpcBeginner
Copy link
Owner

Plus you are using staging server, which I assume because you are still testing.

@modem7
Copy link
Author

modem7 commented Jul 2, 2020

Heya,

Yupper, the staging server is only because I'm still getting everything set up!

Regarding the indentation, it seems that's an odd pastebin glitch.

Here's my notepad++ SS:

image

@demartini
Copy link

Hi @modem7,

Use a yaml validator like (https://jsonformatter.org/yaml-validator) to check the code's indentation, this help a lot.

@modem7
Copy link
Author

modem7 commented Jul 4, 2020

Hi @modem7,

Use a yaml validator like (https://jsonformatter.org/yaml-validator) to check the code's indentation, this help a lot.

Hello,

Thank you for the link. The only issue that was happening was with this line here:

- --providers.docker.defaultrule=Host({{ index .Labels "com.docker.compose.service" }}.$DOMAINNAME)

I notice that on github it's different than from the guide with it's formatting.

Here are my latest files:
Traefik log:
https://pastebin.com/bFHMHhKk

Yaml:
https://pastebin.com/qAQX1CV0

image

Unfortunately still getting a 404 when attempting.

@Akruidenberg
Copy link

I have this also. Ik set version tag 2.2.1 and its working now!

@modem7
Copy link
Author

modem7 commented Jul 9, 2020

I have this also. Ik set version tag 2.2.1 and its working now!

Thanks for the reply!

I gave that a try but unfortunately getting the same thing!

I've even tried commenting out the staging server line to see if it was that, but still no go

@modem7
Copy link
Author

modem7 commented Jul 10, 2020

I have this also. Ik set version tag 2.2.1 and its working now!

Would you be able to paste your config in pastebin so I could see where I'm going wrong at all?

@modem7 modem7 closed this as completed Jul 20, 2020
@randomodbuild
Copy link

I see this issue is closed, were you able to fix it @modem7 ?

@modem7
Copy link
Author

modem7 commented Jan 5, 2021

I see this issue is closed, were you able to fix it @modem7 ?

Sorry for the delay in replying!

So in my particular case, it was because I was trying to run traefik on a macvlan which was screwing with things. Once I attached it to the bridge network, it worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants