launchroom
Troubleshooting

DNS and TLS problems

Read the DNS check, fix records that point elsewhere, and get certificates issued, including proxied DNS, wildcards and several edge servers.

A domain goes live in two steps: DNS has to point at your servers, then the server that receives the traffic gets a certificate from Let's Encrypt. launchroom checks both and shows the result on the domain's card in the service's settings under Domains. This page explains each state and what to do when one doesn't turn green.

Domains settings for web: blog.acme.test waiting for DNS with the A records to add and a Check now button, HTTPS issued on first visit, served by two servers, plus HSTS and redirect toggles.Domains settings for web: blog.acme.test waiting for DNS with the A records to add and a Check now button, HTTPS issued on first visit, served by two servers, plus HSTS and redirect toggles.
Add a domain, copy the records, and launchroom checks DNS and issues the certificate by itself.

Reading the DNS check

launchroom asks public resolvers (Cloudflare's 1.1.1.1 and Google's 8.8.8.8) for the domain's A and AAAA records and compares the answer with the public addresses of your servers that serve traffic (the edge servers). While the domain's card is open, it checks every 20 seconds. In the background, domains that aren't verified yet are checked every 5 minutes. Check now runs the check at once.

What the card saysMeaning
DNS verified / Points at your serversEvery A and AAAA record points at one of your edge servers.
No DNS record yetThe resolvers found no A or AAAA record for the name.
DNS points elsewhereAt least one record points at an address that isn't one of your edge servers, and the HTTP check didn't reach your server.
Reached through a proxy / Behind a proxy, not confirmedThe records point at a proxy such as Cloudflare. See Behind a proxy.
Can't compare yetThe name resolves, but no edge server has a known public address to compare it with.
DNS check failed / Check didn't answerNo resolver answered. Usually temporary.

The DNS record shows the wrong address

The record to create shows your server's public IP as your server sees it. launchroomd asks IP echo services (api.ipify.org, icanhazip.com, ifconfig.me) at start and every 6 hours. Private, CGNAT and Docker addresses such as 172.18.0.1 are never shown. While no public address is known, the step says so instead of showing a record.

  • The server's outgoing address differs from the one visitors reach (a NAT gateway, a floating IP): set LR_PUBLIC_IPS=<ipv4> (optionally ,<ipv6>) in the install folder's .env, then run docker compose up -d in that folder. launchroomd then reports these addresses and contacts no echo service.
  • To keep launchroomd from contacting echo services at all, set LR_PUBLIC_IP_DETECT=off the same way, together with LR_PUBLIC_IPS.

The DNS check is for information only and never changes routing. A domain whose records are right works even while the card still waits for the next check.

No DNS record yet

Cause. The record doesn't exist yet, was added to the wrong zone, or hasn't propagated. New records usually show up within minutes. Some providers take up to an hour. A cached "doesn't exist" answer from before you added the record can also linger for the zone's negative caching time.

Fix. Add the records the card shows under Point your DNS here: with a platform domain, a CNAME to the service's generated hostname for a subdomain; otherwise an A record (and an AAAA record, if your edge has IPv6) per edge server. Check the record from your own machine:

dig +short A shop.example.com @1.1.1.1
dig +short AAAA shop.example.com @1.1.1.1

A common mistake is entering the full name in a provider's form that appends the zone, which creates shop.example.com.example.com.

DNS points elsewhere

The card's message names the addresses: "shop.example.com points at 203.0.113.9, not at your server (198.51.100.4)." or "shop.example.com also points at 203.0.113.9, which is not one of your servers. Remove that record."

Cause. One of these:

  • An old A record from a previous host is still there next to the new one. Visitors then land on either server at random.
  • An AAAA record still points at an old IPv6 address. Browsers prefer IPv6, so this one breaks the site for many visitors even when the A record is right.
  • The record goes through a proxy or CDN. See Behind a proxy.
  • You moved the edge role to another server and the records still point at the old one.

Fix. Make the records match the addresses on the card. Remove the extra records, including AAAA records you didn't mean to keep.

