Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Scheduler Troubleshooting

Direct 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.

When to use this

Use this when scheduled jobs don't run or fail.

First 30 seconds

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.

Operational verification

schedule → trigger → environment → job → result

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
job scheduling and timer semantics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformjob scheduling and timer semantics · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior. · Linux / systemd
Key commandsystemctl list-timers --all --no-pager
Scope / prerequisiteUse this when scheduled jobs don't run or fail.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.
Key points
  • First check whether the job started.
  • Then check user, environment and paths.
  • Time zone mistakes shift runs.
Key checks
  • journalctl -u <svc> --since -1d — job logs
  • systemctl status <timer> — next/last run
  • Get-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
SymptomCommon cause
Runs an hour offTime zone or DST
Never runsDisabled, wrong user, host asleep
Runs but failsDifferent PATH/environment than interactive shell
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docjob scheduling and timer semantics current

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%
Confirmation

Confirm action

Continue?