Site shows Down
The health ring is red, or the site page shows Resource missing, Site error or Migration did not finish.
Symptom
The health ring of the site is red, on its tile and on its page.
Down
The site page can show one of these instead, or next to the red ring. Each has its own cause.
Resource missing
Site error <status>
Migration did not finish
Cause
Fleet reads the site every 5 minutes and sets the ring from the answers. See How Fleet checks a site's health.
- Down. Three polls in a row, 15 minutes, got no answer from the site, no answer within 10 seconds, or a server error other than the 503 that EmDash sends while it migrates. A site behind on EmDash releases is never Down: it shows Update available. See Update EmDash on one or many sites.
- Site error. The site answered with a server error, and the status in the message is its code. One such answer shows Needs attention; three in a row show Down.
- Migration did not finish. The site answered 503 with a request to retry in 60 seconds, which EmDash sends while it runs its migrations, for 60 minutes.
- Resource missing. A Worker, database, bucket or namespace that Fleet recorded for the site answered 404 to a deploy, rollback, restore or poll, or to the hourly or weekly existence check. The page lists the missing resources. This happens when someone deletes a resource in Cloudflare.
An answer from a Cloudflare Access login, a challenge or a firewall rule shows Health check blocked and never counts toward Down. See Allow health checks behind Access or a WAF.
Fix
You need the Developer role or above for the steps that change the site.
- Open the site in a browser, at its workers.dev address and at its custom domain. If only the custom domain fails, check its DNS records, certificate and WAF rules in Cloudflare.
- Read the log of the last job on the site page, and the request logs of the site's Worker in the Cloudflare dashboard (see Site statuses and health). If the last deploy failed, see Deploy failed.
- If the site broke after a deploy, roll back to the previous version. See Roll back a site. If migrations ran since that version, the rollback offers a database restore.
- For Resource missing, select Recreate on the site page to provision the missing resources again, or Unlink to remove the site from Fleet only.
Recreate asks you to sign in again when your last sign-in is older than 30 minutes. Check the site's content afterwards. The ring leaves Down on the first poll after the cause is gone.
Prevent
Do not delete a Worker, database, bucket or namespace of a site in Cloudflare. Fleet checks them every hour and every week, and a missing one stops deploys of the site. Fleet sends no email when health changes, so check the ring yourself.