Hello I'm newbe using traefik:v1.7.18-alpine and I'm getting trouble with ACME.
This is my traefik.toml
debug = false
logLevel = "INFO"
defaultEntryPoints = ["http", "https"]
[accessLog]
filePath = "access.log"
# format = "json"
[web]
# Port for the status/dashboard page
address = ":8080"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "localdev.com"
watch = true
exposedByDefault = false
[acme]
email = "myemail@gmail.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
This is my docker-compose.yaml
version: '3'
services:
app:
image: traefik:v1.7.18-alpine
restart: always
ports:
- "80:80"
- "443:443"
- "8080:8080"
#command:
# - --acme.storage=acme.json
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.toml:/traefik.toml
- ./acme.json:/acme.json
networks:
- web
networks:
web:
external: true
With docker-composer up I'm getting this LOGs
↪ docker-compose up
Starting traefik_app_1 ... done
Attaching to traefik_app_1
app_1 | time="2019-10-10T16:21:00Z" level=info msg="Using TOML configuration file /traefik.toml"
app_1 | time="2019-10-10T16:21:00Z" level=warning msg="web provider configuration is deprecated, you should use these options : api, rest provider, ping and metrics"
app_1 | time="2019-10-10T16:21:00Z" level=info msg="Traefik version v1.7.18 built on 2019-09-26_01:56:30PM"
app_1 | time="2019-10-10T16:21:00Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/v1.7/basics/#collected-data\n"
**app_1 | time="2019-10-10T16:21:00Z" level=error msg="Failed to read new account, ACME data conversion is not available : unexpected end of JSON input"**
**app_1 | time="2019-10-10T16:21:00Z" level=error msg="Unable to add ACME provider to the providers list: unable to get ACME account : unexpected end of JSON input"**
app_1 | time="2019-10-10T16:21:00Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:0xc0008d1580 Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc000841840} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
app_1 | time="2019-10-10T16:21:00Z" level=info msg="Preparing server https &{Address::443 TLS:0xc000202630 Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc000841880} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
app_1 | time="2019-10-10T16:21:00Z" level=info msg="Starting server on :80"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Preparing server traefik &{Address::8080 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc0008418a0} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Starting server on :443"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Starting provider configuration.ProviderAggregator {}"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Starting provider *docker.Provider {\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Trace\":false,\"TemplateVersion\":2,\"DebugLogGeneratedTemplate\":false,\"Endpoint\":\"unix:///var/run/docker.sock\",\"Domain\":\"localdev.com\",\"TLS\":null,\"ExposedByDefault\":false,\"UseBindPortIP\":false,\"SwarmMode\":false,\"Network\":\"\",\"SwarmModeRefreshSeconds\":15}"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Starting server on :8080"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Server configuration reloaded on :80"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Server configuration reloaded on :443"
app_1 | time="2019-10-10T16:21:01Z" level=info msg="Server configuration reloaded on :8080"
As you can see I get "Failed to read new account, ACME data conversion is not available : unexpected end of JSON input" and "Unable to add ACME provider to the providers list: unable to get ACME account : unexpected end of JSON input"
What's I'm doing wrong?
Thanks for answers!