📖 ~1 min read
Table of contents
Symptom & Impact
Scheduled tasks do not execute, causing missed backups, reports, or maintenance jobs.
Environment & Reproduction
Ubuntu 18.04 using cron with scripts that rely on interactive shell PATH or unset environment variables.
Root Cause Analysis
cron runs with minimal environment; scripts fail due to missing absolute paths, permissions, or shell assumptions.
Quick Triage
Check systemctl status cron and inspect /var/log/syslog for CRON entries and exit codes.
Step-by-Step Diagnosis
Execute the same command with env -i to simulate cron environment and capture missing PATH or locale dependencies.

Solution – Primary Fix
Use absolute paths, define PATH/SHELL in crontab, set executable bits, and redirect output for diagnostics.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Migrate critical jobs to systemd timers for clearer dependency and logging control.
Verification & Acceptance Criteria
Jobs run on schedule, expected outputs are produced, and failures are observable in logs.
Rollback Plan
Restore previous crontab from backup and disable newly added job entries if side effects occur.
Prevention & Hardening
Standardize script wrappers with explicit environment and centralized logging.
Related Errors & Cross-Refs
command not found in cron, permission denied, and silent task failures.
Related tutorial: View the step-by-step tutorial for Ubuntu 18.04 LTS.
View all Ubuntu 18.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
man 5 crontab, man cron, and systemd timer migration notes.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.