Skip to content

Debug a failed run

A workflow run reaches FAILED state when at least one operation failed. This how-to is the diagnostic flow: figuring out which operation, what kind of failure, what to fix.

Prerequisites

  • A workflow run id (failed or in FAILED).

Step 1 — Open the run in SimKit Web UI

Browser to simkit, project, workflow, run. You'll see the operation tree with at least one operation in FAILED state. The visual surface is the fastest way to find the failure point in a multi-step workflow.

Step 2 — Identify the failing operation

In the operation tree, the failed operation is highlighted. Click it. Its panel shows: - The operation's name (matches what you wrote in workflowDefinition). - Its state-transition history. - The error message, if any.

If the workflow has multiple failures (cascading from one root cause), the first failed operation in time-order is usually the one to focus on. Subsequent failures are downstream consequences.

Step 3 — Drill into the kind of failure

Three patterns to recognize:

Pattern A — operation FAILED with a clear error message

The operation's panel includes a human-readable error. Read it carefully — it usually names the data or configuration field that broke. Examples: - "Required value missing at configValueModel.maxIterations." - "Type mismatch at geometry: expected mock-geometry, got mock-mesh." - "Method engine returned non-zero exit code: 137 (out-of-memory)."

Fix the cause in the workflow type or in the user-supplied configuration / inputs, then re-run.

Pattern B — method run is FAILED (well-formed failure)

If the failed operation is a method call, drill into the method run. Its terminal state is FAILED if the method itself returned a failure result. This is the method telling you the inputs or configuration didn't satisfy what it needs.

The method's stdout/stderr (visible in SimKit Web UI when the method run is selected) often has the specifics.

Pattern C — method run is ENGINE_ERROR

ENGINE_ERROR means the method-engine couldn't execute the method at all — image pull failure, container crash, infrastructure problem. This is not a problem with your workflow type; it's an environment issue. Retry; if it persists, escalate to the team managing the platform.

Step 4 — When the workflow run never starts

If the run state went to FAILED immediately after CREATED, or if simkit run start returned an error rather than a run id: - The workflow's configuration likely failed validation. Check the configuration form in simkit; case messages from your validationRuleSet { … } appear there. - If the run went CREATED → VALIDATING → FAILED, a nonInteractiveValidationRuleSet { … } rule fired or could not be evaluated. simkit run validation <run-id> prints the failing cases (or the execution error); the run's error code is workflow-runner-run-validation-failed or workflow-runner-run-validation-error. - If the run went to FAILED with the error code workflow-runner-run-operation-configuration-invalid, the configuration your workflow definition hands an operation does not satisfy the schema or the validationRuleSet { … } of the method or nested workflow type it runs. The error names the operation, the component and each rejected value; its errorCodes detail lists the rejecting rules. Correct the workflow definition. - Or the workflow type or one of its dependencies isn't on the registry (unlikely if simkit component register succeeded).

Step 5 — Reading the validation report

If a validation rule fired, the configuration form shows the case message inline. The full structured report is also available via the workflow's validate action — see read-a-validation-result.

Common causes

  • Wrong data type connected to an input. The workflow definition's type-checker catches this at build time; if it slipped through, it's at run-data-mapping time.
  • A method timed out. Method runs have wall-clock limits set by the platform. If your method's resourceEstimation is significantly off, requests get throttled or killed.
  • Snapshot drift. A method dependency at *-SNAPSHOT may have changed shape since you last built. Rebuild with -PdependencySources=REGISTRY_SERVICE,FILE_SYSTEM to force a fresh fetch.

Cross-references