Skip to content

Troubleshooting guide

ERR_CONNECTION_CLOSED: how to fix it

The server (or something in between) closed the connection without sending a response. Chrome reports that the site "unexpectedly closed the connection".

3 min read10 sectionsUpdated

On this page

Key points

  • The connection opened, then closed with no answer.
  • TLS misconfiguration and crashing app processes are common.
  • Firewalls and DPI can cut connections.
  • Owners: check logs at the proxy and app for the exact time.

What it means

Unlike a refused or timed-out connection, the TCP connection was established and then closed cleanly (FIN) before any HTTP response arrived. Something decided to end it: the server software, a proxy, a firewall or the TLS layer.

Common causes

  • The application crashed or restarted while handling the request.
  • A proxy or load balancer closing idle or slow upstream connections.
  • TLS configuration problems (no certificate for the name).
  • Firewalls or deep packet inspection terminating connections.
  • Visitor-side VPNs and antivirus.

Fixes if you are visiting the site

  1. Reload the page, then try a private window to rule out extensions and old cookies.
  2. Try another network (mobile data instead of Wi-Fi) to see whether your network is the problem.
  3. Disable VPN and antivirus web shields.
  4. Clear browser data for the site.

Fixes if it is your site

Correlate the time of the error with web server, proxy and application logs. Look for worker crashes, out-of-memory kills, keepalive mismatches between proxy and upstream, and TLS errors.

bash
curl -sv https://example.com -o /dev/null 2>&1 | tail -15
sudo tail -n 50 /var/log/nginx/error.log
dmesg -T | grep -i -E "killed process|oom" | tail

Is it your device, your network or the site?

Work outward in three quick tests. First, open the same address on another device on the same network: if it fails there too, your device is not the cause. Second, switch that device to another network, such as mobile data: if it now works, the problem is your Wi-Fi, router, DNS or a filter on that network. Third, check the site from outside with an independent checker: if it fails from there as well, the site itself is down and only its owner can fix it. Write down the exact error code at each step; support teams can act on ERR_... codes far faster than on "it does not load".

How site owners catch this before visitors do

Most visitors who hit ERR_CONNECTION_CLOSED leave without telling you. An uptime check every minute, with a keyword assertion on the page and an SSL check on every run, turns this from a support ticket into an alert. Keep the history: errors that come and go (one region, one server behind a load balancer, one in twenty requests) only make sense on a timeline. Put the result on a status page so people stop guessing. You can test any address now with the free website down checker.

Frequently asked questions

How is it different from ERR_CONNECTION_RESET?

Closed is an orderly close (FIN); reset is an abrupt RST.

Is it my internet?

Possibly, if every site fails; if only one, the site is the likely cause.

Why only sometimes?

Intermittent crashes or one bad server behind a load balancer.

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.