Connection Reset or Closed
DownBad connected to your server, but the connection was cut off before an answer came back. Something on the way chose to end it: a firewall (software that decides which connections get through) or bot filter (a rule that turns away visitors it takes for automated programs) that doesn’t want DownBad, an app that crashed while answering, or a proxy (a server that passes visitors on to another one) with nothing behind it. This page helps you find which one, stop it, and see the incident close.
What you’re seeing
Section titled “What you’re seeing”An incident is open for a URL monitor (one that asks for a web page), a port monitor (one that opens a connection to a numbered port on your server) or an SSL monitor (one that sets up a secure connection and checks your site’s certificate, the digital ID a site shows to prove who it is), and it shows one of these reasons.
On a URL monitor, with the failure type unknown, a connection that was cut off:
socket hang up: the server took the request and closed the connection without a word.read ECONNRESET, orconnect ECONNRESET 203.0.113.10:443with your server’s address and port (the numbered door a server offers a service on): the server reset the connection, which means it ended it abruptly instead of closing it politely.Client network socket disconnected before secure TLS connection was established: for anhttps://address, the connection ended before the secure part of it (TLS, the encryption behindhttps://) was set up.write EPIPE: the connection was reset while DownBad was still sending its request.abortedorstream has been aborted: the answer started, then was cut off before it was complete.
On a URL monitor, with the failure type unknown, an answer DownBad couldn’t read:
Parse Error: Expected HTTP/, sometimes with more words after it, orParse Errorfollowed by something else DownBad expected: whatever answered on that port doesn’t speak HTTP, the language of web pages.incorrect header check: the page said it was compressed (squeezed so it travels faster), and it wasn’t.
On the other kinds of monitor, with the failure type unknown:
Port connection failed: connect ECONNRESET 203.0.113.10:8080, on a port monitor.SSL connection failed: Operation failed after 4 attempts. Last error: read ECONNRESET, on an SSL monitor. An SSL monitor tries more than once before it gives up, and the reason says how many times.
A connection reset is different from a refusal and from a timeout. Refused means nothing was listening and the server said so straight away (Connection Refused). Timed out means nothing answered at all (Connection Timed Out). Reset or closed means the connection was made, and then something hung up on it.
Is it you or us?
Section titled “Is it you or us?”It is almost always your server, or something in front of it. A reset comes from the address your monitor points at, or from a firewall or proxy on the way to it.
DownBad didn’t open this incident on one check, either. When a check is reset or closed, DownBad first checks again from up to three other places in the United States, and opens the incident only when at least half of the places that answered failed too.
Parse Error, incorrect header check and stream has been aborted don’t
count in that re-check, so they never open an incident by themselves. You see
them on an incident that a reset already opened, when a later check fails that
way instead.
The trap is testing as yourself. A firewall or bot filter that cuts off DownBad often lets your browser through, so a page that opens for you can still reset for DownBad. Check from outside, and also as DownBad, in Check it yourself:
-
For a URL monitor, turn off Wi-Fi on your phone and open the address over mobile data. Chrome shows
ERR_EMPTY_RESPONSEwhen the server closed the connection without answering, andERR_CONNECTION_RESETwhen it reset it. -
Run a free check from other countries at check-host.net. Enter the monitor’s address. Each location’s result shows an error instead of a status code (the number a website answers with, such as
200for a page that loaded) when the connection was cut off. For a port monitor, use its TCP port check instead (TCP is the kind of connection a port monitor opens), with the monitor’s host name (the address withouthttps://or any path, such asexample.com) and port. -
Read the results:
- Cut off from outside too: your server or something in front of it is ending the connection for everyone. Carry on below.
- It works from everywhere: it may still be cutting off only DownBad. Run step 2 and step 3 of Check it yourself, which compare the two. For a port monitor, go to the network firewall cause.
Check it yourself
Section titled “Check it yourself”These commands run in a terminal, a window where you type commands instead of clicking: Terminal in Applications › Utilities on macOS, PowerShell from the Start menu on Windows, and the terminal app on Linux. Paste a command, press Enter, and read what it prints. If you’d rather not use a terminal, Without a terminal at the end of this section does the same checks from a web page.
Most of them use curl, a tool that fetches a web page and comes with
macOS, Windows and most Linux systems, to ask for your page the way DownBad
does. Run them from a computer
outside your server’s own network, such as your laptop, not from the server.
Put your own address in place of https://example.com/.
1. Find the address and port DownBad connects to. It depends on the kind of monitor:
- URL monitor: its URL. The port is the number after the colon, if
there is one, so
https://example.com:8443/uses 8443. Otherwise it is 443 for an address that starts withhttps://, and 80 forhttp://. - Port monitor: its Hostname and Port Number. Skip to step 5, which tries the port itself: steps 2 to 4 ask for web pages and secure connections.
- SSL monitor: its Domain and its Port, which is 443 unless you changed it. Skip to step 4.
2. Ask for the page as DownBad. The -A part sends the same user agent
(the label a visitor sends to say what it is) as DownBad’s checks, and the rest
follows redirects (a page sending the visitor on to another address) and
gives up after 10 seconds:
curl -sS -L --max-redirs 5 -m 10 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com/200 0.090018curl: (52) Empty reply from server000 0.000430curl: (56) Recv failure: Connection reset by peer000 0.000427curl -sS -L --max-redirs 5 -m 10 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com/200 0.054722curl: (52) Empty reply from server000 0.000458curl: (56) Recv failure: Connection reset by peer000 0.000487curl.exe -sS -L --max-redirs 5 -m 10 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o NUL -w "%{http_code} %{time_total}\n" https://example.com/Neither Microsoft nor curl publishes what this prints on Windows, so there
is no example here. It is the same curl as on the other systems: when it
works, it prints a status code such as 200 and the seconds it took. When
it fails, it prints an error such as curl: (52) Empty reply from server
or curl: (56) Recv failure: Connection reset by peer, and then 000.
000 means no answer came back. curl’s
list of error codes says what
each number means. The ones that matter here:
(52) Empty reply from server: the server closed the connection without sending anything. This matches DownBad’ssocket hang up.(56) Recv failure: Connection reset by peer: the server reset the connection. This matches DownBad’sread ECONNRESET.(35)followed bySSL_ERROR_SYSCALLorConnection reset by peer: for anhttps://address, the connection ended before the secure part was set up. Step 4 looks closer.(1) Received HTTP/0.9 when not allowed: something that isn’t a web server (the program that sends web pages to visitors) answered on that port. This matches DownBad’sParse Error. Go to the port cause.
3. Ask for the page again, as yourself. The same command without the user agent shows whether only DownBad is cut off:
curl -sS -L --max-redirs 5 -m 10 -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com/200 0.080897curl: (56) Recv failure: Connection reset by peer000 0.000394curl -sS -L --max-redirs 5 -m 10 -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com/200 0.060576curl: (56) Recv failure: Connection reset by peer000 0.000406curl.exe -sS -L --max-redirs 5 -m 10 -o NUL -w "%{http_code} %{time_total}\n" https://example.com/Neither Microsoft nor curl publishes what this prints on Windows, so there
is no example here. When it works, it prints a status code such as 200
and the seconds it took. When it fails, it prints the same kind of error as
step 2, and then 000.
Compare the two:
- Step 2 fails and step 3 works: your site cuts off visitors that call themselves DownBad. Go to the firewall cause.
- Both fail the same way: your site cuts off everyone. Go to the crash cause and then the proxy cause.
- Both work: the problem may have gone, or it comes and goes. Run step 2 a few times. If it keeps working, skip to Confirm DownBad sees the fix.
4. For an SSL monitor, a port that serves secure connections, or an
https:// address that failed with (35), try the secure connection on its
own. This uses openssl, a tool for secure connections. Put your host
name (the address without https:// or any path, such as example.com) in
both places, and your port in place of 443. To do this without a terminal, see
Without a terminal.
The openssl that comes with macOS doesn’t have the option this uses, so
install OpenSSL with Homebrew (a
popular tool for installing software on a Mac; the
openssl@3 package) and run it
from where Homebrew puts it. On an Intel Mac, that starts with /usr/local
instead of /opt/homebrew.
/opt/homebrew/opt/openssl@3/bin/openssl s_client -connect example.com:443 -servername example.com -brief </dev/nullConnecting to 104.20.23.154CONNECTION ESTABLISHEDProtocol version: TLSv1.3Ciphersuite: TLS_AES_256_GCM_SHA384Peer certificate: CN=example.comHash used: SHA256Signature type: ecdsa_secp256r1_sha256Verification: OKNegotiated TLS1.3 group: X25519MLKEM768DONEConnecting to 127.0.0.1write:errno=540093AA0A02000000:error:0A000197:SSL routines:SSL_shutdown:shutdown while in init:ssl/ssl_lib.c:2804:Connecting to 127.0.0.10093AA0A02000000:error:0A000126:SSL routines::unexpected eof while reading:ssl/record/rec_layer_s3.c:703:0093AA0A02000000:error:0A000197:SSL routines:SSL_shutdown:shutdown while in init:ssl/ssl_lib.c:2804:openssl s_client -connect example.com:443 -servername example.com -brief </dev/nullCONNECTION ESTABLISHEDProtocol version: TLSv1.3Ciphersuite: TLS_AES_256_GCM_SHA384Peer certificate: CN = example.comHash used: SHA256Signature type: ECDSAVerification: OKServer Temp Key: X25519, 253 bitsDONEwrite:errno=10440D7FEFEFF7F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:../ssl/record/rec_layer_s3.c:316:Windows doesn’t come with openssl. Git for Windows (a free download that brings Linux-style tools to Windows) includes it: install it, open Git Bash (the terminal it adds) from the Start menu, and run the Linux command there.
Neither Git for Windows nor OpenSSL publishes what this prints on Windows,
so there is no example here. When it works, it prints
CONNECTION ESTABLISHED. When the connection is cut off, it prints an
error before that line instead: unexpected eof for a closed connection,
or errno= followed by Windows’ own number for a reset, which isn’t the
number Linux or macOS uses.
errno=104 on Linux and errno=54 on macOS are each system’s number for a
connection reset by the other side, and Windows has a number of its own.
unexpected eof means the connection was closed: EOF is “end of file”, the
end of what the server sent. Either one before CONNECTION ESTABLISHED
means the connection was cut off before the
secure part was set up, which a proxy with nothing healthy behind it does. Go
to the proxy cause. If it
says wrong version number instead, that port doesn’t speak the secure
language at all: go to
the port cause.
5. For a port monitor, try to connect to the port. Put the monitor’s port in place of 8080:
nc -vz -G 5 example.com 8080This example tried port 443, so it names that port and what it usually
serves (https):
Connection to example.com port 443 [tcp/https] succeeded!Apple doesn’t publish what this prints for a reset, and no reset could be
made on a Mac for this page, so there is no example of one here. When the
connection fails, the line starts with nc: connectx to and ends with the
reason. Connection reset by peer is macOS’s wording for a reset, the
same words curl showed in step 2.
nc -vz -w 5 example.com 8080Connection to example.com (203.0.113.10) 8080 port [tcp/*] succeeded!nc: connect to example.com (203.0.113.10) port 8080 (tcp) failed: Connection reset by peerTest-NetConnection example.com -Port 8080 -InformationLevel DetailedTcpTestSucceeded : TrueMicrosoft doesn’t publish what this prints when the connection fails. Its
Remote Desktop troubleshooting guide
says TcpTestSucceeded reads False then, so look for that line.
A reset here, or connect ECONNRESET in the incident’s reason, means the
connection was cut off before it was even complete. Go to
the network firewall cause.
If it works from your computer, the firewall may be cutting off only some
visitors, such as connections from the data centers (buildings full of
servers rented out to companies) DownBad checks from, and
that cause is still the one to read.
Without a terminal
Section titled “Without a terminal”- Steps 2 and 3: check-host.net asks for your page from many countries, as step 3 does. An error in place of a status code means the connection was cut off.
- Step 4: SSL Labs’ free server test sets up the secure connection with your site from outside, as step 4 does. Enter your host name. If it can’t finish the test, or reports that it couldn’t connect, the connection is being cut off before the secure part is set up: go to the proxy cause. It tests port 443 only; for another port, ask whoever runs the server to run step 4 for you.
- Step 5: check-host.net’s TCP port check tries the port from many countries. An error in place of a time means it was cut off: go to the network firewall cause.
check-host.net can’t send DownBad’s user agent, so it can’t show a filter that cuts off DownBad alone. For that, look at the log of blocked requests kept by your firewall, or by your CDN (a service such as Cloudflare that sits in front of your site), as the firewall cause describes.
Fix it
Section titled “Fix it”The causes below run from most to least likely, so start with the first. If
steps 2 and 3 of Check it yourself disagree, the first
cause is the one. For a port monitor, or a reason that starts with
connect ECONNRESET, go straight to
the network firewall cause.
Some steps happen on the server itself, so you need to log in to it: with
SSH (a way to open a terminal on another computer), or through the
console (a terminal that opens in your browser) in your hosting provider’s
dashboard. A step that changes the server needs
sudo on Linux, which runs a command as the server’s administrator and
asks for your password. Each such step says so.
If someone else runs the server for you, such as a managed hosting company or a website builder, send them the reason the incident shows and a link to this page. The fix is theirs to make.
A firewall or bot filter cuts off DownBad
Section titled “A firewall or bot filter cuts off DownBad”This is the cause when step 2 of Check it yourself fails and step 3 works, on a URL monitor. Something in front of your site, or your web server itself, has a rule that ends the connection for visitors it takes for a bot. Some filters answer such a visitor with an error page, which DownBad reports as a status code instead; the ones that bring you here hang up without a word.
If a service sits in front of your site, such as a CDN or a WAF (a web application firewall, which filters visitors before they reach your site), let DownBad through there. The bot protection page has the steps for Cloudflare, AWS WAF, Sucuri, Wordfence and any other service. On Cloudflare, its security events log lists each request it blocked and the rule that did it.
If nothing sits in front of your site, look for the rule in your web server’s
settings. nginx (a widely used web server) has a code made for this:
return 444 closes the connection
without an answer, as
nginx’s documentation of return
says. These steps are for nginx on Linux:
- Search nginx’s settings for the rule. This only reads:
grep -rn "return 444" /etc/nginx//etc/nginx/sites-available/default:11: return 444;It prints nothing when there’s no such rule. The file and line number tell you
where it is. Look at the lines just above it for what the rule matches, such as
$http_user_agent, the visitor’s user agent.
- To see whether the rule caught DownBad, look for DownBad in nginx’s
access log, its record of every request. Its usual place on Ubuntu
(a common kind of Linux) is
/var/log/nginx/access.log, and reading it needssudo:
sudo grep DownBad /var/log/nginx/access.log::1 - - [11/Nov/2026:12:10:00 +0000] "GET / HTTP/1.1" 444 0 "-" "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)"grep: /var/log/nginx/access.log: Permission deniedThe 444 after the request is the rule at work. A 200 there means nginx
answered DownBad, and the problem is elsewhere. The
log module’s documentation
says how to find the log if your server keeps it somewhere else.
- Open the file the search named in nano, a simple editor. Changing the
file needs
sudo. Put the path the search printed in place of the one here:
sudo nano /etc/nginx/sites-available/defaultIt shows the file. The top line and the three bottom lines of its screen look like this:
GNU nano 7.2 /etc/nginx/sites-available/default [ Read 94 lines ]^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line GNU nano 7.2 /etc/nginx/sites-available/default [ File '/etc/nginx/sites-available/default' is unwritable ]^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To LineThe number of lines is your file’s own. Remove the rule, or narrow it so it no
longer matches DownBad/1.0. Then press Ctrl+O and Enter to save, and Ctrl+X
to leave. If you left out sudo, press Ctrl+X and run the command again with
it.
- Check the settings before you use them. This catches a typo that would stop
nginx. It reads every settings file, so it needs
sudo:
sudo nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful2026/11/11 12:10:34 [emerg] 152#152: unknown directive "retrun" in /etc/nginx/sites-enabled/default:11nginx: configuration file /etc/nginx/nginx.conf test failed- Tell nginx to load the new settings. It keeps serving visitors while it
does. This needs
sudo:
sudo systemctl reload nginxIt prints nothing when it works. A request in the same second can still meet the old rule, so wait a moment before you test.
Failed to reload nginx.service: Access deniedSee system logs and 'systemctl status nginx.service' for details.- Run step 2 of Check it yourself again. It should print
200.
On Apache (another common web server), look for Deny or Require not
rules that match the user agent, and its error log for
requests it turned away. On IIS (Microsoft’s web server), its
log files
are in %SystemDrive%\inetpub\logs\LogFiles by default.
Wherever the rule lives, the safest way to let a URL monitor through is the
header (an extra line of information sent with a request) DownBad sends
with every check of a URL monitor: in DownBad, open Account and go to
Firewall header, and allow requests whose X-DownBad-Check header matches
your value. DownBad’s checker page explains it.
Port and SSL monitors send no header, because they never ask for a page. Never
let DownBad in by a list of IP addresses (the numbers that identify each
computer on the internet): its checks don’t come from fixed ones.
Your app crashed while answering
Section titled “Your app crashed while answering”This is the cause when steps 2 and 3 of Check it yourself both fail, and the monitor used to pass. Your app took the request and stopped before it answered, so the connection closed with it. Often something restarts the app straight away, which is why the next check, or your own test a minute later, can work.
If a web server such as nginx sits in front of your app, a crash usually shows as an error page from nginx instead, and DownBad reports a status code: 502: your server gave no usable answer covers it. A reset or a closed connection points at an app that visitors reach directly.
- Check whether the app restarted recently. On Linux, most apps run as a
service, a program the system starts and watches for you. Put your app’s
service name in place of
app:
systemctl status app● app.service - Example web app Loaded: loaded (/etc/systemd/system/app.service; enabled; preset: enabled) Active: active (running) since Wed 2026-11-11 12:09:42 UTC; 14s ago● app.service - Example web app Loaded: loaded (/etc/systemd/system/app.service; enabled; preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2026-11-11 12:09:56 UTC; 508ms ago● app.service - Example web app Loaded: loaded (/etc/systemd/system/app.service; enabled; preset: enabled) Active: active (running) since Wed 2026-11-11 12:09:58 UTC; 1s agoThe time after since is when it last started. A start close to the time of
the incident means it crashed and came back. The
systemctl manual
explains the other states.
- Find out why it stopped. The system keeps everything the app printed in its
journal, and reading it needs
sudo:
sudo journalctl -u app -n 50 --no-pagerNov 11 12:27:07 c90c37a9d2e1 python3[128]: Traceback (most recent call last):Nov 11 12:27:07 c90c37a9d2e1 python3[128]: File "/opt/app/app.py", line 13, in do_GETNov 11 12:27:07 c90c37a9d2e1 python3[128]: os.environ["REPORT_DIR"]Nov 11 12:27:07 c90c37a9d2e1 python3[128]: ~~~~~~~~~~^^^^^^^^^^^^^^Nov 11 12:27:07 c90c37a9d2e1 python3[128]: File "<frozen os>", line 685, in __getitem__Nov 11 12:27:07 c90c37a9d2e1 python3[128]: KeyError: 'REPORT_DIR'Nov 11 12:27:07 c90c37a9d2e1 systemd[1]: app.service: Main process exited, code=exited, status=1/FAILURENov 11 12:27:07 c90c37a9d2e1 systemd[1]: app.service: Failed with result 'exit-code'.Nov 11 12:27:09 c90c37a9d2e1 systemd[1]: app.service: Scheduled restart job, restart counter is at 2.Failed to search journal ACL: Operation not supportedNo journal files were opened due to insufficient permissions.-n 50 shows the last 50 lines, and the
journalctl manual
shows how to pick a time instead. Look for the last thing the app printed
before Main process exited. In the example, the app crashed because a
setting it needs, REPORT_DIR, was missing. The restart counter says how
many times it has come back.
An app run by pm2 (a program that keeps apps written in JavaScript, the language of web browsers that many servers also run, going) keeps the same record, as pm2’s log guide describes, and so does an app in a Docker container (a sealed-off package holding a program and everything it needs), as Docker’s logs reference describes.
-
Fix what the log names, such as a missing setting, a full disk or a bug in the page the monitor asks for, and restart the app. If the crash happens only on the monitor’s page, the log shows the same error each time a check asks for it.
-
Run step 2 of Check it yourself a few times. It should print
200each time.
A proxy or load balancer closes the connection
Section titled “A proxy or load balancer closes the connection”This is the cause when steps 2 and 3 of
Check it yourself both fail, and a load balancer (a
service that shares visitors between several servers) or a proxy sits in front
of your site. When none
of the servers behind it is healthy, some load balancers take the connection
and then close it, because they have nowhere to send it. For an https://
address or an SSL monitor, it often closes before the secure part is set up, as
step 4 shows.
-
Open the load balancer in your provider’s dashboard, and check that at least one server behind it is marked healthy:
- AWS: check the health of your targets, and how the health checks work.
- DigitalOcean: manage a load balancer, and its health checks.
-
If none is healthy, the servers behind it are the problem. Check each of them as in the crash cause, and check that the load balancer’s health check (the request it sends each server to decide whether it’s working) asks for a page and port they really serve.
-
If they are healthy, think about what happened at the incident’s start time. A deploy (putting out a new version of your site) that restarts the servers closes the connections they hold, and an incident that opens and closes around each deploy points there.
-
Run step 2 of Check it yourself again. It should print
200.
A firewall on the network resets the connection
Section titled “A firewall on the network resets the connection”This is the cause for a port monitor, and for any reason that starts with
connect ECONNRESET or Port connection failed: connect ECONNRESET. The
connection was reset before it was even complete, so it never reached your app
or web server. A firewall between DownBad and the server ended it: some let the
first message of a connection through and reset it straight after. That can
be a rule on the server itself, or something in your hosting provider’s
network, such as DDoS protection (a filter against floods of traffic) or an
intrusion prevention system (a filter that watches connections for attacks
and cuts off the ones it suspects). A firewall that turns the connection away
outright shows as Connection Refused
instead.
Some steps happen on the server itself, so you need to log in to it: with SSH (a way to open a terminal on another computer), or through the console (a terminal that opens in your browser) in your hosting provider’s dashboard.
- List the firewall rules on the server. On Linux, the firewall is built in
and its rules are read with iptables. Reading them needs
sudo, which runs a command as the server’s administrator:
sudo iptables -L INPUT -n --line-numbersChain INPUT (policy ACCEPT)num target prot opt source destinationChain INPUT (policy ACCEPT)num target prot opt source destination1 REJECT 6 -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080 flags:!0x17/0x02 reject-with tcp-resetiptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root)Look for a REJECT rule that ends in reject-with tcp-reset and names your
port after dpt:, or names no port at all. The number at the start of its line
is the rule’s number. The
iptables extensions manual
explains reject-with and the other parts.
- Remove that rule, by its number from the list. This changes the server, and
needs
sudo. Put the rule’s number in place of 1:
sudo iptables -D INPUT 1It prints nothing when it works.
iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root)A rule that a firewall tool added, such as ufw (Ubuntu’s firewall tool) or firewalld (the one on Fedora and Red Hat, two other kinds of Linux), comes back when that tool reloads. Change the rule in that tool instead: Ubuntu’s ufw guide or firewalld’s documentation.
-
If the server has no such rule, the reset happens before the connection reaches it. Open your hosting provider’s dashboard and look at each firewall, DDoS protection or intrusion prevention setting attached to the server, and at its log of blocked connections if it keeps one. On AWS, Network Firewall’s reject action is one that resets connections. Allow connections to the monitor’s port there. If you can’t find the setting, send your provider the reason the incident shows and a link to this page, and ask what in their network resets connections to that port.
-
Run step 5 of Check it yourself again. It should say
succeeded!, orTcpTestSucceededshould readTrue. A firewall that cuts off only some visitors can pass your own test either way, so watch the incident as the next section describes.
The address doesn’t match what the port speaks
Section titled “The address doesn’t match what the port speaks”This is the cause when the monitor has never passed since you added it, or when its URL or port changed just before the incident. The address and the port expect different things:
- An
http://address for a port that only speakshttps://. The secure port gets a plain request it can’t read and closes the connection, and DownBad reports one of the closed wordings, such assocket hang up. curl says(52) Empty reply from serverfor the same thing. - A port that isn’t a web server at all, such as 22, where SSH answers.
DownBad reports
Parse Error, and curl says(1) Received HTTP/0.9 when not allowed, as step 2 of Check it yourself shows:
curl: (1) Received HTTP/0.9 when not allowed000 0.000387-
Open the monitor and look at its address. A secure site uses
https://, and port 443 unless the site says otherwise. A plain site useshttp://and port 80. -
If you put a port in the address, check that it’s the port your web server serves pages on. Your hosting dashboard, or your web server’s settings, names it. An SSH, database or mail port can’t be checked by a URL monitor: use a port monitor for it instead.
-
Change the monitor’s address to match, and save it.
-
Run step 2 of Check it yourself with the corrected address. It should print
200.
An https:// address for a port that only speaks plain http:// fails
differently, with a secure-connection error such as wrong version number:
SSL Handshake Failed covers it.
The page says it’s compressed, and it isn’t
Section titled “The page says it’s compressed, and it isn’t”This is the cause when the incident shows incorrect header check. Servers
often compress a page (squeeze it so it travels faster) and say so in a
Content-Encoding: gzip header, where gzip is the usual way of
compressing. DownBad unpacks it, as browsers do. If the
header says gzip and the page isn’t, unpacking fails. Something on your server
added the header to a page it never compressed, such as app code that sets it
by hand.
Steps 2 and 3 of Check it yourself don’t unpack the page,
so they print 200. Add --compressed to unpack it as DownBad does:
curl -sS -L --compressed --max-redirs 5 -m 10 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com/200 0.081403curl: (61) Error while processing content unencoding: incorrect header check200 0.000460curl -sS -L --compressed --max-redirs 5 -m 10 -A "DownBad/1.0 (Uptime Monitor; +https://downbad.app/docs/resources/checker/)" -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com/200 0.067085curl: (61) Error while processing content unencoding: incorrect header check200 0.000510Not every copy of curl.exe can unpack a page, so use the curl that
comes with Git for Windows: open Git Bash
from the Start menu and run the Linux command there.
Neither Git for Windows nor curl publishes what this prints on Windows, so
there is no example here. When it works, it prints a status code such as
200 and the seconds it took. When the label is wrong, it prints an error
that starts with curl: (61) before the status code.
(61) is curl’s code for a page it couldn’t unpack. The 200 after it is the
status the server sent, before the page turned out unreadable.
Without a terminal, open the page in Chrome, press F12 to open its developer
tools (a panel that shows what the browser sent and received), and pick the Network tab. Reload the page and click its first row:
under Response Headers, a Content-Encoding line names how the server
says the page is compressed. Chrome shows ERR_CONTENT_DECODING_FAILED
instead of the page when that label is wrong.
-
Find what sets
Content-Encodingfor this page. Search your app’s code forContent-Encoding, and check whether your web server or CDN also compresses pages, so the page isn’t labeled twice. -
Remove the header where the page isn’t really compressed, or let one place do the compressing.
-
Run the command above again. It should print
200and no error.
Confirm DownBad sees the fix
Section titled “Confirm DownBad sees the fix”-
Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.
-
Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.
-
Wait a minute, then reload the incident page, which doesn’t update by itself. The incident closes by itself once enough checks in a row pass. You can’t close an incident by hand.
How many passing checks it takes. While an incident is open, DownBad checks less often after repeated failures. This is called back-off. Each failed check adds one step of back-off, up to 14. Each passing check takes one step away and asks for the next check straight away. When no steps are left, one more passing check closes the incident. So after a steady outage it takes one more passing check than there were failed checks while the incident was open, counting the one that opened it, and never more than 15.
These are the defaults. The monitor’s notification profile can change them for each monitor type under Backoff Config, and its settings are the ones that count: Recovery is how many passing checks in a row, with no back-off left, close the incident (2 by default, counting the check that takes the last step away), and Start after, Rate and Max interval decide when back-off starts and how far it goes. If the profile changes them, the step counts above and the waits below change with them.
How long that takes. After you press Test Now, those passing checks run back to back, a few seconds apart, so the incident usually closes within a minute. It takes longer when checks are slow to finish, such as a page that takes several seconds to load.
If you don’t press Test Now, the first passing check waits for the next scheduled one. With the default settings, from the third failed check on, DownBad waits 5 more minutes for each failure, up to an hour more than the monitor’s usual interval:
| Monitor checks every | After 1 or 2 failed checks | After 3 | After 6 | After 14 or more |
|---|---|---|---|---|
| 1 minute | 1 minute | 6 minutes | 21 minutes | 61 minutes |
| 5 minutes | 5 minutes | 10 minutes | 25 minutes | 65 minutes |
| 1 hour | 1 hour | 1 hour 5 minutes | 1 hour 20 minutes | 2 hours |
| 1 day | 1 day | 1 day 5 minutes | 1 day 20 minutes | 1 day 1 hour |
Still stuck
Section titled “Still stuck”Before you ask for help, collect:
- the link to the incident, and the reason it shows, word for word
- the output of the commands in Check it yourself, with the time you ran them and your time zone
- what Chrome showed for the address
- what sits in front of your site, such as a CDN, a firewall or a load balancer, and anything you changed or deployed recently
Then send all of it to us through Contact Us.