I apologize for the length of the message. Yous can find bellow the logs generated by caddy. In the openedx documentation (Requirements — Tutor documentation) they ask to configure the following DNS records:
learn 1800 IN A 1.1.1.1
*.learn 1800 IN CNAME learn.mydomain.com.
But the log generated by caddy tells that there isn't DNS records for each the bellow sub domains, il looks like a contardiction ?
NXDOMAIN looking up A for studio.openedx.univ-bejaia.dz
NXDOMAIN looking up A for apps.openedx.univ-bejaia.dz
NXDOMAIN looking up A for meilisearch.openedx.univ-bejaia.dz
The logs generated by caddy:
caddy-1 | {"level":"error","ts":1778640507.8918252,"logger":"tls.obtain","msg":"will retry","error":"[openedx.univ-bejaia.dz] Obtain: account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)","attempt":11,"retrying_in":10800,"elapsed":10883.181810648,"max_duration":2592000}
caddy-1 | {"level":"info","ts":1778651287.714723,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"apps.openedx.univ-bejaia.dz"}
caddy-1 | {"level":"info","ts":1778651288.3726501,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"studio.openedx.univ-bejaia.dz"}
caddy-1 | {"level":"info","ts":1778651288.6574647,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"meilisearch.openedx.univ-bejaia.dz"}
caddy-1 | {"level":"info","ts":1778651288.8288674,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"apps.openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"info","ts":1778651289.0077379,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"studio.openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"info","ts":1778651289.2879806,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"meilisearch.openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"error","ts":1778651290.1371324,"logger":"http.acme_client","msg":"challenge failed","identifier":"studio.openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651290.1372104,"logger":"http.acme_client","msg":"validating authorization","identifier":"studio.openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868872303","attempt":1,"max_attempts":3}
caddy-1 | {"level":"error","ts":1778651290.41684,"logger":"http.acme_client","msg":"challenge failed","identifier":"meilisearch.openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651290.4168806,"logger":"http.acme_client","msg":"validating authorization","identifier":"meilisearch.openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868872683","attempt":1,"max_attempts":3}
caddy-1 | {"level":"error","ts":1778651290.8761277,"logger":"http.acme_client","msg":"challenge failed","identifier":"apps.openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651290.8761756,"logger":"http.acme_client","msg":"validating authorization","identifier":"apps.openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868872033","attempt":1,"max_attempts":3}
caddy-1 | {"level":"info","ts":1778651291.5609913,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"studio.openedx.univ-bejaia.dz","challenge_type":"http-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"info","ts":1778651291.8408573,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"meilisearch.openedx.univ-bejaia.dz","challenge_type":"http-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"info","ts":1778651292.298875,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"apps.openedx.univ-bejaia.dz","challenge_type":"http-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"error","ts":1778651292.6899235,"logger":"http.acme_client","msg":"challenge failed","identifier":"studio.openedx.univ-bejaia.dz","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651292.6899676,"logger":"http.acme_client","msg":"validating authorization","identifier":"studio.openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868875543","attempt":2,"max_attempts":3}
caddy-1 | {"level":"error","ts":1778651292.689999,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"studio.openedx.univ-bejaia.dz","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for studio.openedx.univ-bejaia.dz - check that a DNS record exists for this domain"}
caddy-1 | {"level":"warn","ts":1778651292.6900811,"logger":"http","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}
caddy-1 | {"level":"error","ts":1778651292.96985,"logger":"http.acme_client","msg":"challenge failed","identifier":"apps.openedx.univ-bejaia.dz","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651292.96989,"logger":"http.acme_client","msg":"validating authorization","identifier":"apps.openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868876193","attempt":2,"max_attempts":3}
caddy-1 | {"level":"error","ts":1778651292.9699042,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"apps.openedx.univ-bejaia.dz","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for apps.openedx.univ-bejaia.dz - check that a DNS record exists for this domain"}
caddy-1 | {"level":"error","ts":1778651293.3146174,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"studio.openedx.univ-bejaia.dz","issuer":"acme.zerossl.com-v2-DV90","error":"account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)"}
caddy-1 | {"level":"error","ts":1778651293.3146498,"logger":"tls.obtain","msg":"will retry","error":"[studio.openedx.univ-bejaia.dz] Obtain: account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)","attempt":12,"retrying_in":21600,"elapsed":21668.601484919,"max_duration":2592000}
caddy-1 | {"level":"warn","ts":1778651293.3147295,"logger":"http","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}
caddy-1 | {"level":"error","ts":1778651293.4280741,"logger":"http.acme_client","msg":"challenge failed","identifier":"meilisearch.openedx.univ-bejaia.dz","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651293.4281154,"logger":"http.acme_client","msg":"validating authorization","identifier":"meilisearch.openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868875833","attempt":2,"max_attempts":3}
caddy-1 | {"level":"error","ts":1778651293.4281337,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"meilisearch.openedx.univ-bejaia.dz","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:dns - DNS problem: NXDOMAIN looking up A for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for meilisearch.openedx.univ-bejaia.dz - check that a DNS record exists for this domain"}
caddy-1 | {"level":"error","ts":1778651293.483627,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"apps.openedx.univ-bejaia.dz","issuer":"acme.zerossl.com-v2-DV90","error":"account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)"}
caddy-1 | {"level":"error","ts":1778651293.4836543,"logger":"tls.obtain","msg":"will retry","error":"[apps.openedx.univ-bejaia.dz] Obtain: account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)","attempt":12,"retrying_in":21600,"elapsed":21668.768647286,"max_duration":2592000}
caddy-1 | {"level":"warn","ts":1778651293.483722,"logger":"http","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}
caddy-1 | {"level":"error","ts":1778651293.658858,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"meilisearch.openedx.univ-bejaia.dz","issuer":"acme.zerossl.com-v2-DV90","error":"account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)"}
caddy-1 | {"level":"error","ts":1778651293.6588902,"logger":"tls.obtain","msg":"will retry","error":"[meilisearch.openedx.univ-bejaia.dz] Obtain: account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)","attempt":12,"retrying_in":21600,"elapsed":21668.945084775,"max_duration":2592000}
caddy-1 | {"level":"info","ts":1778651307.8937814,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"openedx.univ-bejaia.dz"}
caddy-1 | {"level":"info","ts":1778651308.6002471,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"error","ts":1778651310.7655184,"logger":"http.acme_client","msg":"challenge failed","identifier":"openedx.univ-bejaia.dz","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:unauthorized","title":"","detail":"Cannot negotiate ALPN protocol "acme-tls/1" for tls-alpn-01 challenge","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651310.7655838,"logger":"http.acme_client","msg":"validating authorization","identifier":"openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:unauthorized","title":"","detail":"Cannot negotiate ALPN protocol "acme-tls/1" for tls-alpn-01 challenge","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868893163","attempt":1,"max_attempts":3}
caddy-1 | {"level":"info","ts":1778651312.1890745,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"openedx.univ-bejaia.dz","challenge_type":"http-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
caddy-1 | {"level":"error","ts":1778651315.8902805,"logger":"http.acme_client","msg":"challenge failed","identifier":"openedx.univ-bejaia.dz","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:connection","title":"","detail":"41.111.207.110: Fetching https://openedx.univ-bejaia.dz:443/.well-known/acme-challenge/OMs3TWzzPI8-6oNBQbleUT6BxAERWCtR6IcbDPEf6Do: Error getting validation data","instance":"","subproblems":}}
caddy-1 | {"level":"error","ts":1778651315.8903267,"logger":"http.acme_client","msg":"validating authorization","identifier":"openedx.univ-bejaia.dz","problem":{"type":"urn:ietf:params:acme:error:connection","title":"","detail":"41.111.207.110: Fetching https://openedx.univ-bejaia.dz:443/.well-known/acme-challenge/OMs3TWzzPI8-6oNBQbleUT6BxAERWCtR6IcbDPEf6Do: Error getting validation data","instance":"","subproblems":},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/291669473/37868898033","attempt":2,"max_attempts":3}
caddy-1 | {"level":"error","ts":1778651315.8903453,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"openedx.univ-bejaia.dz","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:connection - 41.111.207.110: Fetching https://openedx.univ-bejaia.dz:443/.well-known/acme-challenge/OMs3TWzzPI8-6oNBQbleUT6BxAERWCtR6IcbDPEf6Do: Error getting validation data"}
caddy-1 | {"level":"warn","ts":1778651315.890449,"logger":"http","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}
caddy-1 | {"level":"error","ts":1778651316.059699,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"openedx.univ-bejaia.dz","issuer":"acme.zerossl.com-v2-DV90","error":"account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)"}
caddy-1 | {"level":"error","ts":1778651316.0597308,"logger":"tls.obtain","msg":"will retry","error":"[openedx.univ-bejaia.dz] Obtain: account pre-registration callback: failed getting EAB credentials: HTTP 422: caddy_legacy_user_removed (code 2977)","attempt":12,"retrying_in":21600,"elapsed":21691.349716117,"max_duration":2592000}