Skip to content

Troubleshooting guide

Is my website down? How to check and what to do next

First work out whether it is down for everyone or only for you. Then go through the layers in order: DNS, connection, TLS, HTTP and the application.

3 min read10 sectionsUpdated

On this page

Key points

  • Test from a second network before panicking.
  • Work in order: DNS, TCP, TLS, HTTP.
  • The error text tells you the layer.
  • Know who to tell, and how, in advance.

Step one: is it just you?

Try your phone on mobile data, with Wi-Fi off. If it loads, the problem is local: your network, DNS cache, VPN or firewall. If it fails there too, treat it as an outage, and check other regions if you can.

What the browser tells you

  • DNS_PROBE or ERR_NAME_NOT_RESOLVED: DNS.
  • ERR_CONNECTION_REFUSED: nothing is listening.
  • ERR_CONNECTION_TIMED_OUT: a firewall, or the host is down.
  • Certificate warnings: TLS.
  • 502, 503, 504: a proxy reached, the backend failing.
  • 500: the application itself.
  • A blank or wrong page with status 200: a logic or deployment problem.

Check each layer

These commands run from any machine and each answers a single question.

bash
# 1. DNS: does the name resolve?
dig +short example.com

# 2. TCP: is the port open?
nc -vz -w5 example.com 443

# 3. TLS: is the certificate valid?
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates

# 4. HTTP: status and time per phase
curl -s -o /dev/null -w 'code %{http_code} dns %{time_namelookup} connect %{time_connect} tls %{time_appconnect} ttfb %{time_starttransfer}\n' https://example.com/

# 5. On the server: load, disk, services, recent errors
uptime; df -h /; systemctl --failed; journalctl -p err --since "15 min ago" | tail

What to do next

Check what changed: a deployment, a config change, a certificate renewal, or an expiring domain. If a recent deployment lines up, rolling back is usually fastest. Tell people quickly: post on your status page before you have the answer, stating what you know. Also check your providers' status pages, as your host, CDN or DNS may be the source.

Common false alarms

Some "site down" reports are really narrower problems. A CDN issue in one region affects only those users, so a check from your office proves nothing. A firewall rule or rate limit may block a single country or an office IP. A stale DNS cache can make a successful migration look like an outage to one person. Only one page may be broken, such as checkout, while the home page loads perfectly. That last case is the most expensive, because a simple homepage check stays green while you lose sales.

Know before your users do

Do not rely on customers to tell you. Uptime monitoring checks every minute, with alerts through Slack or on-call. See how to monitor website uptime, and keep an incident response plan ready.

Frequently asked questions

Why does the site work for others but not me?

Your network, DNS cache, VPN or browser is probably the cause.

What should I check first?

Whether it fails from another network, and then what changed recently.

How can I know immediately next time?

Set up external monitoring from several regions with alerts.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.