Skip to content

Traefik/Dokploy doesn't clear old SSLs resulting in error in logs #3443

@MMOStars

Description

@MMOStars

To Reproduce

Getting errors in Traefik logs like:

2026-01-10T12:58:02Z ERR Error renewing certificate from LE: {x.x.com []} error="error: one or more domains had a problem:\n[x.x.com] invalid authorization: acme: error: 400 :: urn:ietf:params:acme:error:dns :: no valid A records found for x.x.com; no valid AAAA records found for x.x.com\n" acmeCA=https://acme-v02.api.letsencrypt.org/directory providerName=letsencrypt.acme

I have a supabase app and updated it's subdomain via GUI to a new subdomain that results in this error.

Image When I check traefik file system acme.json I see the certificate present in it for the old subdomain, but the subdomain has long time been changed/updated to a new one.

Current vs. Expected behavior

Removed or unlink old certificate if it's no longer used for the domain/subdomain?

Provide environment information

Ubuntu 25.10

Which area(s) are affected? (Select all that apply)

Traefik

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions