On this page
On this page
Automation
Automation troubleshooting
A command ladder and the common failure shapes for scheduled jobs. Part of the Automations guide.
Troubleshooting
Editing an automation from chat
With automation access, you can edit any automation you own or created from any chat. You do not need to own the chat, return to the original chat, or recreate the job. In a channel or group, use the account linked to your OpenClaw profile.
If an explicit tool policy disables automations in that chat, use Edit on the Automations page. If the job is not yours, ask its owner or creator.
Command ladder
Reminder creation rejected
- Empty delivery targets are rejected before normalization. Supply a valid target, or omit the unused optional object (for example,
delivery.failureDestination) instead of filling its fields with empty strings. - A one-time
schedule.kind: "at"cannot have atrigger. Removetriggerfor an ordinary reminder. If the condition is intentional, use a recurringeveryorcronschedule instead. Rejected requests do not create a job; correct the named field before retrying.
Automations not firing
Default cron partition selection is unresolvedmeans older state was moved before its default partition was recorded. The Gateway continues running, but cron waits for an explicit choice. Runopenclaw doctor --fixinteractively, review the partition inventory, choose Select the default cron partition, then restart the Gateway.--yesand noninteractive runs leave the choice unresolved. Upgraded state retains its recorded partition when moved or restored to another directory.- Check the
cron.enabledconfig setting andOPENCLAW_SKIP_CRONin the Gateway's launch environment. Either can disable automatic runs; clear both disable settings and restart the Gateway to enable scheduling. - Confirm the Gateway is running continuously.
- If you delete an automation before its queued run starts, the run is skipped without sending a retry message to its chat.
cron: queue drain delayedafter Gateway resume means a queued run could not be activated, for example because a storage write failed. The Gateway stays running and the request remains queued; inspect the accompanying error and repair the storage problem. A manual run still reports its storage error to the caller.- Use
openclaw automations list --allto find disabled jobs andopenclaw doctorto inspect recorded auto-disable reasons. A failed run never disables a job; only repeated schedule errors do. Fix the cause before runningopenclaw automations enable <jobId>. Operator cancellations and restart interruptions remain visible in run history, but do not increase consecutive failures or trigger failure alerts or automatic repair. A job failure completed before webhook delivery was interrupted still counts. Enabled, unchanged time-scheduled agent-turn jobs interrupted before delivery retry once through cron, including one-shots. Other interrupted one-shots stay disabled to avoid replaying uncertain work; inspect their history before continuing manually. - A job disabled without an auto-disable reason may have paused because the conversation that created it was removed or archived, or lost its worktree. Its run history shows the skip reason and names the conversation. Restore the conversation, or accept running without it, before running
openclaw automations enable <jobId>. - For
cronschedules, verify timezone (--tz) vs the host timezone. reason: not-duein run output means the manual run was checked withopenclaw automations run <jobId> --dueand the job was not due yet.- If the job's execution agent cannot be resolved, automatic and manual attempts record a failed task and a skipped run-history entry with the reason. Select an agent with
openclaw automations edit <jobId> --agent <id>. - Scheduled runs use the same account selection as chat turns of their agent. If the provider has no usable account, sign in or configure a provider key. To pin an agent-turn automation to a specific account, use
openclaw automations edit <jobId> --model <provider/model>@<profileId>. See Inference account continuity. - A run can finish
okafter an exec call fails and the agent replies. Checkdiagnostic:inopenclaw automations show <jobId>ordiagnosticsin run history; unresolved exec failures produce a warning without exposing command arguments. Automation migration is incomplete; run openclaw doctor --fixmeans a converted monitor still has pending migration work. Complete Doctor's reported repair before running it.- If a capped job's stored named creator account is unavailable, the run fails before model/tool execution. The error names the channel and account it checked. Compare the process registry with the job's scoped registry:
plugin not loadeddiffers fromaccount not listed, andno scopemeans there was no scoped registry to check. An account listed only in the scoped registry does not authorize the run. Check the named channel before changing its configuration; the delivery--accountdoes not change creator authority. Legacy jobs without account metadata keep their existing execution policy. Scheduled account "<account>" is unavailable: the job has no recorded creator channelmeans the job's account-scoped tool cap has no creator channel to check the account against: no creator origin is recorded, and the owner conversation is not a group or channel conversation (for example, a direct message). The origin can be missing because the job predates origin recording, or because a later change to its prompt, tools, schedule, or other executable behavior was made without fresh creator authorization (for example, an operator edit from the CLI), which clears the recorded origin. The run fails before model/tool execution. This check runs before the account list is read, so the error does not show whether the account is still configured.openclaw automations statuscounts these jobs asreauthorizationRequired, and each affected job's details and list entries flagreauthorizationRequired: true. Recovery: re-save the job's tool cap from the creator's authenticated turn in that conversation (for example, ask the agent to update the automation'stoolsto the same cap) to record a fresh origin, or recreate the automation from the intended account. If a later run reports the account unavailable without this reason, follow the previous entry. Changing the delivery--accountdoes not change creator authority.
Job fired but no delivery
followup queue: input withheld; refusing replaymeans a queued continuation lost its original authority and was consumed without running again. The log identifies the session, job, and run when known, and lists the recorded history/session-notice paths or explicit reasons a path was unavailable. Inspect the run history and the session'swithheldnotice before starting fresh authorized work; the original occurrence's result is preserved.- A session queue capacity error means the target cannot admit another turn. Let its existing work settle before retrying. Main-session system events stay running until their turn settles; a restart before adoption records one interrupted error without replaying the reminder.
- Delivery mode
nonemeans no runner fallback send is expected. The agent can still send directly with themessagetool when a chat route is available. - Delivery target missing/invalid (
channel/to) means outbound was skipped. - For Matrix, copied or legacy jobs with lowercased
delivery.toroom IDs can fail because Matrix room IDs are case-sensitive. Edit the job to the exact!room:serverorroom:!room:servervalue from Matrix. - Channel auth errors (
unauthorized,Forbidden) mean delivery was blocked by credentials. - When the dispatcher records intentional suppression, job state, run history, and finished events include
deliverySuppressionReason(empty,silent,heartbeat, orchannel_transform). This is separate fromlastDeliveryError/deliveryError; required delivery failures also log an error when they happen. - For text-only isolated announcements, only a completed final that trims to uppercase
NO_REPLYsuppresses the text and fallback queued summary. Lowercase, wrapped forms, and trailing tokens remain visible. See Silent token suppression for the leading-line form and media behavior. - If the agent should message the user itself, check that the job has a usable route (
channel: "last"with a previous chat, or an explicit channel/target). - With
delivery.target: "owner", no resolved owner DM means delivery is unavailable; it does not skip execution or fall back to the last group conversation.delivery.directPolicy: "block"intentionally suppresses DM delivery. Inspect and edit the job's delivery settings.
Automations or heartbeat appear to prevent /new-style rollover
- Daily and idle reset freshness is not based on
updatedAt; see Session management. - Automation wakeups, heartbeat runs, exec notifications, and gateway bookkeeping may update the session row for routing/status, but they do not extend
sessionStartedAtorlastInteractionAt. - For legacy rows created before those fields existed, OpenClaw can recover
sessionStartedAtfrom the transcript JSONL session header when the file is still available. Legacy idle rows withoutlastInteractionAtuse that recovered start time as their idle baseline.
Timezone gotchas
- Cron expressions without
--tzuse the gateway host timezone. atschedules without timezone are treated as UTC.- Job
activeHourshas its own timezone (user,local, or an IANA zone), independent of the cron expression's--tz.
Was this useful?