Behind a proxy

When a DNS record is proxied (Cloudflare's orange cloud), public resolvers return the proxy's addresses instead of your server's. launchroom then checks over HTTP whether requests still arrive at your server: it fetches http://<name>/.well-known/launchroom/check/<random token> through public DNS, and your edge server answers with the token signed by its own key. A new token is used for every check, and the request only goes to public addresses.

What the check saysMeaning
Reached through a proxy (Cloudflare)The records point at Cloudflare and the signed answer came from one of your servers.
Reaches your serverThe records point at another address (an unknown proxy, a NAT port forward) and the signed answer came from one of your servers.
Behind a proxy, not confirmedThe records point at Cloudflare, but no signed answer came back. The message says why, for example "the proxy could not reach your server (HTTP 522)".

Behind a proxy, not confirmed. Check these:

  • Inbound TCP 80 and 443 are open on the edge server.
  • A proxy rule doesn't answer the request itself, and doesn't redirect it anywhere except to the same address over HTTPS.
  • The edge server runs a current launchroom version. Older versions answer the check with HTTP 404.

TLS behind Cloudflare.

  • Set SSL/TLS to Full (strict). Flexible sends plain HTTP to your server, which redirects to HTTPS, and the browser loops.
  • Your server gets its certificates from Let's Encrypt over HTTP (HTTP-01), which passes through the proxy. If a rule forces HTTPS for every request, set the record to DNS only until the certificate is issued, or add a Cloudflare API token under Settings → Network so launchroom uses DNS validation (DNS-01), which doesn't depend on the proxy.
  • Generated domains sit two levels below your platform domain (web-production.shop.apps.example.com). Cloudflare's free edge certificate covers one level of subdomains only, so visitors get a certificate error from Cloudflare. Keep the platform wildcard DNS only, or use a Cloudflare certificate that covers these names.
  • Visitor addresses in your app and logs are Cloudflare's unless your app reads the CF-Connecting-IP header.

Custom domains (one level, such as shop.example.com) and the dashboard domain work behind the proxy with Full (strict).

Certificate couldn't be issued

The domain card shows the last error under Last try. Until a domain is first visited, custom domains say Issued on the first visit: launchroom requests the certificate when the first HTTPS request for the name arrives, so open the domain once after DNS points at your servers.

launchroom reads the certificate authority's answer and says which problem it was, with what to do:

The card saysWhat to do
Let's Encrypt limits new certificates for the name until a given timeNothing. launchroom tries again then. Retry now stays hidden until the limit ends
The name points to an address that isn't one of your serversPoint its A and AAAA records at the addresses the card lists
A CAA record doesn't allow Let's EncryptAdd 0 issue "letsencrypt.org" to the CAA record, or remove it
Let's Encrypt couldn't reach your server on port 80 or 443Open the ports in the server's firewall and your hosting provider's
The DNS provider refused the challenge recordCheck the DNS provider's API token

After fixing the cause, click Retry now on the domain to try again without waiting. When a certificate still fails 30 minutes after the domain's DNS is correct, or the certificate authority's limit is reached, the A certificate can't be issued alert fires.

Common causes:

CauseWhat to check
Port 80 or 443 is blockedLet's Encrypt validates by connecting to your edge server on port 80 or 443. A hosting provider's firewall, a security group, ufw or a router without port forwarding blocks it. Allow inbound TCP 80 and 443 on every edge server.
DNS isn't right yetLet's Encrypt resolves the name itself. If it lands on another server, validation fails. Fix the DNS check first.
A CAA record forbids Let's EncryptIf the domain has CAA records, one of them must allow letsencrypt.org. Check with dig +short CAA example.com.
Rate limitsLet's Encrypt limits how many certificates one registered domain gets per week and how often validation may fail for a name. Many failed attempts in a row lock a name out for a while. Fix the cause and wait. A wildcard certificate (below) avoids per-name limits for generated domains.

Addresses on sslip.io (the automatic address before you set a platform domain) share Let's Encrypt's limits with everyone else using that service. Set your own platform domain for anything beyond a first test. See Domains and TLS.

The edge server can't listen on port 80 or 443

A server that serves traffic needs ports 80 and 443. When another program holds one, the server page says "The web server can't listen on port 80 because nginx is using it." launchroom names the program but never stops it.

Fix. Stop that program on the machine, for example sudo systemctl disable --now nginx. launchroom tries again by itself, and the routes come back without a deploy. The A server stops serving your domains alert fires after 2 minutes.

When the web server refuses a new configuration, it keeps serving the previous routes, and the server page shows its last lines.

Renewal overdue

Certificates renew automatically when a third of their lifetime is left. Renewal overdue means renewal has been failing. The causes are the same as for a first issuance: something now blocks ports 80/443, the DNS moved, or a CAA record was added. The certificate keeps working until it expires, so fix it before then.

Wildcard certificates need DNS credentials

Without a DNS provider, every generated domain, preview and per-deployment URL gets its own certificate, requested on first use. That works, but each new name waits a few seconds on its first visit and counts against rate limits.

With a DNS provider set, launchroom proves ownership through a DNS record (DNS-01) and uses one wildcard certificate per project for everything under your platform domain. Set it up under Settings → Network → Certificates (instance owners): choose your DNS provider (Cloudflare, Hetzner, Amazon Route 53, DigitalOcean, Porkbun, deSEC, Gandi, OVHcloud or netcup) and paste credentials that can edit DNS records of the zone.

If the Wildcard certificates row says:

  • Needs a platform domain first: set one. Wildcards only cover the platform domain.
  • Not available with the current edge image: your edge servers run a Caddy image without the DNS modules. Wildcard and shared certificates need launchroom's own Caddy image (ghcr.io/vantezzen/launchroom-caddy). Until then, per-address certificates keep working.
  • Per address after you saved credentials: read the result under the form (Credentials work or Check failed with the reason). A token without edit rights for the zone, or for a different zone, can't be used. Fix it at your provider and click Verify again.

Custom domains always use per-name certificates, issued on first visit, whatever the DNS provider setting.

The domain is refused when you add it

Hostnames are checked before anything else happens:

  • Underscores aren't allowed (Let's Encrypt refuses them), so my_app.example.com can't be used. Use a hyphen.
  • Labels (the parts between dots) are at most 63 characters.
  • IP addresses and names at or under your platform domain can't be added as custom domains, because names under the platform domain are launchroom's generated addresses.
  • A hostname belongs to one team only. If another project already uses it, remove it there first.

