Troubleshoot Missed systemd Timer Runs
Before you begin
- Applies to:Linux hosts using systemd timers for system or user jobs.
- Where to start:Open a shell on the affected host. For user timers, use the affected user's session and run systemctl --user and journalctl --user.
- What you need:Have the exact timer name, expected run time, and expected job output. The examples use backup.timer and backup.service.
Guide tools
Troubleshooting Steps
Check whether the timer is loaded and waiting
Start hereLook at NEXT, LAST, and ACTIVATES. A listed next time does not establish job success. Confirm the timer is active and check whether its expected start-at-boot policy matches its enablement.
What you should see · The intended timer appears with a NEXT time for a recurring schedule and the expected unit in ACTIVATES.
If you see something else · If it is missing, check the exact timer unit name and whether it is loaded. If it is scheduled but the output is missing, check the effective schedule in Step 2 and the triggered unit’s logs in Step 3.
systemctl list-timers --all backup.timersystemctl status backup.timer --no-pagerRead the effective schedule
Inspect the unit and its drop-ins, including OnCalendar, Unit, and Persistent. Timer and service names can differ when Unit is set. Compare the expression against the intended time zone. Replace the example expression with the exact OnCalendar value.
systemctl cat backup.timersystemd-analyze calendar --iterations=3 'Mon..Fri 02:00 UTC'timedatectl statusCheck what happened after the trigger
Compare the relevant timer and service logs in UTC. Capture the timestamps and the service result. A currently inactive oneshot service can be normal after completion. Confirm the actual expected artifact or job record.
sudo journalctl --utc -u backup.timer -u backup.service --since '24 hours ago' --no-pagersystemctl show backup.service -p ActiveState -p Result -p ExecMainStatusExplain skipped or delayed runs
Check downtime, suspend, AccuracySec, and RandomizedDelaySec. Persistent applies to calendar timers and can catch up once when a timer is activated after a missed run. If the service is already active when the timer fires, systemd does not start a second instance.
Correct only the cause you verified
If a calendar expression or drop-in was wrong, restore the approved schedule and reload the manager. Plan activation so any catch-up is safe. If the timer triggered but the service failed, fix the service and preserve the timer’s existing schedule.
Verify a scheduled run
VerifyCheck that the next activation is in the intended window. After it fires, compare the service result with a fresh output artifact or job record. Restore the previous unit configuration and reassess missed or catch-up work if the revised schedule behaves unexpectedly.
Decide What to Do Next
| Finding | Next action |
|---|---|
| Timer is waiting but no run occurred | Review the effective calendar, downtime, and delays. |
| Service failed during activation | Investigate the service result before altering the calendar. |
References
Your feedback keeps these production procedures accurate and battle-tested.