Custom domain troubleshooting
Start with the state of the domain. leaf domains show <domain> names the check that fails, and the dashboard shows the same reason. See Status and checks for what each state means.
Visitors see error 525 from Cloudflare
Section titled “Visitors see error 525 from Cloudflare”Symptom: the domain opens with a Cloudflare page, “Error 525” or “SSL handshake failed”.
Cause: the record is proxied, which is the orange cloud on Cloudflare. Cloudflare then connects to LeafCloud before the certificate exists, and the handshake fails.
Fix: on Cloudflare, switch every record for the domain to DNS only (the grey cloud). This includes the record for the domain itself, the www record, and the _acme-challenge record. Then wait for the domain to show Live. DNS providers: Cloudflare has the steps.
The _acme-challenge record is missing
Section titled “The _acme-challenge record is missing”Symptom: the acme check fails with “The record was not found”. The domain stays on Waiting for DNS, or moves to Certificate failed.
Cause: LeafCloud proves that you control the domain for the certificate by reading a _acme-challenge CNAME. Without it, no certificate can be issued or renewed.
Fix: add the CNAME with the name and value that leaf domains show lists. A bare domain and its www form each need their own _acme-challenge record. Keep it in place after the domain is live.
A wildcard catches a name you already use
Section titled “A wildcard catches a name you already use”Symptom: after you add a project-addresses domain, a name with no record of its own stops going to your old server. For example, mail.example.app stops reaching your mail host.
Cause: the * record covers every name that has no record of its own. It does not change names that have one.
Fix: add an explicit record for each name that must keep working, pointing where it pointed before. An explicit record always wins over the wildcard, so the other names keep working.
If your provider already has a * record pointing somewhere else, you can have only one wildcard. Add explicit records for the names that used it first, and then replace the wildcard with the value LeafCloud shows.
Records changed after the domain went live
Section titled “Records changed after the domain went live”Symptom: the domain shows DNS changed. Your projects keep serving.
Cause: a record that was right has been changed or removed, so it no longer points to LeafCloud. Check your DNS provider for edits, and for a proxy setting that was switched on.
Fix: put back the record that the warning shows. It clears on its own at the next check, or after Re-check DNS.
The name servers changed
Section titled “The name servers changed”Symptom: the records look right at your DNS provider, but the check says they are missing or wrong.
Cause: the domain’s name servers point to a different DNS provider from the one where you added the records. LeafCloud asks the domain’s parent zone which name servers it should use, so a stale name server in a cache does not hide the change.
Fix: at your registrar, check that the domain’s name servers are the ones of the provider where you added the records. Then choose Re-check DNS. If you are moving a domain between providers, change the name servers and add the records at the new provider first, then wait for the domain to show Live before you remove the old records.
Your provider cannot point the bare domain at LeafCloud
Section titled “Your provider cannot point the bare domain at LeafCloud”Symptom: the provider does not allow a CNAME on the bare domain (example.com), or it accepts the record but the bare domain does not work.
Cause: DNS does not allow a CNAME at the top of a domain. Some providers offer a flattening option (ALIAS, ANAME or CNAME flattening). Others do not.
Fix: use one of these:
- Move the domain’s name servers to Cloudflare. The free plan is enough, and your registrar still holds the domain. Add the records there, DNS only.
- Use
wwwonly. Addwww.example.comas the domain, and turn on your registrar’s forwarding fromexample.comtowww.example.com.
The DNS providers pages say which providers have a flattening option.
CAA records block the certificate
Section titled “CAA records block the certificate”Symptom: the domain shows Certificate failed, and the reason says the certificate could not be issued.
Cause: the domain has a CAA record, which lists the certificate authorities allowed to issue for it, and Let’s Encrypt is not on the list.
Fix: at your DNS provider, add a CAA record that allows letsencrypt.org, or remove the CAA records you do not need. Then choose Re-check DNS. LeafCloud’s certificates come from Let’s Encrypt.
The hostname is already used by another account
Section titled “The hostname is already used by another account”Symptom: adding the domain fails with “Another LeafCloud account already uses this domain”.
Cause: an active custom domain on another account already has that name. A name can be active on only one account.
Fix: the other account must remove the domain first. If you own the domain and the other account is not yours, send a request from Settings → Help & feedback in the dashboard. If the message says “This account already has that domain”, the domain is already on your account. Open it instead of adding it again.
A limit is reached
Section titled “A limit is reached”Symptom: adding a domain is refused, with a message that your plan allows a number of domains and that you must remove one first.
Fix: remove a domain you no longer need, then add the new one. To raise the limit, send a request from Settings → Help & feedback in the dashboard. The numbers are in Limits.
A label is already taken
Section titled “A label is already taken”Symptom: a project address is refused with “Another of your projects already uses that label”, or “Another project on this domain already uses that label”.
Fix: choose another label. Labels are unique on each domain:
leaf domains projects example.app --label gallery=photosRe-check DNS says it checked a moment ago
Section titled “Re-check DNS says it checked a moment ago”Symptom: the API answers 429 rate_limited, or the message says “DNS was checked a moment ago”.
Cause: each domain can be checked once every 10 seconds.
Fix: wait a few seconds and check again. The CLI waits for you, and the MCP tools wait too.
A project address returns 404 after you switch it off
Section titled “A project address returns 404 after you switch it off”This is expected. The project’s address on that domain is off. Its <project>.leafcloud.app address keeps working. Switch the address back on to publish the project again.
The domain is live, but the page is missing
Section titled “The domain is live, but the page is missing”Check the project’s deploy history and the path:
leaf deploys --site portfolioCustom domains serve the files of the project’s current deploy. A missing page means the file is not in the deploy. See Troubleshooting for deploy problems.