Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What the Error Means

Chrome and other Chromium-based browsers show "This page isn't working" with a line saying the site didn't send any data, and the code ERR_EMPTY_RESPONSE. The connection was made, so DNS resolved and the port is open. Something on the server ended the connection before writing a response. That differs from 502 Bad Gateway, where a proxy does answer, with an error page.

What a Visitor Can Try

  • Reload: a worker that crashed once may handle the next request.
  • Clear the site's cookies and cache: a broken session cookie can crash the application on every request.
  • Try a private window: it rules out extensions and stored data in one step.
  • Turn off a VPN or proxy for one test: a proxy can close the connection itself.
  • Use another network: if it works elsewhere, a filter on the first network is involved.

Reproduce It with curl

curl -v https://example.com/
curl -v --resolve example.com:443:127.0.0.1 https://example.com/

Run the second command on the server itself. curl reports Empty reply from server with exit code 52. If both commands show it, the server is the cause; if only the outside test does, look at anything in front of it.

Crashed PHP-FPM or Application Worker

A process that crashes in the middle of a request leaves nothing to send. With Apache and mod_php, or an application server exposed on its own port, the visitor sees an empty reply. Search for crashes:

sudo journalctl -u php8.3-fpm --since '1 hour ago'
sudo journalctl -k --since '1 hour ago' | grep -i -E 'segfault|killed process'

The service name follows the PHP version: php8.3-fpm on Ubuntu 24.04, php8.5-fpm on Ubuntu 26.04, php8.2-fpm on Debian 12, and php8.4-fpm on Debian 13. On AlmaLinux and Rocky Linux it is php-fpm. A segfault often follows a broken PHP extension; a killed process means memory ran out, as described in OOM killer. Pool settings are in PHP-FPM.

Rules That Close the Connection on Purpose

Nginx has a special status, 444, that closes the connection without a response. It is often used in a default server block to drop requests for unknown host names:

sudo nginx -T 2>/dev/null | grep -n 'return 444'

If your domain is missing from the server_name of its block, its requests land in that default block and get nothing. Add the name, test with sudo nginx -t, and reload. A web application firewall rule can drop requests the same way.

Wrong Port or Protocol

sudo ss -ltnp

Check which program owns the port the visitor reaches. A proxy pointed at the wrong port, or at a service that speaks another protocol, gets a connection that closes without an HTTP answer.

Timeouts

An application server can kill a worker that runs too long; Gunicorn kills and restarts a worker that stays silent for more than 30 seconds by default (its timeout setting). The request then ends with no response. Make slow requests faster or move the work to a background job before raising limits. Related timeouts are in 504 Gateway Timeout.

Logs to Read

SoftwareWhere to look
Nginx/var/log/nginx/error.log
Apache, Debian/Ubuntu/var/log/apache2/error.log
Apache, Alma/Rocky/var/log/httpd/error_log
PHP-FPMjournalctl -u and the pool log
Kerneljournalctl -k

Confirm the Fix

Run curl again from outside. A status line such as HTTP/2 200 and headers mean the server now answers. Keep sudo tail -f running on the error log for a while to catch crashes that come back under load.

Was this answer helpful?
Loading...