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
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.
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" | tailIs 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.
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.
Related reading
- ERR_TUNNEL_CONNECTION_FAILED: how to fix it: Fix ERR_TUNNEL_CONNECTION_FAILED: proxy servers refusing HTTPS tunnels, wrong proxy settings, VPN apps and corporate filters, step by step.
- ERR_ADDRESS_UNREACHABLE: how to fix it: Fix ERR_ADDRESS_UNREACHABLE: no route to the server, wrong IP in DNS, IPv6 problems, private addresses and firewalls, for visitors and server owners.
- ERR_INTERNET_DISCONNECTED: how to fix it: Fix ERR_INTERNET_DISCONNECTED in Chrome: reconnect Wi-Fi, check the router, disable proxies and VPNs, reset network settings, and when apps say offline.
- "Your connection is not private": how to fix it: Fix "Your connection is not private" (NET::ERR_CERT_*): expired or mismatched certificates, wrong device clocks, missing intermediates and Wi-Fi portals.
- ERR_BLOCKED_BY_CLIENT: how to fix it: Fix net::ERR_BLOCKED_BY_CLIENT: ad blockers and privacy extensions blocking scripts, images and API calls, and how developers avoid false blocks.
- ERR_UNSAFE_PORT: how to fix it: Fix ERR_UNSAFE_PORT: Chrome blocks web requests to ports used by other protocols (SMTP, IRC, SIP). Move your service to a safe port or allow it locally.
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.