Why Your Cron Jobs Fail Silently (And How to Catch It)

Diagnosis · 2026-11-30 · 6 min read

The dangerous thing about a failed cron job is not that it fails. It is that it fails without telling anyone. Backups stop, invoices never go out, reports go stale — and you find out from a customer, weeks later.

Most people assume a broken job looks like an error in the logs. In practice, the jobs that hurt are the ones that produce no signal at all. Here are the four ways that happens.

1. The job never ran

The cron daemon stopped, the server rebooted outside a maintenance window, or the crontab was replaced during a deploy. Nothing executed, so nothing logged an error. The backup you trust has simply not happened for eleven days.

# confirm cron is even alive
systemctl status cron      # Debian/Ubuntu
systemctl status crond     # RHEL-family

2. It ran, but the command failed

Cron runs with a minimal environment. PATH is short, HOME may differ, and the working directory is not what you expect. A script that works interactively fails under cron — and if its output is redirected to /dev/null, you will never know.

# a classic silent failure — stderr thrown away
0 2 * * * /opt/backup.sh >/dev/null 2>&1

3. It ran, exited zero, but did nothing useful

This is the subtlest one. The script completes successfully, but the disk was full, the API returned a soft error, or an upstream file was empty. Exit status 0 says the process ended — not that the work happened.

4. The schedule itself was wrong

A timezone mismatch, a mistyped field, or a % that cron interpreted as a newline. The job runs faithfully — just not when you think it does.

The one signal that catches all four

Notice what the four modes have in common: in every case, the expected heartbeat is missing. You do not need to diagnose the cause to detect the problem — you only need to notice that the job did not check in on time.

That is the idea behind a dead-man's switch. Instead of watching for errors, you watch for silence. A job sends a small heartbeat when it finishes successfully; if the heartbeat stops arriving past a deadline, you get an alert. It catches all four failure modes with one mechanism, including the ones that exit zero.

Error monitoring answers "did this job report a problem?" Heartbeat monitoring answers "is this job still alive?" The second question covers strictly more failures.

What to do next

Start by adding a heartbeat to your most critical job — the one whose failure would hurt most. The next guide shows how to do it with a single line of curl, no agent required.

Know the moment a job stops

TickAlive is a self-hosted dead-man's switch for cron jobs. One curl line to plug in — Telegram or WeCom alerts when a job goes quiet.

Get TickAlive — $19
cronsilent failuremonitoring
← All articles Next article →