Pcornel
Automation · Scheduling

Scheduler Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5358

Back to the Topic

Answer

Troubleshoot schedulers by checking whether the job actually started (scheduler log or history), the environment and user it runs as, paths and permissions, time zone and the job's own log.

Remember

  • First check whether the job started.
  • Then check user, environment and paths.
  • Time zone mistakes shift runs.

First checks

  • journalctl -u <svc> --since -1d — job logs
  • systemctl status <timer> — next/last run
  • Get-ScheduledTaskInfo <n> | fl LastTaskResult — Windows result

Commands

systemctl list-timers --all --no-pager
Read-only/validation observation for timer unit identity, next/last trigger time and associated service unit.
systemctl list-timers
journalctl -u cron

Verify in this order

schedule → trigger → environment → job → result

Where it usually breaks

Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5358

Confirmation

Confirm action

Continue?