Use this when scheduled jobs don't run or fail.
Scheduler Troubleshooting
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.
1. Not running: schedule syntax, timer disabled, scheduler down, time zone.
2. Failing: environment (PATH, user, permissions), dependencies.
3. Run manually as the same user.
4. Read logs.
5. Fix and verify next run.
schedule → trigger → environment → job → result
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
systemctl list-timers --all --no-pagerPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good means the scheduler fires at the intended next occurrence, launches under the intended identity/context, records a successful terminal result and the job's real postcondition is observed. Test restart/missed-run behavior if it matters operationally. A 'task completed' scheduler status shows process termination, not that the job achieved desired infrastructure state.
Step 2 Command read-back and what it shows Verify boundary
Known-good is the expected timer is loaded/active with correct next/last timestamps, its target unit runs successfully and the original scheduled postcondition is present; broken state is missing/disabled timer, wrong next activation, stale last trigger or target unit failures despite an apparently active schedule. systemctl list-timers shows scheduler/timer metadata only, but it does not show the triggered service completed or the downstream task achieved its objective.
Step 3 Native failure isolation and next-check logic Narrow the fault
Compare expected next/last run time in the scheduler's actual timezone with execution history. Determine whether the trigger fired; if not, inspect service health, disabled state, calendar/exclusion and misfire policy. If it fired but failed, reproduce under the exact run-as identity, working directory, environment and noninteractive constraints. For overlapping or stuck jobs, inspect concurrency lock and previous instance state before manually launching another copy. Preserve scheduler result codes separately from script/application logs.
Step 4 Observation-driven branch and next-check logic Narrow the fault
If timer is absent/disabled or next time unexpected, inspect unit/calendar/timezone; if timer is active but no recent trigger, inspect last/next and persistent/time state; if timer triggers but task fails, inspect target service status/journal and downstream dependencies.
Step 5 Common mistakes Narrow the fault
- Not checking the scheduler's own logs.
- First check whether the job started.
- Then check user, environment and paths.
- Time zone mistakes shift runs.
journalctl -u <svc> --since -1d— job logssystemctl status <timer>— next/last runGet-ScheduledTaskInfo <n> | fl LastTaskResult— Windows result
ReferenceHow it works2 sections · depth on demand
How it works
Schedulers own trigger calculation, timezone/calendar interpretation, job identity/environment, concurrency policy, execution history and retry/misfire semantics. A task can be correctly scheduled yet never run because the service/agent is down, credentials expired, a prior instance blocks overlap, or the host slept. Daylight-saving transitions and ambiguous local times can create duplicate or skipped runs.
How it works
Scheduler Troubleshooting is governed by timer/schedule definition, next-elapse calculation, scheduler activation and the triggered job/service result. Systemd timers calculate next activation from calendar/monotonic rules and trigger a target unit; timer state and target unit execution are separate, with persistence/randomized delay/time synchronization influencing when a job actually runs. System clock/timezone, timer enablement, target unit configuration, resource availability and downstream job dependencies are separate things to check. The important state separation is that an active timer does not show its service succeeded, and a successful service run does not show the next schedule is correct.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
Scheduler troubleshooting checks whether the job was triggered, started and finished, and why not.
1. Was it scheduled? Check the definition, time zone and next-run time.
2. Did the scheduler trigger it? Scheduler logs (journalctl -u cron, systemctl list-timers, Task Scheduler history).
3. Did the job start? Permissions, user context, missing executable.
4. Did it finish? Exit code, run time, overlapping runs.
systemctl list-timers --all
journalctl -u backup.service --since yesterday
Get-ScheduledTaskInfo -TaskName 'Backup' | Select-Object LastRunTime, LastTaskResult, NextRunTime
| Symptom | Common cause |
|---|---|
| Runs an hour off | Time zone or DST |
| Never runs | Disabled, wrong user, host asleep |
| Runs but fails | Different PATH/environment than interactive shell |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Scheduling > Scheduler Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html · confidence 94%