Debugging

Cron error messages, decoded.

Search the exact text you saw. Each entry says what the message really means, which cron implementation prints it, and links to the full fix.

Cron on Linux comes in two main flavours. Debian and Ubuntu ship Vixie cron (package cron). Fedora, RHEL, Rocky, Alma, Amazon Linux and Arch ship cronie. Alpine uses BusyBox crond. They print slightly different messages, so this page notes which one says what.

MessageWhat it meansPrinted by
crontab: command not foundThe cron package isn't installed.your shell
no crontab for rootThat user has no crontab file yet. Not a fault.Debian cron, cronie
errors in crontab file, can't install.
Invalid crontab file, can't install.
A line failed the syntax check, so nothing was saved.Debian cron / older cronie; current cronie
new crontab file is missing newline before EOF, can't install.The last line has no line break after it.Debian cron
(CRON) info (No MTA installed, discarding output)A job printed output and there's no mail program to send it. The job itself ran.Debian cron
You (alice) are not allowed to use this program (crontab)Blocked by /etc/cron.allow or /etc/cron.deny.Debian cron, cronie
Unit cron.service could not be found.Wrong service name for your distro, or cron isn't installed.systemd
System has not been booted with systemd as init systemUsually WSL without systemd, or a container.systemctl
Operation not permitted (macOS)macOS privacy protection is blocking cron or Terminal.macOS

Full fixes

Where to find cron's own messages

# Debian / Ubuntu (systemd)
journalctl -u cron --since "1 hour ago"
grep CRON /var/log/syslog          # if rsyslog is installed

# Fedora / RHEL / Amazon Linux (cronie)
journalctl -u crond --since "1 hour ago"
cat /var/log/cron                  # if rsyslog is installed

# Arch
journalctl -u cronie

Debian's cron logs to the syslog cron facility, and its -L option controls how much it logs (1 = job start, 2 = job end, 4 = failed jobs, 8 = process number; add them up). Every location, plus how to get a separate cron.log, is on where are cron logs.

Check the whole file at once. Paste or upload your crontab into the crontab checker. It reads the file the way Debian/Ubuntu cron, cronie or BusyBox does, lists every error instead of stopping at the first, and also flags lines that install fine but run wrongly (an unescaped %, reversed ranges, jobs that can never run).

Sources

Checked against these official sources and, where marked, tested on Ubuntu 24.04 (cron 3.0pl1-184ubuntu2). Last verified 18 November 2026.