1. Caddy version (caddy version
):
last docker image abiosoft/caddy
2. How I run Caddy:
I simply use this docker compose :
version: "3.2"
services:
back:
build:
context: ./backend/
dockerfile: Dockerfile
ports:
- "3000:3000"
front:
build:
context: ./FrontEnd/
dockerfile: Dockerfile
server-ssl-front:
image: abiosoft/caddy
depends_on:
- front
links:
- front
ports:
- '80:80'
- '443:443'
volumes:
- './.caddy:/root/.caddy'
- './Caddyfile:/etc/Caddyfile'
a. System environment:
Ubuntu 20.04.3 and I use docker
b. Command:
docker-compose up
c. My complete Caddyfile or JSON config:
uat-harx.ai {
proxy / front:3000
}
3. The problem I’m having:
Caddy just seems to ask for another certificate when we restart it. But we have the uuid inside the /.caddy in local that is the same as the uuid in the /.caddy in the docker. So we reached the limit of certificate. But we just want to use the already generated one.
4. Error messages and/or full log output:
server-ssl-front_1 | Activating privacy features... 2022/05/02 08:15:18 [INFO][uat.harx.ai] Obtain certificate
server-ssl-front_1 | 2022/05/02 08:15:18 [INFO] [uat.harx.ai] acme: Obtaining bundled SAN certificate
server-ssl-front_1 | 2022/05/02 08:15:19 [ERROR][uat.harx.ai] failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url: (attempt 1/3; challenge=http-01)
server-ssl-front_1 | 2022/05/02 08:15:20 [INFO] [uat.harx.ai] acme: Obtaining bundled SAN certificate
server-ssl-front_1 | 2022/05/02 08:15:20 [ERROR][uat.harx.ai] failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url: (attempt 2/3; challenge=http-01)
server-ssl-front_1 | 2022/05/02 08:15:21 [INFO] [uat.harx.ai] acme: Obtaining bundled SAN certificate
server-ssl-front_1 | 2022/05/02 08:15:21 [ERROR][uat.harx.ai] failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url: (attempt 3/3; challenge=http-01)
server-ssl-front_1 | 2022/05/02 08:15:22 [INFO] [uat.harx.ai] acme: Obtaining bundled SAN certificate
server-ssl-front_1 | 2022/05/02 08:15:22 [ERROR][uat.harx.ai] failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url: (attempt 1/3; challenge=tls-alpn-01)
server-ssl-front_1 | 2022/05/02 08:15:23 [INFO] [uat.harx.ai] acme: Obtaining bundled SAN certificate
server-ssl-front_1 | 2022/05/02 08:15:23 [ERROR][uat.harx.ai] failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url: (attempt 2/3; challenge=tls-alpn-01)
server-ssl-front_1 | 2022/05/02 08:15:24 [INFO] [uat.harx.ai] acme: Obtaining bundled SAN certificate
server-ssl-front_1 | 2022/05/02 08:15:24 [ERROR][uat.harx.ai] failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url: (attempt 3/3; challenge=tls-alpn-01)
server-ssl-front_1 | 2022/05/02 08:15:25 failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: uat.harx.ai: see https://letsencrypt.org/docs/rate-limits/, url:
server-ssl-front_1 | exit status 1
5. What I already tried:
I tried to change a million time the name of the directory and of the volumes but nothing seems to work.