caddy-docker-proxy icon indicating copy to clipboard operation
caddy-docker-proxy copied to clipboard

looking up info for HTTP challenge

Open 0x4139 opened this issue 2 years ago • 1 comments

I seem to get this kind of info into the logs

{"level":"error","ts":1629708967.7232833,"logger":"tls.issuance.acme","msg":"looking up info for HTTP challenge","host":"subdomain.domain-staging.com","error":"no information found to solve challenge for identifier: subdomain.domain-staging.com"}

my caddy configuration is:

    image: myregistry.com:myimage:mytag
    container_name: stats
    restart: always
    labels:
      caddy_0: stats.domain-dev.com
      caddy_0.reverse_proxy: "{{upstreams 3000}}"
      caddy_1: stats.domain-staging.com
      caddy_1.reverse_proxy: "{{upstreams 3000}}"

it seems that for some domains in the same config it's generating the certificates without any issue, but it seems that i still get these errors

0x4139 avatar Aug 23 '21 08:08 0x4139

Sorry for the late reply.

How many caddy docker proxy server replicas do you have?

Looking only at the error message, it seems that a replica got a request to solve the http challenge, but it doesn't have the challenge answer to provide because the challenge was initiated by another replica.

When using many replicas it's important to configure a shared storage using some storage plugin listed in https://caddyserver.com/docs/modules/ . Or to share a volume as described in volumes section.

lucaslorentz avatar Sep 23 '21 07:09 lucaslorentz

Closing due to lack of additional information

lucaslorentz avatar Nov 25 '22 21:11 lucaslorentz