-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Description
When creating a new domain in Dokploy before DNS propagation is complete, Let's Encrypt fails with NXDOMAIN error. After DNS propagates correctly, Traefik does not automatically retry certificate generation and continues serving the default Traefik certificate until manually restarted.
Steps to Reproduce
- Create a new application in Dokploy
- Add a custom domain with
certificateType: letsencrypt - DNS record exists but hasn't fully propagated yet (or was just created)
- Traefik attempts ACME challenge immediately
- Let's Encrypt returns
NXDOMAINerror - Wait for DNS to propagate (can verify with
nslookupordig) - Access the domain - still shows "TRAEFIK DEFAULT CERT" instead of Let's Encrypt certificate
Expected Behavior
Traefik should periodically retry failed ACME certificate requests, especially for DNS-related failures that are likely temporary.
Actual Behavior
Traefik fails once and doesn't retry. The domain continues using the default Traefik certificate indefinitely until:
- Traefik is manually restarted (
docker restart dokploy-traefik) - Or the domain is removed and re-added
Traefik Logs
2026-02-25T21:20:06Z ERR Unable to obtain ACME certificate for domains
error="unable to generate a certificate for the domains [api-dev.example.com]:
error: one or more domains had a problem:
[api-dev.example.com] invalid authorization: acme: error: 400 ::
urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for
api-dev.example.com - check that a DNS record exists for this domain"
ACME CA=https://acme-v02.api.letsencrypt.org/directory
domains=["api-dev.example.com"]
providerName=letsencrypt.acme
Workaround
Restart Traefik after DNS has propagated:
docker restart dokploy-traefikSuggested Improvement
Consider implementing one of these solutions:
- Add a retry mechanism with exponential backoff for failed ACME requests
- Add a "Retry Certificate" button in the Dokploy UI for domains
- Document this behavior and recommend pointing DNS before adding domains
Environment
- Dokploy version: 0.27.0
- Traefik: Default Dokploy configuration
- Certificate type: Let's Encrypt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels