Troubleshoot a run
Every failed run tells you why, in two places: the Terminal Reason in the run’s details, and the step-level record in its Execution Log. Start with the reason, confirm in the log, and match what you find against the tables below.
Reading a failed run
Open the agent’s page and choose the run from its Run History. The run’s header shows Run and the first characters of its ID (with a button to copy the whole ID), its state, and the Trigger, Scheduled For, Duration, Started, Finished, and Model — plus the Terminal Reason for anything that didn’t succeed. The Execution Log below it replays the run: its Summary tab shows each step’s status and attempts, with its input, result, and error, any pauses, and the Failure report naming which step broke and after how many attempts; the Raw log tab shows the run turn by turn, retries included.
Terminal reasons
| Reason | What happened | What to do |
|---|---|---|
| Step ”…” failed: … or N steps failed, starting with ”…”: … | A step used up its attempts; the reason quotes its last error. | Read that step in the log, then match the error against the step errors below. |
| The AI model … wasn’t reachable, so the run stopped. (or returned an error / stayed rate-limited) | The model failed on every attempt, so the remaining steps were not run. | Check the provider’s status and the organization’s provider access; see Provider errors below. |
| Plan validation failed: … | The saved plan’s graph was invalid, so nothing ran. | Re-open the plan with Edit and re-save it. |
| Approval expired without resolution | A tool needed approval and nobody answered within an hour. | Approve faster, schedule when the owner is around, or move the tool to Allow if it has earned it. |
| Skipped because another run for this schedule is already active. | The run was triggered — by the schedule, Run Now, or a webhook — while another was still going. | Usually fine. Chronic skips mean the plan is slower than the schedule — widen the interval or shrink the plan. |
| Agent execution failed: Execution idle for …ms; run aborted. | The agent went silent for 15 minutes mid-step. | Break long steps up, or check whether the tool call itself hung. |
| Run produced no progress for too long; abandoned by the scheduler. | The run stalled for 6 hours without changing state — usually after a platform interruption. | Run it again; if it recurs, get help. |
| Approval was never resolved; run abandoned by the scheduler. | Paused on a human — most often a question from a server — for 7 days. | The run is closed; resolve why nobody was watching. |
| One or more internal steps ended in an error state. | The run finished but a step inside it failed. | Open the failure report in the Execution Log for the step and error. |
| Identity assumption failed: … or Session creation failed: … | The run could not start (Dispatch Failed). | Usually the owner’s access changed since save — re-save the agent; if it persists, ask an administrator. |
| Stopped by user from the dashboard. | Someone stopped the run with Stop (Canceled). | Nothing to fix. |
Common step errors
“Missing … credential. Add the … API key in your organization’s secrets.” — the organization has no key for the model provider this agent uses. An administrator adds one under Settings → Access. With LiteLLM, the message instead asks you to connect your own virtual key under Settings → Providers.
“Your organization doesn’t allow or deny use of the ”…” tool.” — no policy on your roles grants the tool. “An organization policy blocks the ”…” tool.” — a policy explicitly denies it. Either way the denial is also an audit event, and if the agent genuinely needs the tool, an administrator sets it to Allow or Approve in Settings → Policies. Lunen couldn’t check whether the ”…” tool is allowed. Try again in a moment. is a transient failure, not a policy decision.
“Tool ”…” is not available in this session.” — the plan names a tool the run couldn’t reach, for example because its server was disabled or failed to connect after the plan was saved. The step fails without retries. Check the server in the MCP Registry, have a registry manager refresh its tool list from the policy editor, and re-save the plan.
“Reconnect … to continue.” — a service credential stopped working mid-run. The run pauses rather than fails, and you get a Connection Required notification: open the session, reconnect the service, and the run resumes where it stopped. See Credentials.
“MCP tool call timed out after 180s.” — the upstream server took longer than three minutes on one call. Retry accounting applies as normal; chronic timeouts are an upstream problem worth raising with whoever runs the server.
“Scheduling blocked by policy” (at save time) — you lack permission for the agent, a provider, or a tool the plan uses. The message names which. An administrator can grant it, or the plan can drop the tool.
Provider errors
Model providers rate-limit and meter. In a run, a rate limit is waited out on its own — up to 30 minutes per step, without spending an attempt — and other model failures land in the step’s error as The AI model returned an error. or The AI model wasn’t reachable., followed by the provider’s own message. A quota exceeded message means the provider account itself needs attention — ask an administrator to check the plan or billing. A brand-new organization hitting credential errors on its first run almost always has a mistyped provider key — API keys are not validated when saved.