Cron Job Not Running

Linux

A cron scheduled task is not executing at its scheduled time — the cron daemon is running but the job does not fire.

Check your exact device first. Codes and procedures vary by model and software version. Back up important files before recovery. Stop if a device is overheating, smells burnt, or has a swollen battery.

CHOOSE HOW YOU WORK

Clear help. Useful detail.

Start with the checks below. Tick a step after you try it, and keep a note of what changed. You can stop as soon as the original task works.

What can cause it?

  • Wrong cron syntax
  • Script uses relative paths not found in cron's minimal environment
  • Missing execute permission on script
  • Script output/errors not captured so failures are silent

What to try

Work through one step at a time
Your troubleshooting progress0 steps tried
  1. Verify Cron Syntax

    Use crontab.guru to validate your cron expression. The syntax is: minute hour day-of-month month day-of-week command. Note: cron uses the system's local time.

  2. Check Cron Logs

    Run: grep CRON /var/log/syslog | tail -50 (Ubuntu/Debian) or journalctl -u cron -n 50 to see recent cron activity and errors.

  3. Use Absolute Paths in Cron

    Cron runs with a minimal PATH. Use full absolute paths for all commands and scripts: /usr/bin/python3 /home/user/script.py instead of python3 ~/script.py

  4. Redirect Output to Catch Errors

    Add output redirection: */5 * * * * /path/to/script >> /tmp/cron.log 2>&1 — this captures both stdout and stderr to a file you can inspect.

How did it go?

Test the original task again. A completed checklist doesn’t by itself mean the problem is fixed.

If the error comes back

Record the full error, your exact model, software version, and the steps you tried. Share these with the manufacturer or a qualified technician. A repeated code needs a diagnosis, especially if it involves storage, heat, or power.

Find the instructions for your model

Linux official support

This is a general support link. This reference guide has not been checked against a model-specific source in this update.