Skip to content
FunCoding

Automation troubleshooting

Command ladder and fixes for jobs that do not fire or do not deliver

A command ladder and the common failure shapes for scheduled jobs. Part of the Automations guide.

Troubleshooting

Command ladder

openclaw status
openclaw gateway status
openclaw automations status
openclaw automations list
openclaw automations runs <jobId> --limit 20
openclaw automations show <jobId>
openclaw logs --follow
openclaw doctor
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 a trigger. Remove trigger for an ordinary reminder. If the condition is intentional, use a recurring every or cron schedule instead. Rejected requests do not create a job; correct the named field before retrying.
Automations not firing
  • Default cron partition selection is unresolved means older state was moved before its default partition was recorded. The Gateway continues running, but cron waits for an explicit choice. Run openclaw doctor --fix interactively, review the partition inventory, choose Select the default cron partition, then restart the Gateway. --yes and noninteractive runs leave the choice unresolved. Upgraded state retains its recorded partition when moved or restored to another directory.
  • Check the cron.enabled config setting and OPENCLAW_SKIP_CRON in 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.
  • cron: queue drain delayed after 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 --all to find disabled jobs and openclaw doctor to inspect recorded auto-disable reasons. A failed run disables a job only when it can never run as written: repeated schedule errors (schedule-errors), or a recorded account that was removed, signed out or replaced (account-unavailable, below). Fix the cause before running openclaw 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 cron schedules, verify timezone (--tz) vs the host timezone.
  • reason: not-due in run output means the manual run was checked with openclaw automations run <jobId> --due and 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>.
  • Automation has no recorded inference account means an older job has not adopted a stored account yet. Run openclaw doctor --lint to inspect missing bindings; add --all to include unavailable profiles referenced by saved account order. Use openclaw gateway call models.authStatus --params '{"agentId":"<agentId>"}' to find available profile IDs while the Gateway runs. An authorized operator can record the intended account with openclaw automations edit <jobId> --model <provider/model>@<profileId>. For an agent-turn job, this also sets the primary model. For a main-session system event, specify the session’s current model to bind only the account and keep the system-event payload. For eligible host-managed accounts, openclaw doctor --fix backs up cron state and records the account the next unbound run would use (an explicit selection, or the first account in the normal account order) without pinning inherited models or changing fallbacks. Doctor also adopts eligible stored accounts for saved main-session system events, including accounts imported from literal provider keys. When several accounts are eligible, Doctor names the others and how to change the selection; if the account is unavailable or personal, Doctor names the job and the required action. Doctor also handles explicitly selected Codex runtimes that use host-managed accounts, recording the runtime with the account. Agent-turn jobs targeting the main session, CLI runtimes, model-locked sessions, and other explicitly selected plugin runtimes are left unchanged; use the explicit edit command for a compatible stored account. A job on an environment or provider-config key keeps that key and needs no adoption; it stops instead of switching once a stored account becomes eligible. The refusal ends the run without trying fallback models. Automation history keeps the full refusal, and direct chat failure alerts name the repair without exposing the stored account. Owner-conversation repair requests still carry the full error. Recurring jobs stay enabled and use normal error backoff and failure-notification policy until the account is recorded. Startup also checks unbound Codex-runtime jobs that would use a stored account. CLI-native login and configured credentialless inference do not require adopting a host profile. When the CLI selector chooses a stored profile, Doctor and lint name the job, runtime, model, and selected profile. Startup checks the initial inventory in the background with a five-second aggregate budget and reports how many jobs were not checked if time runs out; use openclaw doctor --lint for the complete check. Scheduled CLI runs never borrow that account automatically, and doctor --fix leaves the job unchanged. For an agent-turn job, use the suggested edit command to adopt the account or select anthropic/<model>@anthropic:claude-cli to use Claude CLI's native login. For a system event, select a model with an eligible host-managed account in the owning main session, then run openclaw doctor --fix. Other turns in that session also use the selected model. OpenClaw never forwards stored credentials on that native-only path. Doctor does not infer historical account ownership from the last model in run history.
  • Automation <name> (<id>) runs <provider> on account <profileId> and can't run it on runtime <runtime> means a model on the job's recorded provider would run on a runtime (for example a CLI login) that can't use the job's stored account. Models on other providers aren't affected; they select their account live. Select a host-managed runtime compatible with that account, or deliberately adopt another stored account with the command the message prints, openclaw automations edit <id> --model <provider/model>@<profileId>. To deliberately use Claude CLI’s native login, select anthropic/<model>@anthropic:claude-cli with the same edit command. This clears the stored account only when the job can actually run on Claude CLI; an incompatible recorded runtime still refuses the change. The job keeps its history, owner and tool cap. Doctor leaves existing bindings unchanged. See Inference account continuity.
  • Automation <name> (<id>) runs on account <profileId>, which was signed in again or replaced or … which was removed or signed out means the job's recorded account changed. Only that provider's models are refused; configured fallbacks on other providers still run, and a run they finish stays ok. To keep using the account, run the printed openclaw automations edit <id> --model <provider/model>@<profileId> command. If the account was removed and the model now uses an environment or provider-config key, an explicit plain-model edit can release the dead binding. If the primary account is gone and the other attempts all report missing models, the run reports the account failure and tells you how to rebind it. The job stays enabled because another provider may serve its fallback later. When every attempt was blocked by the recorded account, the job is auto-disabled after that run (reason account-unavailable, shown as disabled (account)) and sends one notice with the repair: sign in again if needed (openclaw models auth login --provider <provider>), record the account with the edit command, then run openclaw automations enable <id>. The notice appears in the owner conversation even when that conversation's own model can't run. A fallback on another provider that failed for a reason that can pass keeps the normal retry schedule, and a short interruption of the account store disables nothing. See Inference account continuity.
  • A run can finish ok after an exec call fails and the agent replies. Check diagnostic: in openclaw automations show <jobId> or diagnostics in run history; unresolved exec failures produce a warning without exposing command arguments.
  • Automation migration is incomplete; run openclaw doctor --fix means 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 loaded differs from account not listed, and no scope means 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 --account does 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 channel means 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 status counts these jobs as reauthorizationRequired, and each affected job's details and list entries flag reauthorizationRequired: 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's tools to 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 --account does not change creator authority.
Job fired but no delivery
  • followup queue: input withheld; refusing replay means 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's withheld notice 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 none means no runner fallback send is expected. The agent can still send directly with the message tool 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.to room IDs can fail because Matrix room IDs are case-sensitive. Edit the job to the exact !room:server or room:!room:server value 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, or channel_transform). This is separate from lastDeliveryError / 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_REPLY suppresses 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 sessionStartedAt or lastInteractionAt.
  • For legacy rows created before those fields existed, OpenClaw can recover sessionStartedAt from the transcript JSONL session header when the file is still available. Legacy idle rows without lastInteractionAt use that recovered start time as their idle baseline.
Timezone gotchas
  • Cron expressions without --tz use the gateway host timezone.
  • at schedules without timezone are treated as UTC.
  • Job activeHours has its own timezone (user, local, or an IANA zone), independent of the cron expression's --tz.