techno-tim / techno-tim.github.io

Open Source, Community Driven, Documentation for Techno Tim YouTube Videos/ Complete with examples for all your copy pasta needs!

Home Page:https://technotim.live

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

acme not working with Traefik config files from your setup.

kg6ebj opened this issue · comments

docker logs -f traefik
time="2021-05-11T16:51:15Z" level=info msg="Configuration loaded from file: /traefik.yml"
time="2021-05-11T16:51:15Z" level=error msg="The ACME resolver "cloudflare" is skipped from the resolvers list because: unable to get ACME account: permissions 640 for acme.json are too open, please use 600"
time="2021-05-11T16:51:15Z" level=error msg="Cannot start the provider *file.Provider: error reading configuration file: /root/docker/traefik/config.yml - open /root/docker/traefik/config.yml: no such file or directory"
time="2021-05-11T16:51:17Z" level=error msg="the router traefik-secure@docker uses a non-existent resolver: cloudflare"
^C
root@r720-photon [ ~/docker/traefik ]# chmod 600 data/acme.json
root@r720-photon [ ~/docker/traefik ]# docker-compose up -d --force-recreate
Recreating traefik ... done
root@r720-photon [ ~/docker/traefik ]# docker logs -f traefik
time="2021-05-11T16:52:06Z" level=info msg="Configuration loaded from file: /traefik.yml"
time="2021-05-11T16:52:06Z" level=error msg="The ACME resolver "cloudflare" is skipped from the resolvers list because: unable to get ACME account: invalid character '-' in numeric literal"
time="2021-05-11T16:52:06Z" level=error msg="Cannot start the provider *file.Provider: error reading configuration file: /root/docker/traefik/config.yml - open /root/docker/traefik/config.yml: no such file or directory"
time="2021-05-11T16:52:08Z" level=error msg="the router traefik-secure@docker uses a non-existent resolver: cloudflare"
^C

resolved by commenting out the File section in traefik.yml

       network: proxy
#   file:
#      filename: /config.yml
certificatesResolvers:
 under providers.