When I start caddy, it raised an error, which is
loading config: loading new config: loading tls app module: tls: invalid configuration: automation policy 2 is the second policy that acts as default/catch-all, but will never be used
4. Error messages and/or full log output:
{"level":"info","ts":1609670773.2256284,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"} reload: sending configuration to instance: caddy responded with error: HTTP 400: {"error":"loading config: loading new config: loading tls app module: tls: invalid configuration: automation policy 2 is the second policy that acts as default/catch-all, but will never be used"}
5. What I already tried:
When I deleted the http block or :9180 block, even cert_issuer zerossl api_key, it returned to normal, but I don`t know what caused it.
1. Caddy version (
caddy version
):2.3.0
2. How I run Caddy:
Docker
a. System environment:
Docker 19.03.13, Ubuntu 20.04
b. Command:
c. My complete Caddyfile or JSON config:
3. The problem I'm having:
When I start caddy, it raised an error, which is
loading config: loading new config: loading tls app module: tls: invalid configuration: automation policy 2 is the second policy that acts as default/catch-all, but will never be used
4. Error messages and/or full log output:
{"level":"info","ts":1609670773.2256284,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"} reload: sending configuration to instance: caddy responded with error: HTTP 400: {"error":"loading config: loading new config: loading tls app module: tls: invalid configuration: automation policy 2 is the second policy that acts as default/catch-all, but will never be used"}
5. What I already tried:
When I deleted the
http
block or:9180
block, evencert_issuer zerossl api_key
, it returned to normal, but I don`t know what caused it.6. Link to thread in caddy.community:
https://caddy.community/t/cant-use-cert-issuer-zerossl-in-global-options-after-upgrade-2-3/11002/8