Use this when a workflow run fails and you must find the failing step and cause.
Workflow Troubleshooting
Troubleshoot workflows by opening the run history at the failed step, checking its inputs and outputs, the previous step's data, credentials of the integration and conditions that changed the path.
1. Check failing step logs, inputs and dependencies.
2. Engine issues: workers, queues, state store.
3. Timeouts vs errors.
4. Resume rather than restart if supported.
5. Add tests.
run → failed step → cause → fix → resume
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
journalctl --since "-30 min" | grep -Ei "workflow|step|job|task|error|fail"Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good requires the original workflow version to reach the intended terminal state, every required node/postcondition to be satisfied, and no duplicate/partial resources left from retries. Exercise a bounded failure/retry path when practical. A green final workflow status is not sufficient if task outputs were ignored; verify the external target state that the workflow was meant to change.
Step 2 Command read-back and what it shows Verify boundary
Known-good is the intended workflow instance follows the expected path, all mandatory steps reach completed/succeeded, no unexpected retries remain and the original external objective is independently verified; broken state is missing trigger, stuck waiting/running state, repeated retries/failed step, wrong branch or a succeeded run with absent/incorrect external side effect. Workflow logs show orchestrator state transitions only; they do not show external systems committed every requested side effect or that the business outcome is healthy.
Step 3 Common mistakes Narrow the fault
- No per-step logs.
Step 4 Native failure isolation and next-check logic Narrow the fault
Identify workflow/run ID, version and first failed or waiting node. Inspect its inputs, dependency outputs, credentials and native task error rather than only the top-level status. Determine what earlier tasks already committed and whether retry starts at the failed node or replays the graph. For approval/wait states, verify timeout and callback/event delivery. Use checkpoints and explicit compensation for partial state; do not restart the entire workflow until duplicate-change risk is understood.
Step 5 Observation-driven branch and next-check logic Narrow the fault
If no workflow instance/trigger appears, inspect input/event/definition activation; if instance exists but is waiting/stuck, inspect current step, dependency/approval and retry timer; if a step fails, inspect first failure and its input/output; if success without outcome requires external read-back.
- Start at the failed step.
- Check its inputs and outputs.
- Check integration credentials.
- Failed run details (step, error) — cause
- Engine logs — platform issues
- Re-run single step/resume — recovery
ReferenceHow it works2 sections · depth on demand
How it works
Workflow engines coordinate dependent tasks, branching, retries, approvals, checkpoints and compensating actions. Failure state therefore belongs to a specific node/transition, while the overall workflow may be running, waiting, failed or partially completed. Retrying an upstream non-idempotent task can duplicate changes if the engine lacks checkpoint-aware semantics.
How it works
Workflow Troubleshooting is governed by workflow definition/version, orchestration state machine, step/task execution and external-system side effects. A workflow transitions through queued/running/waiting/succeeded/failed states while passing outputs between steps and applying retry/branch/compensation rules; the orchestrator owns control flow while external systems own side effects. Worker capacity, secrets, event inputs, API quotas, human approvals and compensation/rollback paths are distinct boundaries. The important state separation is that a workflow can be running while blocked on an approval or external callback, and a succeeded workflow can still require independent verification of external side effects.
ReferenceImportant terms & boundaries2 sections · depth on demand
Platform, version and operating-envelope scope
CI/CD runner, action/plugin and target deployment semantics are product/version specific.
Method
Workflow troubleshooting finds the first task where the run diverged from expectations.
1. Open the run history and locate the first failed or skipped task.
2. Check that task's inputs — were outputs from earlier tasks passed correctly?
3. Read the task's own log and exit status.
4. Check conditions and branches: did a condition evaluate unexpectedly?
5. Check external dependencies: credentials, target reachability, rate limits.
6. Rerun from the failed task if the engine supports it, otherwise rerun with the same inputs.
| Symptom | Likely cause |
|---|---|
| Task skipped unexpectedly | Condition used wrong variable or type |
| Later task gets empty value | Output not exported/named differently |
| Run stuck | Waiting for approval or lock |
| Intermittent failures | Timeouts, rate limits, race between parallel branches |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Workflow Automation > Workflow Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%