The website is unavailable. Users are contacting support, managers are panicking, and you receive an alert. What you do in the first few minutes, how quickly you identify the cause, and how you restore service determine the duration of the outage and the scale of the losses. This guide provides a step-by-step action plan for when a website goes down.
The first 5 minutes: confirmation and escalation
Step 1: Confirm the incident
Not every alert indicates a real problem. Possible false alarms include:
- A temporary network failure between the monitoring service and your hosting provider
- The monitoring service's IP address being blocked by a firewall
- A change in the expected response (for example, a redirect to another page)
Actions:
- Open the website in a browser (preferably in incognito mode)
- Check it over a mobile internet connection (to rule out local network issues)
- Use website availability checkers: downforeveryoneorjustme.com, isitdownrightnow.com
- Check your hosting provider's and CDN's status pages
If the website opens for you but monitoring reports an error, the problem may be with the monitoring service or regional (the website may be unavailable from certain regions).
Step 2: Assess the scope
Determine exactly what is unavailable:
| Symptom | Possible cause |
|---|---|
| The website does not open at all | DNS, hosting, network |
| “Your connection is not private” error | SSL certificate |
| 502/503 error | Application server, overload |
| 500 error | Code error, database |
| Slow loading | Overload, DDoS |
| Some pages do not work | A specific service, API |
Step 3: Notify the team
If the incident is confirmed, notify the people responsible immediately. A clear communication channel (Telegram chat, Slack) is critical. Include:
- What happened (website unavailable / 503 error / etc.)
- When it was detected
- What has already been checked
Do not waste time looking for someone to blame. Restore service first.
Diagnosis: decision tree
Once the incident is confirmed, proceed with diagnosis. Below is a sequence of checks, from external layers to internal ones.
Layer 1: DNS
DNS is the user's first point of contact with the website. If DNS does not resolve, the browser does not know where to send the request.
Check using DNS Lookup:
- Enter the website's domain
- Check the A and AAAA records — do they point to the correct IP addresses?
- Check the record TTLs — are they unusually low (which may indicate recent changes)?
- Compare the results from different DNS servers (Google 8.8.8.8, Cloudflare 1.1.1.1)
Common DNS problems:
| Problem | Symptom | Solution |
|---|---|---|
| Domain expired | DNS does not resolve | Renew the domain with the registrar |
| Incorrect NS records | The domain points to nonexistent NS records | Correct the NS records with the registrar |
| DDoS attack on DNS | Slow or unstable resolution | Switch to protected DNS (Cloudflare, etc.) |
| Stale cache | Some users see the old IP address | Wait for the TTL to expire or lower the TTL in advance |
Quick check from the terminal:
dig example.com +short
nslookup example.com 8.8.8.8Layer 2: Network and host availability
If DNS resolves correctly, check whether the server is reachable.
Checks:
ping example.com
traceroute example.com
curl -I https://example.comHow to interpret the results:
pingdoes not respond — the server is down, the firewall is blocking ICMP, or the network is unavailabletraceroutestops at a particular node — there is a problem along the network path or with the hosting providercurlreturns a timeout — the server is not responding to HTTP(S)curlreturns 5xx — the server is reachable, but the application is failing
Layer 3: SSL/TLS
A “Your connection is not private” or “Certificate has expired” error indicates a certificate problem.
Check using SSL Checker:
- Enter the domain
- Check the certificate's validity period
- Check the certificate chain (make sure there are no breaks)
- Check that the certificate matches the domain (SAN)
Common SSL problems:
| Problem | Cause | Solution |
|---|---|---|
| Certificate expired | Renewal was forgotten | Install a new certificate and restart the web server |
| Incorrect chain | Intermediate certificates are not installed | Add the full chain |
| Domain mismatch | The certificate is for a different domain | Issue a certificate for the correct domain |
| Mixed content | Some resources are served over HTTP | Update the links to HTTPS |
Urgent Let's Encrypt renewal:
certbot renew --force-renewal
systemctl reload nginxLayer 4: Web server and application
The server responds but returns 5xx. The problem is in the application or its configuration.
502 Bad Gateway — the web server (Nginx, Apache) cannot get a response from the backend (PHP-FPM, Node, etc.):
- The backend is down — restart the service
- Timeout — the backend is overloaded or hung
- Incorrect upstream in the configuration
503 Service Unavailable — the service is temporarily unavailable:
- Overload — too many requests
- Scheduled maintenance (if configured)
- Database unavailable
500 Internal Server Error — an error in the application code:
- Check the application logs
- Check the PHP/Node/Python logs
- Possible cause: insufficient memory or database failure
Checking logs:
# Nginx
tail -f /var/log/nginx/error.log
# PHP-FPM
tail -f /var/log/php-fpm/error.log
# Системные логи
journalctl -u nginx -f
journalctl -u php-fpm -fLayer 5: Database
Many website outages are caused by database problems.
Symptoms: 500/503, timeouts, “Error establishing database connection”
Checks:
# MySQL/MariaDB
mysql -u user -p -e "SELECT 1"
# Проверка подключений
mysqladmin processlist
# Проверка диска (БД может не писать при полном диске)
df -hCommon problems: disk space exhausted, MySQL has crashed, connection limit reached, or long-running queries are blocking the database.
Layer 6: DDoS and overload
The website is slow or intermittently unavailable under heavy load.
Symptoms:
- A sudden increase in traffic
- Many requests from a limited number of IP addresses
- High CPU or memory usage on the server
Actions:
- Enable “Under Attack” mode in Cloudflare (if used)
- Set rate limits at the web server level
- Block suspicious IP addresses in the firewall
- Contact your hosting provider — they may be able to enable DDoS protection
Temporary measures in Nginx:
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;
limit_req zone=one burst=20 nodelay;Communication during an incident
Internal communication
- One channel — post all updates in one chat/thread
- Regular status updates — provide a brief update every 10–15 minutes: what has been done and what is in progress
- Roles — who diagnoses, who fixes the issue, and who communicates with users
External communication
If the website is unavailable for a long time (more than 15–30 minutes), users will look for information.
Where to post status updates:
- Status page (status.example.com) — if available
- Social media (Telegram, VK)
- Email for B2B clients during prolonged incidents
What to say:
- Keep it brief: “We are aware of the problem and are working on a solution”
- No technical details
- Estimated recovery time (if it can be estimated)
- Thank users for their patience
Example:
“The website is currently experiencing technical difficulties. Our team is working to resolve them. We expect service to be restored within an hour. We apologize for the inconvenience.”
Recovery and validation
After applying fixes:
- Check availability — open the website and check key pages
- Check functionality — forms, authentication, payments
- Check monitoring — alerts should return to the OK status
- Wait for stability — 10–15 minutes without repeated errors
Postmortem: what to do after an incident
A postmortem is a review of an incident aimed at preventing it from happening again.
Postmortem structure
- Timeline — what happened and when (detection, diagnosis, resolution)
- Root cause — what exactly led to the incident
- Impact — duration, number of affected users, losses
- Remediation actions — what was done to restore service
- Action items — what to change to prevent recurrence (with owners and deadlines)
Questions for analysis
- How quickly did we detect the problem? If users reported it, do we need more frequent monitoring?
- How quickly did we identify the cause? Are there gaps in documentation or skills?
- Were runbooks ready for common scenarios?
- What can be automated (automatic restarts, metric alerts)?
Documentation
Save the postmortem somewhere accessible. It will save time if a similar incident happens again.
Quick diagnosis checklist
Print it out or save it in your bookmarks:
[ ] Сайт не открывается у меня / у других?
[ ] DNS резолвится? (dig, nslookup)
[ ] Ping доходит до сервера?
[ ] SSL-сертификат валиден? (браузер, ssl-checker)
[ ] Какой HTTP-статус возвращает? (curl -I)
[ ] Логи веб-сервера — что пишут?
[ ] Логи приложения — ошибки?
[ ] База данных доступна?
[ ] Диск не заполнен? (df -h)
[ ] CPU/память не перегружены?Diagnostic tools
Uptime Monitor — availability monitoring. The sooner you receive an alert, the sooner you can start diagnosing the problem. The recommended check interval is 5 minutes.
SSL Checker — SSL certificate check. Use it if you suspect an HTTPS problem. For prevention, use SSL Monitor with expiration notifications.
DNS Lookup — DNS record check. The first tool to use when the website does not open.
Prevention: preparing for incidents
-
Set up monitoring before the first incident. See “Website uptime monitoring: why it is needed and how to set it up”.
-
Maintain a runbook — documents with step-by-step instructions for common scenarios (SSL expired, MySQL crashed, disk full).
-
Calculate the cost of downtime — this helps motivate investment in reliability. See “How much does website downtime cost? Calculating losses from downtime”.
-
Run incident drills — simulate an outage once a quarter and practice the team's response.
-
Keep contact details handy — hosting provider, registrar, CDN. Searching your email for contacts during an incident wastes time.
Runbook: common scenarios
Ready-made instructions speed up the response. Below are templates for common scenarios.
Scenario: SSL certificate expired
Symptoms: “Your connection is not private” or “Certificate has expired” error.
Actions:
- Connect to the server over SSH
- Check the certificate path (usually
/etc/letsencrypt/live/domain/) - Issue a new certificate:
certbot renew --force-renewal - Restart the web server:
systemctl reload nginx(or apache2) - Check website availability
- Set up SSL Monitor to prevent recurrence
Scenario: Disk full
Symptoms: 500/503, “No space left on device” errors in the logs.
Actions:
- Check:
df -h - Find large files:
du -sh /* | sort -rh | head -20 - Clear logs:
truncate -s 0 /var/log/nginx/access.log(or rotate them) - Delete temporary files and old backups
- Expand the disk or move data if necessary
- Set up disk usage monitoring
Scenario: MySQL/MariaDB is not responding
Symptoms: “Error establishing database connection”, 500 on all pages that use the database.
Actions:
- Check the status:
systemctl status mysql - Restart:
systemctl restart mysql - Check the logs:
tail -100 /var/log/mysql/error.log - Check memory usage:
free -h - If there is an OOM condition, increase the limits or optimize queries
Scenario: High load (CPU 100%)
Symptoms: Slow website, timeouts.
Actions:
- Identify the process:
toporhtop - If it is the web server, check the logs for anomalous requests (DDoS, bots)
- Temporarily set rate limits in Nginx
- Block IP addresses in the firewall if necessary
- Contact your hosting provider to enable DDoS protection
Communication templates
Internal notification (Telegram/Slack)
[ИНЦИДЕНТ] Сайт example.com недоступен
Время: 14:35
Статус: Диагностика
Ответственный: @usernameUpdate during the incident
[ОБНОВЛЕНИЕ] example.com
Проблема: SSL-сертификат истёк
Действия: Обновляем сертификат
Ожидаемое восстановление: 15–20 минутIncident closure
[РЕШЕНО] example.com
Восстановлено: 14:52
Причина: Истёк SSL-сертификат
Длительность: 17 минут
Постмортем: в течение 48 часовPublic message (social media, status page)
В настоящее время сайт example.com испытывает технические трудности. Наша команда работает над устранением. Приносим извинения за неудобства. Обновления: [ссылка на статус]Response effectiveness metrics
Track metrics to improve the process:
| Metric | Description | Target value |
|---|---|---|
| MTTD (Mean Time To Detect) | Time from the start of an incident to its detection | < 5 minutes with monitoring |
| MTTI (Mean Time To Identify) | Time to identify the cause | < 15 minutes |
| MTTR (Mean Time To Resolve) | Time to restore service | Depends on the type of incident |
| Number of incidents | Per month/quarter | Decreasing trend |
Regular postmortems and runbook updates reduce MTTI and MTTR.
Preparation before an incident
Readiness checklist
- Uptime Monitor configured with an interval of 5 minutes
- SSL Monitor configured for critical domains
- Runbooks are available for common scenarios (SSL, disk, database)
- Hosting provider, registrar, and CDN contacts are readily available
- An emergency communication channel is defined (chat, phone)
- The team knows who responds to alerts first
- A practice drill has been conducted (at least once)
Documentation
Maintain a document containing:
- Website architecture (servers, databases, CDN, DNS)
- Access credentials (stored securely)
- Contacts for responsible parties and contractors
- Incident and postmortem history
A website going down is not a question of “if,” but “when.” The team’s incident readiness determines the difference between 30 minutes of downtime and 4 hours. Use this plan as the basis for your playbook and adapt it to your infrastructure.