Troubleshoot a run
Start with the message you saw, then inspect the smallest set of run records that explains it.
1. Start with the symptom
Check the platform
Crewplane supports Linux, macOS, and WSL. Native Windows is not supported: process liveness and lock recovery rely on POSIX process checks. On Windows, run Crewplane inside WSL.
Find your symptom
Match the message, find the evidence, then open the relevant lesson.
Check the installation
Where to lookInstallation output and PATH
If crewplane: command not found appears, confirm installation completed and the command is on PATH. For npm installs, check the npm prefix path.
Select a workflow
Where to look.crewplane/workflows/
No workflow file found means default discovery found no top-level .task.md file. Run crewplane init or pass a workflow explicitly with --tasks.
Check provider availability
Where to lookagents.<name>.cli_cmd and PATH
CLI '<name>' not found in PATH for provider '<provider>' means a referenced agent’s executable is unavailable. For the built-in cli invoker, crewplane validate checks availability. Confirm agents.<name>.cli_cmd works on PATH, or use mock for provider-free validation.
Investigate a skipped run
Where to lookmanifests/run.json and matching results
Identical context detected means a usable successful run with the same workflow_signature was reused. Inspect its manifests/run.json and matching results. Resume advisory: would_skip predicts this during a dry run.
Understand the lock
Where to lookThe named lock folder under .crewplane/locks/
crewplane run creates a lock folder under .crewplane/locks/ so two runs with the same workflow, inputs, and settings cannot write simultaneously. Run lock unavailable means the lock exists or could not be created. A previous run may still be active, or may have stopped without removing its lock.
Configure quota detection
Where to lookThe node log containing provider output
Find the node log containing provider output and copy the exact quota or rate-limit phrase. Configure matching and retry timing under agents.<name> for that provider.
Handle a missing dashboard
Where to looktmux installation and settings.integrations.ui
tmux not found; continuing without live dashboard. means execution can continue. Install tmux, set settings.integrations.ui.options.tmux_executable, set settings.integrations.ui.implementation: "none", or pass --no-live.
Trace a missing bundle or branch
Where to lookRun manifest, node logs, and final lineage checkpoint
Start with the run manifest and relevant node logs. Check node status, worktree lineage, create_branch, and the final lineage checkpoint. Only successful kind: worktree lineage nodes produce bundles; snapshot nodes, worktree: none nodes, failed nodes, and nodes with invalid final Git state do not.
Find the run evidence
Use terminal output to identify the run key. Start with logs/summary.md, then check manifests/run.json, relevant node logs, and results as needed.
Check the installation
If crewplane: command not found appears, confirm installation completed and the command is on PATH. For npm installs, check the npm prefix path.
crewplane --help Select a workflow
No workflow file found means default discovery found no top-level .task.md file. Run crewplane init or pass a workflow explicitly with --tasks.
crewplane run --tasks .crewplane/workflows/single-agent-review.task.md Resolve multiple matches
Multiple workflow files found means default discovery found more than one top-level .task.md. Select one with --tasks, or move extra top-level workflow files out of .crewplane/workflows/.
Check provider availability
CLI '<name>' not found in PATH for provider '<provider>' means a referenced agent’s executable is unavailable. For the built-in cli invoker, crewplane validate checks availability. Confirm agents.<name>.cli_cmd works on PATH, or use mock for provider-free validation.
Recognize mock execution
Mock invoker active: no provider CLI commands will be started. means the generated mock path is active. Inspect the run summary and results to see what it wrote.
2. Understand run decisions
Compare dry run with validation
run --dry-run does not invoke providers, write run artifacts, or check provider executable availability. It may read existing manifests to advise whether a run would skip or resume.
Validate and dry run
A dry run does not check provider executable availability.
Investigate a skipped run
Identical context detected means a usable successful run with the same workflow_signature was reused. Inspect its manifests/run.json and matching results. Resume advisory: would_skip predicts this during a dry run.
crewplane run --force Investigate resumed nodes
Resume advisory: would_resume <n> node(s) from <run-id> (nodes: <ids>) predicts hydration of the listed dependency-closed nodes from a failed or cancelled run. A message beginning Resuming workflow means completed node-boundary artifacts were hydrated from a prior run.
Trace the hydrated nodes
Check resumed_nodes in the run manifest and resume-source.json in resumed node stage directories. Use crewplane run --force to bypass resume and run fresh.
3. Resolve a run lock
Understand the lock
crewplane run creates a lock folder under .crewplane/locks/ so two runs with the same workflow, inputs, and settings cannot write simultaneously. Run lock unavailable means the lock exists or could not be created. A previous run may still be active, or may have stopped without removing its lock.
Run lock
A run lock coordinates matching runs; an unavailable lock is not proof that a process has stopped.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Run → Lock folder · create
- Lock folder → Matching run · protect
Identify the protected context
Crewplane uses the workflow, inputs, and settings to distinguish the run context. Runs with the same context must not write their files simultaneously.
Coordinate writers
The lock folder under .crewplane/locks/ marks that a matching run holds the right to write. A leftover folder can also remain after an interrupted run, so its presence alone does not prove a process is active.
Handle an unavailable lock
A matching run cannot proceed normally while it cannot acquire the lock. Check whether the earlier run is still active, then follow the appropriate recovery guidance for the platform.
Retry on supported platforms
On Linux, macOS, or WSL, rerun the command. Crewplane can remove an old lock after verifying the previous run and providers stopped and the saved run information matches. If it cannot verify this, it stops and explains why.
Automatic lock recovery
Automatic recovery proceeds only when Crewplane can verify the old lock.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Rerun command → Verify prior run · check
- Verify prior run → Recover or stop · result
Ask Crewplane to recheck
On Linux, macOS, or WSL, rerunning the command starts the automatic stale-lock check. This gives Crewplane a chance to recover an interrupted run without manually deleting its lock folder.
Confirm the old run stopped
Crewplane checks that the previous run and providers have stopped and that saved run information matches. If those facts cannot be verified, it stops and explains the reason.
Recover only when verified
After removing a verified stale lock, Crewplane marks the interrupted run cancelled. Saved progress may then be reused if it passes the separate resume checks; an unverifiable lock is left in place.
Understand recovered progress
After automatic lock removal, Crewplane marks the interrupted run cancelled and can reuse saved progress that passes its checks.
Recognize native Windows lock behavior
Native Windows does not remove leftover locks automatically, even if a lock looks old or its run is listed as finished. --force cannot bypass a lock.
Recover a lock manually
If automatic recovery cannot remove an old lock, use your process manager to confirm the original Crewplane command, its providers, and any programs they started have stopped. If you cannot confirm this, leave the lock in place.
Check the processes. Keep the evidence.
In this example, mark each process group as stopped, then preview the folder change. Nothing on your machine is inspected or changed.
Leave the lock in place until all three process groups are confirmed stopped.
Use your process manager to confirm all three groups have stopped. If you cannot confirm this, leave the lock in place. Otherwise, keep the run records, remove only the lock folder named in the error, then rerun the command.
.crewplane/-
locks/-
<folder-named-in-the-error>/Only removal target - Other lock foldersKeep
-
execution-stages/<run-key>/Keep · logs and manifestsexecution-results/<run-key>/Keep · saved outputs
Deleting the lock does not change saved run status. A run still marked running cannot be resumed; --force runs the whole workflow again.
Keep records and remove only the named lock
Keep the saved run files for troubleshooting. Delete only the lock folder named in the error, then rerun the command. Deleting the lock does not change the saved run status: a run still marked running cannot be resumed. An earlier successful result may still allow a skip; --force runs the whole workflow again.
4. Resolve runtime symptoms
Read native Windows errors
Provider launch was withheld with a Job Object restriction means the provider was not started; check whether the terminal or CI runner prevents Crewplane from managing started programs. For a sharing violation, close the program holding the file. For a path-too-long error, use a shorter project path; longer paths require support from Windows, Python, and provider tools.
Check template file access
{{file:path}} is bounded by the project root unless settings.file_access.allowed_template_paths includes an absolute allowlisted path. Symlinks are resolved before the final access check.
Template file access
A symlink is resolved before the final file access check.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Project root → Resolved path · resolve
- Outside the project → Resolved path · allowlist and resolve
Read within the project
A relative {{file:path}} reference is bounded by the project root. This allows a prompt to use a project file while applying the access check to the path that actually resolves.
Allow an external path
A file outside the project needs an absolute path included in settings.file_access.allowed_template_paths. Merely naming an external file in a prompt does not grant access to it.
Resolve the destination
Crewplane resolves symlinks before the final access check. A path that appears to be inside an allowed location can therefore be denied if its resolved destination is outside the permitted boundary.
Configure quota detection
Find the node log containing provider output and copy the exact quota or rate-limit phrase. Configure matching and retry timing under agents.<name> for that provider.
quota_reached_on_contains: - "rate limit reached"quota_reached_retry_delay_seconds: 300quota_reset_sleep_floor_seconds: 5 Handle a missing dashboard
tmux not found; continuing without live dashboard. means execution can continue. Install tmux, set settings.integrations.ui.options.tmux_executable, set settings.integrations.ui.implementation: "none", or pass --no-live.
Find logs in CI
The dashboard starts only for non-dry runs attached to a terminal. CI and other non-TTY runs still write logs under .crewplane/execution-stages/<run-key>/logs/.
Check mock fixture fallback
Mock file mode searches from node/task/round-specific fixtures down to default-<role>.md and default.md. Set strict_file_mode: true to fail on missing fixtures instead of falling back to generated mock output.
5. Investigate workspace and cleanup
Check repository compatibility
Workspace isolation requires an ordinary Git repository compatible with the blob_exact source contract. Disable workspace support for non-Git projects, Git LFS, custom filters, text/eol conversions, submodules, sparse clone, or partial clone unless support has been verified locally.
Trace a missing bundle or branch
Start with the run manifest and relevant node logs. Check node status, worktree lineage, create_branch, and the final lineage checkpoint. Only successful kind: worktree lineage nodes produce bundles; snapshot nodes, worktree: none nodes, failed nodes, and nodes with invalid final Git state do not.
Workspace outcomes
Use the manifest and node logs to investigate workspace results.
Check branch export conditions
Branch export also requires create_branch: true and a verified final lineage checkpoint.
Check cleanup scope
Workspace cleanup defaults to the current Git repository. If it finds zero paths, confirm that the workflow used workspace isolation and check the configured cache root. Use --all-projects only when you intend to include every repository bucket under that root.