caddy: "Context deadline exceeded" when creating certificate
Hello!
We’re getting this error when trying to generate new certificates. We’re using Caddy 2.4.2 and running in 2 servers behind a load balancer, we use DynamoDB to store the certificates.
Up until minutes ago we only used ZeroSSL as the issuer, but after seeing the error we thought it may be something on their side and decided to try with the new fallback functionality using Let’s Encrypt. But we’re getting the same error as with ZeroSSL, and we thought context deadline exceeded sounded like something from inside Caddy and not an error in the issuer.
TLS config
tls { issuer zerossl blablablabla { email my@mail.com dir https://acme.zerossl.com/v2/DV90 eab blabla blablablablablablablablablablablablablablablabla } issuer acme { email my@mail.com } on_demand }All these logs are from our staging environment, which is identical to production and we could replicate the error there.
Full log, with the error
Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.2827234,“msg”:“using provided configuration”,“config_file”:“/etc/caddy/Caddyfile”,“config_adapter”:“”} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: 2021/08/02 15:22:22 [WARNING] Unnecessary header_up (‘X-Forwarded-Proto’ field): the reverse proxy’s default behavior is to pass headers to the upstream Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: 2021/08/02 15:22:22 [WARNING] Unnecessary header_up (‘X-Forwarded-Proto’ field): the reverse proxy’s default behavior is to pass headers to the upstream Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“warn”,“ts”:1627917742.2882245,“msg”:“input is not formatted with ‘caddy fmt’”,“adapter”:“caddyfile”,“file”:“/etc/caddy/Caddyfile”,“line”:2} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.289781,“logger”:“admin”,“msg”:“admin endpoint started”,“address”:“tcp/localhost:2019”,“enforce_origin”:false,“origins”:[“127.0.0.1:2019”,“localhost:2019”,“[::1]:2019”]} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.290084,“logger”:“http”,“msg”:“server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server”,“server_name”:“srv1”,“http_port”:80} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.2901125,“logger”:“http”,“msg”:“server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS”,“server_name”:“srv0”,“https_port”:443} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.290119,“logger”:“http”,“msg”:“enabling automatic HTTP->HTTPS redirects”,“server_name”:“srv0”} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.2903583,“logger”:“tls.cache.maintenance”,“msg”:“started background certificate maintenance”,“cache”:“0xc0002fe540”} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.2908654,“logger”:“tls”,“msg”:“cleaning storage unit”,“description”:“&{caddy_ssl_certificates <nil> false 0 0}”} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.2945075,“msg”:“autosaved config (load with --resume flag)”,“file”:“/var/lib/caddy/.config/caddy/autosave.json”} Aug 02 15:22:22 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917742.2945242,“msg”:“serving initial configuration”} Aug 02 15:22:24 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917744.3835282,“logger”:“http.handlers.reverse_proxy”,“msg”:“aborting with incomplete response”,“error”:“context canceled”} Aug 02 15:22:56 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917776.443357,“logger”:“tls.on_demand”,“msg”:“obtaining new certificate”,“server_name”:“catorce.publicala.me”} Aug 02 15:22:57 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917777.2787774,“logger”:“tls.obtain”,“msg”:“acquiring lock”,“identifier”:“catorce.publicala.me”} Aug 02 15:22:57 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917777.5153117,“logger”:“tls.obtain”,“msg”:“lock acquired”,“identifier”:“catorce.publicala.me”} Aug 02 15:22:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917778.2233639,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:22:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917778.2233992,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:22:59 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917779.7658842,“logger”:“tls.issuance.acme.acme_client”,“msg”:“trying to solve challenge”,“identifier”:“catorce.publicala.me”,“challenge_type”:“http-01”,“ca”:“https://acme.zerossl.com/v2/DV90”} Aug 02 15:23:01 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917781.1090271,“logger”:“tls.issuance.acme.acme_client”,“msg”:“validations succeeded; finalizing order”,“order”:“https://acme.zerossl.com/v2/DV90/order/rrMkwcU6ke5zBbmRSEcfvw”} Aug 02 15:24:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917866.4442153,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme.zerossl.com-v2-DV90”,“error”:“[catorce.publicala.me] finalizing order https://acme.zerossl.com/v2/DV90/order/rrMkwcU6ke5zBbmRSEcfvw: context deadline exceeded (ca=https://acme.zerossl.com/v2/DV90)”} Aug 02 15:24:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“warn”,“ts”:1627917866.5625367,“logger”:“tls.issuance.acme.acme_client”,“msg”:“HTTP request failed; retrying”,“url”:“https://acme-v02.api.letsencrypt.org/directory",“error”:"performing request: Get "https://acme-v02.api.letsencrypt.org/directory\”: context deadline exceeded"} Aug 02 15:24:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917866.562598,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme-v02.api.letsencrypt.org-directory”,“error”:“registering account [] with server: provisioning client: context deadline exceeded”} Aug 02 15:24:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917866.562613,“logger”:“tls.obtain”,“msg”:“will retry”,“error”:“[catorce.publicala.me] Obtain: registering account [] with server: provisioning client: context deadline exceeded”,“attempt”:1,“retrying_in”:60,“elapsed”:89.046767149,“max_duration”:2592000} Aug 02 15:24:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917866.562624,“logger”:“tls.obtain”,“msg”:“releasing lock”,“identifier”:“catorce.publicala.me”} Aug 02 15:24:28 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917868.276673,“logger”:“tls.on_demand”,“msg”:“obtaining new certificate”,“server_name”:“catorce.publicala.me”} Aug 02 15:24:29 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917869.1013489,“logger”:“tls.obtain”,“msg”:“acquiring lock”,“identifier”:“catorce.publicala.me”} Aug 02 15:24:29 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917869.336572,“logger”:“tls.obtain”,“msg”:“lock acquired”,“identifier”:“catorce.publicala.me”} Aug 02 15:24:30 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917870.0429702,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:24:30 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917870.0430124,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:24:31 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917871.270235,“logger”:“tls.issuance.acme.acme_client”,“msg”:“trying to solve challenge”,“identifier”:“catorce.publicala.me”,“challenge_type”:“http-01”,“ca”:“https://acme.zerossl.com/v2/DV90”} Aug 02 15:24:32 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917872.3466265,“logger”:“tls.issuance.acme.acme_client”,“msg”:“validations succeeded; finalizing order”,“order”:“https://acme.zerossl.com/v2/DV90/order/9325Jmzsz9G0-3dzrFRTMg”} Aug 02 15:25:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917958.2774987,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme.zerossl.com-v2-DV90”,“error”:“[catorce.publicala.me] finalizing order https://acme.zerossl.com/v2/DV90/order/9325Jmzsz9G0-3dzrFRTMg: context deadline exceeded (ca=https://acme.zerossl.com/v2/DV90)”} Aug 02 15:25:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“warn”,“ts”:1627917958.4897046,“logger”:“tls.issuance.acme.acme_client”,“msg”:“HTTP request failed; retrying”,“url”:“https://acme-v02.api.letsencrypt.org/directory",“error”:"performing request: Get "https://acme-v02.api.letsencrypt.org/directory\”: context deadline exceeded"} Aug 02 15:25:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917958.4898303,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme-v02.api.letsencrypt.org-directory”,“error”:“registering account [] with server: provisioning client: context deadline exceeded”} Aug 02 15:25:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627917958.4898472,“logger”:“tls.obtain”,“msg”:“will retry”,“error”:“[catorce.publicala.me] Obtain: registering account [] with server: provisioning client: context deadline exceeded”,“attempt”:1,“retrying_in”:60,“elapsed”:89.15324904,“max_duration”:2592000} Aug 02 15:25:58 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627917958.4898577,“logger”:“tls.obtain”,“msg”:“releasing lock”,“identifier”:“catorce.publicala.me”} Aug 02 15:28:38 custom-domains-staging-br-01 systemd[1]: Reloading Caddy. Aug 02 15:28:38 custom-domains-staging-br-01 caddy[327037]: {“level”:“info”,“ts”:1627918118.7171786,“msg”:“using provided configuration”,“config_file”:“/etc/caddy/Caddyfile”,“config_adapter”:“”} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[327037]: 2021/08/02 15:28:38 [WARNING] Unnecessary header_up (‘X-Forwarded-Proto’ field): the reverse proxy’s default behavior is to pass headers to the upstream Aug 02 15:28:38 custom-domains-staging-br-01 caddy[327037]: 2021/08/02 15:28:38 [WARNING] Unnecessary header_up (‘X-Forwarded-Proto’ field): the reverse proxy’s default behavior is to pass headers to the upstream Aug 02 15:28:38 custom-domains-staging-br-01 caddy[327037]: {“level”:“warn”,“ts”:1627918118.7200844,“msg”:“input is not formatted with ‘caddy fmt’”,“adapter”:“caddyfile”,“file”:“/etc/caddy/Caddyfile”,“line”:2} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7220445,“logger”:“admin.api”,“msg”:“received request”,“method”:“POST”,“host”:“localhost:2019”,“uri”:“/load”,“remote_addr”:“127.0.0.1:33140”,“headers”:{“Accept-Encoding”:[“gzip”],“Content-Length”:[“1775”],“Content-Type”:[“application/json”],“Origin”:[“localhost:2019”],“User-Agent”:[“Go-http-client/1.1”]}} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.722826,“logger”:“admin”,“msg”:“admin endpoint started”,“address”:“tcp/localhost:2019”,“enforce_origin”:false,“origins”:[“localhost:2019”,“[::1]:2019”,“127.0.0.1:2019”]} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7231193,“logger”:“tls.cache.maintenance”,“msg”:“started background certificate maintenance”,“cache”:“0xc0001249a0”} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7231383,“logger”:“http”,“msg”:“server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS”,“server_name”:“srv0”,“https_port”:443} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7232556,“logger”:“http”,“msg”:“enabling automatic HTTP->HTTPS redirects”,“server_name”:“srv0”} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7232819,“logger”:“http”,“msg”:“server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server”,“server_name”:“srv1”,“http_port”:80} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7929738,“logger”:“tls.cache.maintenance”,“msg”:“stopped background certificate maintenance”,“cache”:“0xc0002fe540”} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7932832,“msg”:“autosaved config (load with --resume flag)”,“file”:“/var/lib/caddy/.config/caddy/autosave.json”} Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.7933016,“logger”:“admin.api”,“msg”:“load complete”} Aug 02 15:28:38 custom-domains-staging-br-01 systemd[1]: Reloaded Caddy. Aug 02 15:28:38 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918118.8629189,“logger”:“admin”,“msg”:“stopped previous server”,“address”:“tcp/localhost:2019”} Aug 02 15:28:39 custom-domains-staging-br-01 caddy[326595]: 2021/08/02 15:28:39 [ERROR] Deleting expired certificates: context canceled Aug 02 15:28:39 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918119.1675758,“logger”:“tls”,“msg”:“finished cleaning storage units”} Aug 02 15:28:40 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627918120.3807824,“logger”:“http.handlers.reverse_proxy”,“msg”:“aborting with incomplete response”,“error”:“context canceled”} Aug 02 15:28:45 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918125.1546447,“logger”:“tls.on_demand”,“msg”:“obtaining new certificate”,“server_name”:“catorce.publicala.me”} Aug 02 15:28:45 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918125.989216,“logger”:“tls.obtain”,“msg”:“acquiring lock”,“identifier”:“catorce.publicala.me”} Aug 02 15:28:46 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918126.2274082,“logger”:“tls.obtain”,“msg”:“lock acquired”,“identifier”:“catorce.publicala.me”} Aug 02 15:28:46 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918126.9420567,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:28:46 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918126.9421027,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:28:48 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918128.0681744,“logger”:“tls.issuance.acme.acme_client”,“msg”:“trying to solve challenge”,“identifier”:“catorce.publicala.me”,“challenge_type”:“http-01”,“ca”:“https://acme.zerossl.com/v2/DV90”} Aug 02 15:28:48 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918128.9010139,“logger”:“tls.issuance.acme.acme_client”,“msg”:“validations succeeded; finalizing order”,“order”:“https://acme.zerossl.com/v2/DV90/order/KVdNMcg11-Ewufv5Nzdtig”} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627918215.1555398,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme.zerossl.com-v2-DV90”,“error”:“[catorce.publicala.me] finalizing order https://acme.zerossl.com/v2/DV90/order/KVdNMcg11-Ewufv5Nzdtig: context deadline exceeded (ca=https://acme.zerossl.com/v2/DV90)”} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918215.7659411,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme-v02.api.letsencrypt.org/directory",“account”:"fgilio@publica.la”} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918215.7661862,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme-v02.api.letsencrypt.org/directory",“account”:"fgilio@publica.la”} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“warn”,“ts”:1627918215.7662575,“logger”:“tls.issuance.acme.acme_client”,“msg”:“HTTP request failed; retrying”,“url”:“https://acme-v02.api.letsencrypt.org/directory",“error”:"performing request: Get "https://acme-v02.api.letsencrypt.org/directory\”: context deadline exceeded"} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627918215.7662952,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme-v02.api.letsencrypt.org-directory”,“error”:“[catorce.publicala.me] creating new order: provisioning client: context deadline exceeded (ca=https://acme-v02.api.letsencrypt.org/directory)”} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627918215.7663093,“logger”:“tls.obtain”,“msg”:“will retry”,“error”:“[catorce.publicala.me] Obtain: [catorce.publicala.me] creating new order: provisioning client: context deadline exceeded (ca=https://acme-v02.api.letsencrypt.org/directory)”,“attempt”:1,“retrying_in”:60,“elapsed”:89.538869619,“max_duration”:2592000} Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918215.7663207,“logger”:“tls.obtain”,“msg”:“releasing lock”,“identifier”:“catorce.publicala.me”}
UPDATE: We started to be able to generate certificates while I was writing this issue. All the new certificates are being generated with Let’s Encrypt after ZeroSSL fails.
We’re not sure if this is indeed an error on ZeroSSL or if something else was also happening with Let’s Encrypt, as this log suggests Aug 02 15:30:15 custom-domains-staging-br-01 caddy[326595]: {"level":"error","ts":1627918215.7663093,"logger":"tls.obtain","msg":"will retry","error":"[catorce.publicala.me] Obtain: [catorce.publicala.me] creating new order: provisioning client: context deadline exceeded (ca=https://acme-v02.api.letsencrypt.org/directory)","attempt":1,"retrying_in":60,"elapsed":89.538869619,"max_duration":2592000}.
Full log after error solved "itself"
Aug 02 15:36:24 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918584.6788352,“logger”:“tls.on_demand”,“msg”:“obtaining new certificate”,“server_name”:“catorce.publicala.me”} Aug 02 15:36:25 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918585.4860163,“logger”:“tls.obtain”,“msg”:“acquiring lock”,“identifier”:“catorce.publicala.me”} Aug 02 15:36:25 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918585.7181144,“logger”:“tls.obtain”,“msg”:“lock acquired”,“identifier”:“catorce.publicala.me”} Aug 02 15:36:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918586.4122481,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:36:26 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918586.4122853,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme.zerossl.com/v2/DV90",“account”:"fgilio@publica.la”} Aug 02 15:36:27 custom-domains-staging-br-01 caddy[326595]: {“level”:“error”,“ts”:1627918587.2315016,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“catorce.publicala.me”,“issuer”:“acme.zerossl.com-v2-DV90”,“error”:“[catorce.publicala.me] creating new order: fetching new nonce from server: HTTP 504: (ca=https://acme.zerossl.com/v2/DV90)”} Aug 02 15:36:27 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918587.4627676,“logger”:“tls.issuance.acme”,“msg”:“waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme-v02.api.letsencrypt.org/directory",“account”:"fgilio@publica.la”} Aug 02 15:36:27 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918587.4628348,“logger”:“tls.issuance.acme”,“msg”:“done waiting on internal rate limiter”,“identifiers”:[“catorce.publicala.me”],“ca”:“https://acme-v02.api.letsencrypt.org/directory",“account”:"fgilio@publica.la”} Aug 02 15:36:28 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918588.7454534,“logger”:“tls.issuance.acme.acme_client”,“msg”:“trying to solve challenge”,“identifier”:“catorce.publicala.me”,“challenge_type”:“http-01”,“ca”:“https://acme-v02.api.letsencrypt.org/directory”} Aug 02 15:36:32 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918592.7008424,“logger”:“tls.issuance.acme.acme_client”,“msg”:“validations succeeded; finalizing order”,“order”:“https://acme-v02.api.letsencrypt.org/acme/order/113805931/14027200930”} Aug 02 15:36:33 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918593.4735258,“logger”:“tls.issuance.acme.acme_client”,“msg”:“successfully downloaded available certificate chains”,“count”:2,“first_url”:“https://acme-v02.api.letsencrypt.org/acme/cert/03e24093caca1e12dae2699a7ccc5578a9d7”} Aug 02 15:36:33 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918593.8252475,“logger”:“tls.obtain”,“msg”:“certificate obtained successfully”,“identifier”:“catorce.publicala.me”} Aug 02 15:36:33 custom-domains-staging-br-01 caddy[326595]: {“level”:“info”,“ts”:1627918593.8252823,“logger”:“tls.obtain”,“msg”:“releasing lock”,“identifier”:“catorce.publicala.me”}
EDIT
We’re getting a similar error again, these logs are from our production environment:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (9 by maintainers)
Not looking to revive this, just confirming that this is also happening for me when I had a bulk import of a few thousand domains over a couple of days.
I think ZeroSSL just has some performance issues (maybe only from time to time, unsure as of yet).
Nothing I can think of. Thanks for reporting it to them. I’m not sure we can really do anything/much about it… open to ideas though.
100% agree. Also the issue here is the huge amplitud of issuance time.
*I’ve already contacted ZeroSSL support, let’s see what they have to say 🤞
EDIT: I’m still waiting for their reply, hope it arrives soon EDIT 2: They are now actively looking into this issue 🙌 🤞
Thanks for the extra info Matt. We stand available in case there’s something we can do to gather more info.
Hi guys! This is happening again and now we have the logs 💪 We’re running
v2.4.2 h1:chB106RlsIaY4mVEyq9OQM5g/9lHYVputo/LAX2ndFg=, and this is our Caddy config:And these are the logs with the debug level enabled:
I hope this helps, please let me know if you need more information.
Hi @francislavoie! No updates, this has not happened again. We’ll reopen and update in case it does happen again, and we’ll use the debug flag straight away.
Hi @mholt!
Never did it. According to the docs it’s just a matter of adding
debugto the caddyfile at the same level as theon_demand_tlsorstoragedirectives. I’m going to try this and let you know.UPDATE: I tested the
debugflag and can now see a ton more info. But the issue is no longer happening right now, I’ll keep this in mind for the next time something weird happens with our Caddy instances. I’m leaving the issue open in case the questions below can point us in any direction.Yes, it’s very strange.
What do you mean by “operations”? If it’s only certificates generation, then it’s usually about 1 to 4 per hour.
Good question, I’d love to give you a solid answer but I’ve no idea. These servers are 100% dedicated to Caddy, nothing else is running on them. And both servers usually stay below 10% CPU usage.