A heartbeat ping didn't arrive
Your heartbeat expected a ping from your job and didn’t get one in time. This page helps you find out whether the job ran, whether its ping reached DownBad, and how to get the heartbeat back to Up.
What you’re seeing
Section titled “What you’re seeing”While a ping is overdue but inside the grace period, the heartbeat shows Late. Nothing alerts yet. When the grace period runs out, it shows Down, and DownBad opens an incident with this reason:
The expected ping did not arrive within the grace periodThe grace period is how long DownBad waits past the time a ping is due before it calls the ping missed. DownBad only knows that no ping came. It can’t see your server, so the cause is almost always on the job’s side: it didn’t run, it failed before it pinged, or its ping didn’t get through.
Your job may also have printed one of the ping service’s refusals, which this page covers too:
No heartbeat has this ping URL.Too many pings. The ping was counted but not applied.Run starts (/start) are on paid plans. The ping was counted but not applied.Is it you or us?
Section titled “Is it you or us?”Open the heartbeat in DownBad and look above its details. If our ping service had trouble, a notice there says so, with when it began and, once fixed, when it ended. While that notice is up, a missed ping may be ours, not your job’s: see Our ping service was down.
With no notice, look at Pings received on the heartbeat. Run your job by hand. If the count goes up, pings reach DownBad and the problem is when the job runs. If it doesn’t, the ping isn’t getting through.
Check it yourself
Section titled “Check it yourself”Send one ping to the ping URL yourself and see what comes back. Copy the ping
URL from the heartbeat’s page and put it in place of
https://ping.downbad.app/your-token.
curl -sS -w '%{http_code}\n' https://ping.downbad.app/your-tokencurl -sS -w '%{http_code}\n' https://ping.downbad.app/your-tokenIn PowerShell, type curl.exe, not curl, which PowerShell treats as
another command.
curl.exe -sS -w "%{http_code}\n" https://ping.downbad.app/your-tokenThe last line is the status code DownBad answered with. Anything above it is what the ping service said.
200No heartbeat has this ping URL.Help: https://downbad.app/docs/troubleshooting/heartbeat-missed/#the-ping-url-is-wrong-or-was-replaced404Too many pings. The ping was counted but not applied.Help: https://downbad.app/docs/troubleshooting/heartbeat-missed/#the-job-pings-too-often429curl: (6) Could not resolve host: ping.downbad.appWithout a terminal: paste the ping URL into a browser’s address bar. A blank page means the ping worked and the heartbeat turns Up. A page that says No heartbeat has this ping URL. means the URL is wrong.
Fix it
Section titled “Fix it”The causes below run from most to least likely, so start with the first.
The job didn’t run
Section titled “The job didn’t run”The scheduler never started the job: the cron line has a typo, the timer isn’t enabled, the machine was off, or the workflow was disabled.
-
Check the scheduler’s own record. For cron, read the system log (
grep CRON /var/log/syslogon Debian and Ubuntu). For a systemd timer, runsystemctl list-timersand check the timer is listed with a next run. For Kubernetes, runkubectl get cronjob your-joband checkLAST SCHEDULE. For GitHub Actions, open the workflow’s runs on the Actions tab. -
Fix the schedule, then run the job once by hand to check it pings.
The job failed before it pinged
Section titled “The job failed before it pinged”The job ran, but crashed or was killed before it reached the ping, so it sent
neither the plain ping nor /fail. A job killed for using too much memory, or
stopped by a timeout, can’t run anything after it.
-
Read the job’s own log for the run that should have pinged.
-
Put the ping where it runs however the job ends. The snippets in DownBad do this: the shell one pings after the job whatever it returns, and the systemd one uses
ExecStopPost, which runs even after a failure. See Set up a heartbeat.
The job can’t reach the ping URL
Section titled “The job can’t reach the ping URL”The job ran and tried to ping, but the request never reached DownBad. A
firewall that blocks outgoing traffic, a proxy, or a container with no network
access stops it. The curl options in the snippets hide the output of a ping
that works, but print the error of one that fails, so look for a curl: line
in the job’s log.
-
From the machine the job runs on, run the command in Check it yourself. If it can’t resolve or connect, so can’t the job.
-
Allow outgoing HTTPS (port 443) to
ping.downbad.app. If the machine sends traffic through a proxy, give the job the same proxy settings, for exampleHTTPS_PROXY.
The ping URL is wrong or was replaced
Section titled “The ping URL is wrong or was replaced”DownBad answers No heartbeat has this ping URL. The URL has a typo, belongs to a heartbeat that was deleted, or was replaced with Regenerate, which stops the old URL working at once.
-
Open the heartbeat and copy the ping URL from its page again.
-
Paste it into every job that pings this heartbeat, replacing the old one. In GitHub Actions, update the
DOWNBAD_PING_URLsecret.
If a machine keeps pinging URLs that don’t exist, DownBad starts answering it with Too many pings to unknown ping URLs. Slow down. Fix the URL and the refusals stop.
The schedule or grace period is tighter than the job
Section titled “The schedule or grace period is tighter than the job”The job runs, and pings, but later than the heartbeat expects. Its schedule in DownBad doesn’t match the scheduler’s, or a run can take longer than the grace period allows.
-
Compare the heartbeat’s Next ping due with when the job really runs. For a Cron schedule, check the expression and the time zone both match the scheduler’s. GitHub Actions reads cron in UTC.
-
Set the grace period longer than the job’s slowest normal run, plus however late the scheduler can start it. GitHub Actions can start a scheduled run several minutes late, and WP-Cron only runs when someone visits the site.
The job pings too often
Section titled “The job pings too often”DownBad accepts up to 30 pings a minute for one heartbeat. Past that, it
answers Too many pings. The ping was counted but not applied. Next to
Pings received, the heartbeat shows how many pings were refused, ever: the
ones over this limit, and any /start pings refused on the Free plan (see the
next section). A refused ping never moves the heartbeat’s schedule on, so if
every ping is refused the heartbeat goes Late.
-
Look for a loop, or many copies of the job, pinging the same URL. Each copy of a job that runs in parallel needs a heartbeat of its own.
-
Ping once per run, when the run ends.
/start pings are refused on your plan
Section titled “/start pings are refused on your plan”DownBad answers Run starts (/start) are on paid plans. A /start ping is
only for paid plans. This doesn’t make the heartbeat miss: the ping at the end
of the run still counts.
- Remove the
/startping from the job, or upgrade to a paid plan.
Our ping service was down
Section titled “Our ping service was down”If our ping service can’t receive pings, DownBad doesn’t alert for pings that were due while it was down, so an outage on our side never pages you. The heartbeat’s page shows a notice for the outage, and keeps it after the fix. Pings your job sent during the outage may be lost, so the heartbeat may show Late, or even Down, until the job’s next run pings. That Down opens no incident and sends no alert.
- Nothing to change on your side. If you want the heartbeat Up straight away, run the job by hand.
Confirm DownBad sees the fix
Section titled “Confirm DownBad sees the fix”-
Fix the cause first.
-
Run the job by hand, or wait for its next scheduled run.
-
Wait up to 30 seconds. The heartbeat’s page updates by itself, shows Up, and the incident closes. One successful ping is enough.
If the heartbeat was paused, resume it first. A resumed heartbeat shows Waiting for first ping and can’t alert until the next ping arrives.
Still stuck
Section titled “Still stuck”Before you ask for help, collect:
- the link to the heartbeat or its incident, and the reason it shows, word for word
- the output of the command in Check it yourself, and when you ran it
- the scheduler’s entry for the job, such as the cron line or the workflow file, with the ping URL taken out
Then send all of it to us through Contact Us.