Troubleshoot a failed deployment
Find the failed Service, examine the related logs, correct the cause, and redeploy an Environment.
When an Environment shows Config error or Error, use this workflow. Also use this workflow when a Service shows Deploy failed or Error. If a Service shows Build failed, use Troubleshoot a failed build.
Resolve a Config error first
A Config error happens before Lifecycle can run the affected Services. A failed Service or Console does not always exist.
-
Read the Config error in the Environment metadata.
-
Check Current branch schema.
- Invalid: Correct
lifecycle.yamlusing the schema reference. - Valid now: The branch is correct, but the Environment continues to record the earlier failed snapshot.
- Invalid: Correct
-
When the branch is valid, select Actions.
-
Select Redeploy.
For a static Environment, an administrator must do this action.
Find the first useful failure reason
For an Environment-level Error or a Service failure:
- Open Environments in Lifecycle.
- Select the affected Environment.
- If the Environment shows Error, hover over or focus that status to read the Environment failure message.
- If a Service shows Build failed, Deploy failed, or Error, select it from the Service list. The UI shows failed Services before healthy Services.
- Before you open longer logs, read the Service Failure reason on the Summary tab.
If no Service failed, use the Environment failure message as the primary evidence. Then, escalate it. Service Console logs might not exist.
The summary tells you which Service failed. It identifies the cause or narrows
the failure to a phase. For example, a Failure reason such as
Kubernetes apply job failed identifies the deployment phase, but not the root
cause. Open the Deploy logs to find the actionable error before retrying.
Open the related logs
For a failed Service, select Console. Then, use the phase that matches its status.
- Build failed: Select Build. Open the failed build attempt.
- Deploy failed: Select Deploy. Open the failed deployment attempt.
- Error: Start with the Failure reason. Then, examine Build or Deploy for the last completed phase.
- Ready, but the application is unhealthy: Select Pods to examine the running container logs.
A red dot on Build or Deploy marks the failed phase. If Lifecycle uses an external pipeline for that phase, the Console can show a link to its logs as an alternative to native job logs.
Look for the earliest actionable error, not all symptoms that follow it. Do not include tokens, secret values, or full environment-variable output when sharing logs.
Correct the cause
Use the Environment message or Service failure reason and logs to check the failed phase:
| Failure | Check first |
|---|---|
| Configuration error | The Current branch schema result and the related lifecycle.yaml reference |
| Build failed | Repository and branch access, Dockerfile path, build context, base images, and registry access |
| Deploy failed | Container image and tag, deployment dependencies, environment-variable names, resource limits, and readiness configuration |
| Ready but unhealthy | Application startup output, health endpoints, dependency URLs, and runtime configuration |
If the failure comes from repository content, commit the correction. Push the correction before you retry.
Redeploy
After correcting the cause:
- To retry one Service, select the circular-arrow Redeploy control on its row.
- To retry the full Environment, select Actions, then Redeploy.
- Make sure that Lifecycle queues the redeploy.
- Wait until the Environment shows Deployed.
- Make sure that each necessary Service shows Ready.
If you changed shared configuration or more than one Service, use a full Environment redeploy. A redeploy reuses the current source and configuration. Thus, it does not correct a deterministic error by itself.
Lifecycle disables full redeploy for non-administrators on a static
Environment. Administrators must enter redeploy.
Application developers must start with the Lifecycle UI and the logs linked there. Cluster-level diagnostics are an operator workflow, not the usual recovery path for a failed Service.
Escalate with useful evidence
If the corrected deployment continues to fail, give your platform team:
- Environment ID and, when applicable, Service name
- Current status and the Environment failure message or Service Failure reason
- If Build, Deploy, or Pods contains the related error
- Commit short SHA and approximate failure time
- The smallest log excerpt that includes the actionable error
Do not include credentials, tokens, secret values, or unrelated application data.