For the last 3 days I have been trying to get Traefik v1.7 (I briefly tried v2 but that is another story).
I have lost count how many docker-compose and traefik.toml files I have written and corrected. As far as I can see there is nothing wrong.
So what happens?
When I visit domain1.io I get a warning that the browser doesn't trust a self signed certificate. That I can understand but the Cloudflare challenge works...
And I cannot visit the dashboard either, I get an 404.
Here is my docker-compose and traefik.toml, I think that traefik.toml is the culprit here so that is what I give you: https://gist.github.com/ratnose/6a4b33052426d9b486298aa9ba2cb130
Thank you so much for all the help! I feeling a bit more sane now.
You made var bold, why?
What do you mean that traefik/acme.json doesn't exist?
**~/docker/traefik** $ ls -la
total 12
drwxr-xr-x 2 ladmin ladmin 4096 Aug 14 13:37 **.**
drwxr-xr-x 4 ladmin ladmin 4096 Aug 14 13:07 **..**
-rw------- 1 ladmin ladmin 0 Aug 14 12:38 acme.json
-rw-r--r-- 1 ladmin ladmin 831 Aug 14 13:07 traefik.toml
I moved acme.json to /home/ladmin/docker/acme.json
Changed to storage = "acme.json" - nothing changed.
About log:
docker logs traefik or docker-compose logs traefik
time="2019-08-14T13:33:04Z" level=error msg="Failed to read new account, ACME data conversion is not available : open traefik/acme/acme.json: not a directory"
time="2019-08-14T13:33:04Z" level=error msg="Unable to add ACME provider to the providers list: unable to get ACME account : open traefik/acme/acme.json: not a directory"
That is hours ago. Other than that the log is empty, which I also think is strange.
Sure! Just re-started the docker-compose setup, I discovered something!
The edits I made to traefik.toml wasn't saved to the server, I used Visual Studio Code earlier.
So now they are reapplied. So hopefully the log will be filled with stuff!
Ahhh check that out an error!
traefik | 2019/08/14 18:25:49 Error reading TOML config file /traefik.toml : toml: cannot load TOML value of type string into a Go slice
level=error msg="Failed to read new account, ACME data conversion is not available : permissions 755 for acme.json are too open, please use 600"
level=error msg="Unable to add ACME provider to the providers list: unable to get ACME account : permissions 755 for acme.json are too open, please use 600"
this domain loos strange but apparently something I have written...
traefik.docker.grillgeek.se
I cant find that anywhere... but for some reason put together with the info I have put in.
I still get a ssl warning when entering the domain in a browser.