Use it when the symptom is “Timeout”: work through the layers in order and stop at the first one that fails.
Timeout · Automation Troubleshooting
Timeout isolates where an automation operation exceeded a defined deadline—queue, connection, handshake, server processing, polling, dependency, target convergence or acceptance—rather than simply increasing the global timeout.
1. Timeouts: slow targets, network issues, too-short limits, deadlocks.
2. Measure normal duration.
3. Check target health.
4. Adjust limits deliberately.
5. Add progress logging.
operation → exceeds timeout → abort → investigate
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
curl -sv --connect-timeout 5 --max-time 15 <url> -o /dev/nullPrimary 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 Operational evidence path Verify boundary
trigger → queue wait → connection/handshake → server request → dependency work → task execution → client deadline/cancel → late task state → target read-back → safe retry decision
Healthy evidence: phase-specific timing shows where latency accumulates, server task state is correlated, late completion is checked, and retries are safe and bounded.
Step 2 Telling causes apart Verify boundary
Known-good is the same operation completing within the defined stage and end-to-end timeout budgets with a successful result, while metrics/log timestamps show no hidden retry storm or backlog. Broken evidence is repeated expiry at a consistent stage or completion only after the configured deadline. A faster curl response shows the HTTP boundary improved, but it does not show the entire automation workflow meets its own timeout or completion contract.
Step 3 Common mistakes Verify boundary
- Timeouts set too short for slow devices.
- No timeout at all.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: global timeouts are repeatedly increased, operation IDs are absent, late completion is ignored, or retries overlap still-running work.
Step 5 Observation-driven branch and next-check logic Narrow the fault
Use curl -sv --connect-timeout 5 --max-time 15 <url> -o /dev/null for the affected HTTP boundary and note whether timeout occurs before connect, during TLS, before first byte or while waiting for completion. If connect is slow, inspect network/DNS/listener; if response starts quickly but backend work exceeds the orchestration deadline, inspect queue/task duration. Compare latency with a healthy request and review retry count/backoff before increasing timeouts. For non-HTTP jobs, collect equivalent stage timestamps around the same run ID.
Step 6 Where it fails Narrow the fault
Timeout or connection loss is ambiguous because work may continue after the client stops waiting.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Timeout ≠ operation definitely failed or stopped.
- Long duration ≠ timeout value is too small.
- Client cancellation ≠ server-side task cancelled.
- Retry after timeout ≠ duplicate side effects are impossible.
- Which step timed out — location
- Measured normal duration — baseline
- Target health/latency — cause
ReferenceWhat it is1 section · depth on demand
Core model
Capture configured and effective deadlines plus phase timings; identify whether the operation is queued, actively executing or stuck; correlate server/task state; compare normal baseline and tail latency; determine whether timeout cancellation is authoritative; verify possible late completion before retrying.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
Automation Timeout is a deadline crossing, not a root cause. It can be spent in DNS/connect, TLS/authentication, queue wait, server processing, polling, remote command execution or an external dependency. Client connect/max-time values define only one budget; job runners and APIs may have additional server-side or orchestration deadlines. Retrying without identifying which stage consumes time can amplify load and worsen the condition.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A timeout shows the caller did not obtain the expected completion signal within its deadline, but it does not show no change occurred or that the server stopped processing.
In depth
A timeout means an operation did not complete within its allowed time. In automation it can come from slow targets, network issues, too-short timeout settings, or operations waiting for something (a prompt, a lock).
| Timeout type | Example setting |
|---|---|
| Connect | ssh -o ConnectTimeout=10 |
| Read/command | Netmiko read_timeout, Ansible ansible_command_timeout |
| HTTP | requests.get(..., timeout=(5, 30)) |
| Job | CI job timeout-minutes |
Increase timeouts only for operations known to be slow (image copies, write memory), and investigate unexpected slowness instead of hiding it.
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 Automation Troubleshooting > Timeout. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Timeout troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for Timeout.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |