CaddyBuilds / caddy-cloudflare

Caddy Docker image with Cloudflare DNS module
MIT License
10 stars 3 forks source link

error zone cloudflare #9

Open devzucca opened 2 weeks ago

devzucca commented 2 weeks ago

Hi, thank you for this, but I'm suffering, I found this repo after I tried manually, to do all the configuration with cloudflare, and manually I get an error:

ERR ts=1728803431.1833239 logger=tls.issuance.acme.acme_client msg=cleaning up solver identifier=git.neve-00.dazmin.com challenge_type=dns-01 error=no memory of presenting a DNS record for "_acme-challenge.git.neve-00.dazmin.com" (usually OK if presenting also failed)

ERR ts=1728803431.3459046 logger=tls.obtain msg=could not get certificate from issuer identifier=git.neve-00.dazmin.com issuer=acme-v02.api.letsencrypt.org-directory error=[git.neve-00.dazmin.com] solving challenges: presenting for challenge: adding temporary record for zone "neve-00.dazmin.com.": expected 1 zone, got 0 for neve-00.dazmin.com. (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/166951613/19734538113) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)

ERR ts=1728803431.346008 logger=tls.obtain msg=will retry error=[git.neve-00.dazmin.com] Obtain: [git.neve-00.dazmin.com] solving challenges: presenting for challenge: adding temporary record for zone "neve-00.dazmin.com.": expected 1 zone, got 0 for neve-00.dazmin.com. (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/166951613/19734538113) (ca=https://acme-staging-v02.api.letsencrypt.org/directory) attempt=4 retrying_in=300 elapsed=304.964014824 max_duration=2592000

which happens to be the same error that I get with this image, but it takes less time to configure, thank you for this and your time, I follow the cloudflare steps for zone permissions in the api, but I keep encountering the same error, please if you can help me I would be grateful.

vkartk commented 1 week ago

@devzucca Could you please share your Docker Compose file and Caddyfile configuration? It would help me better understand the issue and assist with troubleshooting.

If you haven't yet, please regenerate a new Cloudflare API token by following the instructions in the README.