Dokploy / Dokploy/dokploy

acme.json file is not cleaned up

Open
#4,894 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage🔍
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

To Reproduce
  1. Create a new project with a valid domain.
  2. Make sure the HTTPS certificate was generated for that domain.
  3. Delete the project.
  4. Go check the acme.json file, and it will still show the old domain from the deleted project.
  5. Additionally, in 90 days, you'll start to see certificate errors because the domain cannot be verified.

The same thing happens for preview deployments. It appears that as preview deployments are added to the certificate's JSON file, they're not ever cleaned up when previews are removed.

Current vs. Expected behavior

The current behavior causes the Traefik logs to be bloated with additional errors for domains that are no longer being used. Also, this behavior crowds the acme.json file and adds additional bloat to the certificate renewal process.

Provide environment information
OS: Debian 13 (13.6)
Dokploy: v0.29.8 (but recently upgraded to v0.29.13)
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the project deletion and preview-removal paths that update Traefik's acme.json state. Reproduce the issue with a generated certificate, then inspect how removed domains are handled. Done means deleted project and preview domains no longer remain in acme.json and renewal errors are no longer produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.