Resolution
Most scheduled runbook triggers that run early, late, or not at all are caused by the trigger's configuration rather than by an Octopus issue. To troubleshoot this behavior, first check the trigger configuration: it is enabled, it targets a runbook with a published snapshot, its environments and tenants are still valid for that runbook, its time zone matches the expected one, and its schedule can produce a future occurrence. If the configuration is correct, verify that the task queue is processing tasks and that the Process recurring scheduled triggers system task is not stuck.
Symptom
You see one or more of the following:
- A scheduled runbook trigger never creates a runbook run.
- Runs happen at the wrong local time, often offset by a whole number of hours.
- A trigger that used to run has stopped.
- A run starts immediately, or within a minute or two, after someone edits the trigger's schedule.
- Runs still appear after the trigger was disabled.
When Octopus can't create a scheduled run, it records an error against the trigger in the Process recurring scheduled triggers system task, which can be found in the UI Tasks. The message follows this pattern:
Info | Processing trigger [Trigger Name](~/app#/Space-##/projects/Projects-##/triggers/scheduled/edit/ProjectTriggers-##)...
Error | A scheduled <Runbook name> (Runbooks-###) failed to run on <Environment name> (Environments-###) environment
<reason>
For example:
03:00:14 Info | Processing trigger [Daily Sync](~/app#/Spaces-1/projects/Projects-1/triggers/scheduled/edit/ProjectTriggers-1)...
03:00:15 Error | A scheduled runbook failed while attempting to run a runbook
| Failed to find latest version for package Projects-2
| Octopus.Core.Model.Exceptions.DomainException: Failed to find latest version for package Projects-2
Scope: when this is the right article
Use this article when:
- The trigger is a scheduled runbook trigger, created in Operations ➜ Triggers.
- The problem is about when the trigger fires, or whether it fires.
This isn't the right article when:
- The runbook run is created at the right time but fails during execution. Troubleshoot the task log for that run instead.
- The trigger is a scheduled deployment trigger (Project ➜ Triggers). The schedule logic is the same, but release selection rules differ.
- The trigger is a webhook trigger.
- A run starts immediately after a disabled trigger is re-enabled. That behavior is covered in a separate article, linked under Related.
Cause
Every schedule option on a scheduled trigger is stored and evaluated as a CRON expression in the time zone selected on the trigger. A system task, Process recurring scheduled triggers, regularly checks which triggers are due and queues a runbook run for each one. A trigger misses its expected time when one of the following is true:
- The trigger isn't eligible. It's disabled, its runbook has no published snapshot, or its environments or tenants are no longer valid for the runbook.
- The schedule doesn't mean what the author expected. The time zone differs from what they assumed, the expression uses a different CRON format, or the expression can never produce a future occurrence.
- The run was queued but couldn't start. The task queue is paused because nodes are draining or have a task cap of 0, the instance was in maintenance mode or within a maintenance window, or the run is waiting on an approval.
- The scheduler itself isn't processing. The Process recurring scheduled triggers task is stuck in the task queue.
- Something the trigger depends on changed. The runbook, its snapshot, its environments, tenants, runbook tags, or prompted variables changed after the trigger was created.
Diagnosis and fix
The following checks should help investigate and resolve the issue. Each one is safe to run and doesn't change your configuration unless the step says otherwise.
1. Confirm the trigger is enabled and attached to the intended runbook
- Open the project and go to Operations ➜ Triggers.
- Find the trigger and confirm it isn't shown as disabled.
- Open the trigger and confirm the runbook selection:
- Select specific runbooks: check that the expected runbook is still listed. A renamed or re-created runbook isn't the same runbook.
- Select by tags (Octopus 2026.1.7523 and later): Octopus matches runbooks against the tags at the moment the trigger fires. Open the runbook and confirm it still has the tag. If someone removed or renamed the tag, the trigger silently stops including that runbook.
- Open the runbook and confirm it has a published snapshot. Scheduled triggers only run published snapshots, never drafts. For VCS/Config as Code runbooks, the trigger runs the runbook from the latest commit on the default branch, so confirm the runbook exists and is valid on that branch.
2. Confirm environments and tenants are still valid
- On the trigger, note the target environments and, if the project is tenanted, the selected tenants.
- Open the runbook's settings and confirm the runbook is allowed to run in each of those environments.
- For each tenant on the trigger:
- Confirm the tenant is still connected to the project.
- Confirm the tenant is connected to the environment the trigger targets. The runbook runs against the tenant's environment, so a tenant without that environment has nothing to run against.
- Confirm the runbook's multi-tenancy setting matches the trigger. A trigger that selects tenants needs a runbook that can run tenanted.
3. Confirm the time zone and interpret the offset
- Open the trigger and note the selected time zone. Each trigger has its own time zone, independent of the Octopus Server's system time and of the browser's time zone.
- Write down the expected run time in the trigger's time zone, then convert it to UTC.
- Find an actual run (step 6 shows how) and compare its queue time in UTC with the expected UTC time.
- Use the size of the gap to narrow the cause:
- Gap equals the difference between two time zones: the trigger was set to the wrong time zone, often UTC or the server's zone instead of the team's local zone.
-
Gap of exactly one hour that started or stopped on a specific date: a daylight saving transition. Choose a named region time zone (for example,
America/Los_Angeles) rather than a fixed UTC offset if you want the run to follow local clock time year-round. - Gap that matches your browser's offset from UTC: the run time is probably correct, and the UI is displaying it in your local time. Compare in UTC before changing anything.
- If the time zone is wrong, edit the trigger, select the correct time zone, and save.
4. Confirm the schedule can produce a future run
All schedule options (daily, per-month, and CRON) are stored as CRON expressions. A CRON expression in Octopus has 6 required fields, starting with seconds, plus an optional 7th Year field:
Seconds Minutes Hours Day-of-month Month Day-of-week [Year]
0 0 06 * * SUN-SAT
This example runs at 06:00 Monday through Friday, in the trigger's time zone.
Check the expression for these common mistakes:
-
A 5-field expression copied from Linux
cron. Octopus reads the first field as seconds, so every field shifts one place to the left.30 2 * * *doesn't mean "02:30 daily" in Octopus. Add a leading0for seconds:0 30 2 * * *. -
A day that never exists. For example,
0 0 0 30 2 *(February 30) or0 0 0 31 4 *(April 31) never fires. - A year in the past, or outside the supported range. If the expression includes a Year field, every listed year must be in the future and in the allowed range (1970–2099 for runbook triggers).
-
Day-of-week numbering. Octopus accepts
0-6orSUN-SAT, where0is Sunday. A value such as7, which some cron tools accept as Sunday, isn't valid here. -
Day-of-month and day-of-week both restricted. If both fields have values, confirm the combination is what you want. Use
?in the field you don't care about.
To check whether a future occurrence exists, list the next three occurrences by hand, or run the expression through a 6-field (Quartz-style) CRON calculator using the trigger's time zone. If you can't produce a future date, the trigger never fires. Correct the expression and save the trigger.
5. Confirm the scheduler and task queue are processing
-
Go to Tasks and check whether other tasks, such as deployments, health checks, and manual runbook runs, are starting normally. If nothing starts, the initial problem lies with the task queue, not the trigger.
-
Self-hosted only: go to Configuration ➜ Nodes and confirm that no node is in drain mode and that each node's task cap is above 0. Drain mode or a task cap of 0 stops nodes from starting queued tasks.
-
Self-hosted only: go to Configuration ➜ Maintenance and confirm the instance isn't in maintenance mode.
-
Octopus Cloud only: check whether the missed time fell inside your instance's maintenance window. Tasks scheduled to start during an outage run late rather than on time after the instance comes back.
-
Check whether the Process recurring scheduled triggers system task is stuck in the
Queuedstate. This task queues all scheduled trigger runs, so if it's stuck, no scheduled trigger in the instance fires. You can look for this task in the UI under Tasks, or query it with the REST API:
curl "https://<your-octopus-url>/api/tasks?spaces=all&states=Queued&name=RecurringScheduledDeployments" \
-H "X-Octopus-ApiKey: <API_KEY>"
A healthy instance returns no long-waiting results. If a result has a queue time well in the past, cancel that task in the UI or via the API:
curl -X POST "https://<your-octopus-url>/api/<SpaceId>/tasks/<ServerTaskId>/cancel" \
-H "X-Octopus-ApiKey: <API_KEY>" -d ""
Triggers usually resume within a minute or so of cancelling the stuck task. Cancelling this system task is safe. Octopus queues a new one automatically.
6. Collect evidence from task history and audit
- Go to Tasks, filter Task type to Runbook run, and filter by project and environment. This view also shows runs that don't appear on the runbook's own Runs tab.
- For each run near the expected time, record:
- The task ID (
ServerTasks-###) - The queue time, start time, and completed time, in UTC
- The task state (queued, executing, success, failed, cancelled)
- Compare the queue time with the expected time:
- Queue time is correct, start time is late: the trigger worked. The run waited in the queue. Go back to step 5.
- No run was queued at all: the trigger didn't fire. Continue with this step.
- Go to Configuration ➜ Audit and filter by the project and a time range covering the missed run. Look for:
- Changes to the trigger: created, modified, enabled, or disabled
- Changes to the runbook: snapshot published, environments changed, tags changed, runbook deleted or re-created
- Changes to tenants, tenant connections, or environments
- Errors recorded against the trigger, such as a failed scheduled run
-
Self-hosted only: open the Octopus Server log (
OctopusServer.txtin the server'sLogsfolder) on each node and search around the expected time for the trigger name or forscheduled.
7. Troubleshoot a trigger that used to run and has stopped
Find the date of the last successful scheduled run in Tasks, then look for anything that changed on or just before that date. Check each of the following in Configuration ➜ Audit:
- Trigger changes: a schedule, time zone, environment, or tenant edit, or the trigger was disabled.
- Runbook changes: the runbook was renamed, deleted and re-created, moved, or lost its published snapshot. For VCS/Config as Code runbooks, check commits to the default branch, including a change to which branch is the default.
- Tag changes: if the trigger selects by tags, a runbook tag was removed or renamed.
- Project changes: the project was disabled, moved to another space, or converted to VCS/Config as Code.
- Tenant and environment changes: a tenant was disconnected from the project or environment, or an environment was deleted.
- Prompted variables: a required prompted variable with no default value was added to the runbook. A scheduled run can't answer the prompt, so the run fails to start. Give the variable a default value, or make it optional.
- Server changes: an Octopus upgrade, a node added or removed, or a change to server time zone settings. After an upgrade, check step 5 for a stuck Process recurring scheduled triggers task.
Fix the change you find, then wait for the next scheduled occurrence.
8. Explain a run that starts immediately after a schedule change
When you save a schedule change, Octopus calculates the trigger's next occurrence from the new schedule. If that occurrence is due now, or is already in the past relative to the scheduler's last check, the trigger fires on the scheduler's next pass. That's usually within a minute or two of saving.
For example, it's 14:05 and a trigger runs daily at 09:00. You change it to run every hour, starting at 14:00. The 14:00 occurrence is already overdue, so a run starts almost immediately.
To confirm this is what happened:
- In Configuration ➜ Audit, find the time the trigger was modified.
- In Tasks, find the unexpected run and confirm its queue time is shortly after the modification.
- Using the new schedule and the trigger's time zone, confirm an occurrence fell at or before the save time.
To avoid an unwanted run, set the new start time to a time later than the moment you save, or disable the trigger, make the change, and re-enable it after the overdue time has passed. Be aware that re-enabling has its own behavior, covered in the article linked under Related.
9. Diagnose runs that continue after the trigger is disabled
Disabling a trigger stops Octopus from queuing new runs. It doesn't cancel runs already queued or executing. To work out which you're seeing:
- In Configuration ➜ Audit, find the exact time the trigger was disabled.
- In Tasks, filter to Runbook run for the project and find each unexpected run.
- Compare each run's queue time with the disable time:
- Queued before the disable time: the run was already in the queue. It may have waited because of a task cap, drain mode, maintenance, or an approval or change window. Cancel it from the task page if you don't want it.
- Queued after the disable time: something else queued it. Check the next step.
- Look for another source of the run:
- Another scheduled trigger on the same runbook, such as a cloned trigger, or a tag-based trigger whose tags match this runbook.
- A webhook trigger on the runbook.
- An external scheduler, pipeline, or script calling the Octopus API or CLI. Scheduled trigger runs are queued by the system rather than by a named user or API key.
- A different project or space with a similarly named runbook.
Known issues that cause wrong timing
If configuration checks don't explain the behavior, compare your version against these previously fixed issues:
- Runs queued at the wrong time for negative-offset time zones (introduced in 2023.3.9164): for example, a trigger set to 04:00 UTC-5 ran at 09:00. See GitHub issue #8320.
- Interval triggers fire at the top of the hour in addition to the configured interval. See GitHub issue #8525.
- All scheduled triggers stop after an upgrade (2024.1.1020) because the Process recurring scheduled triggers task is stuck. See GitHub issue #8485.
If you're on an affected version, upgrade to a version that includes the fix.
Information to gather before contacting support
If the behavior is still inconsistent, send Octopus Support the following. This information helps us reproduce the schedule and quickly diagnose the behavior or identify any issues:
- Octopus Server version, and whether the instance is Octopus Cloud or self-hosted. For self-hosted, include the number of nodes.
- The trigger's full configuration: schedule type, CRON expression, time zone, runbook selection (specific runbooks or tags), environments, and tenants. A JSON export of the trigger from the
/api/Spaces-##/projecttriggers/ProjectTriggers-##API endpoint is ideal. It contains no sensitive values. - Whether the runbook is VCS/Config as Code, and if so, the default branch name.
- The expected run times and the actual run times, both in UTC, for at least two occurrences.
- Task IDs (
ServerTasks-###) for the runs you're asking about, with their queue, start, and completed times. - An export from Configuration ➜ Audit covering the trigger, runbook, and project for the period in question.
- The result of the Process recurring scheduled triggers task query in step 5 of Diagnosis and fix.
-
Self-hosted only: node drain and task cap settings, whether maintenance mode was on, and the
OctopusServer.txtlogs from every node covering the expected run time. - Any recent changes: upgrades, node changes, schedule edits, tag changes, or tenant changes.
Verify
- Open the trigger and confirm it's enabled, has the correct time zone, and targets the intended runbook, environments, and tenants.
- Calculate the next occurrence in the trigger's time zone and convert it to UTC.
- After that time passes, go to Tasks, filter to Runbook run, and confirm a run was queued within a minute or two of the expected UTC time.
- Confirm the run used the published snapshot you expected (or, for VCS/Config as Code, the latest commit on the default branch).
- For a recurring schedule, confirm at least one more occurrence runs on time before closing out the issue.
Related
- Scheduled runbook triggers documentation: how to create triggers, schedule options, runbook selection by tags, and the full CRON field reference.
- Scheduled deployment triggers documentation: the equivalent trigger for deployments, which uses the same schedule options.
- Maintenance mode documentation: what happens to queued and running tasks while a self-hosted instance is in maintenance mode.
- Octopus Cloud maintenance windows: how tasks scheduled during a Cloud outage are handled when the instance comes back.