launchroom shortens generated names that would be too long and adds a short hash suffix, so long service, environment or project names never break them.

Several edge servers

With two or more servers that serve traffic, DNS should point at all of them: add one A (and AAAA) record per edge, as the domain card lists. Any edge can then answer for every domain.

Domain settings scrolled to the generated domain, Live, with DNS managed, a local certificate and traffic served by 2 servers, and edge server cards for control plane and server-2.Domain settings scrolled to the generated domain, Live, with DNS managed, a local certificate and traffic served by 2 servers, and edge server cards for control plane and server-2.
Every edge server answers for your domains, so traffic keeps flowing if one is down.

Edges coordinate certificates through shared storage on the control-plane server, so a certificate obtained by one edge is used by all of them and validation works whichever edge Let's Encrypt reaches. Under Settings → Network → Public traffic each edge shows its certificate state:

  • Shared certificates: the edge uses the shared storage.
  • Own certificates: the edge keeps its own. This is normal with one edge. With several, an instance owner has to allow sharing for an edge (Share certificates) before it joins the shared storage. Until then, validation for a name can land on the edge that didn't request it and fail.
  • Serving a local copy: the shared storage isn't reachable right now (often a private network problem). The edge keeps serving the certificates it mirrored locally, and issues nothing new until it reconnects. See Private network problems.

For running more than one edge, see High availability ingress.

Next steps

On this page