Fix devfile errors
Fix common devfile issues that prevent workspaces from starting or operating correctly. Issues include syntax errors, component failures, lifecycle command problems, and volume or endpoint misconfigurations.
Devfile syntax and validation errors
| Symptom | Resolution |
|---|---|
Workspace fails to start with |
The devfile contains a syntax error. Validate the devfile YAML against the devfile schema. Check for incorrect indentation, missing required fields, or unsupported properties. |
Workspace starts but ignores devfile changes. |
Che caches devfile content. Delete the workspace and create a new one from the updated repository URL to apply devfile changes. |
Error: |
The devfile is missing the |
Component and container errors
| Symptom | Resolution |
|---|---|
Workspace Pod shows |
The container image specified in the devfile component fails to start. Verify that the image exists and runs correctly outside of Che. Check container logs for details. |
|
The container image is missing libraries required by Visual Studio Code. Add |
Devfile component does not have enough memory and is |
The default memory limit is insufficient for the workload. Add or increase |
Command and lifecycle errors
| Symptom | Resolution |
|---|---|
A |
The command exits with a non-zero code. Check workspace logs for the command output. Verify the command path and syntax. Ensure the command is executable inside the container. |
Multiple |
The devfile specification allows only one |
Volume and endpoint errors
| Symptom | Resolution |
|---|---|
Source code changes are lost after workspace restart. |
The |
Endpoint URL returns |
The application inside the workspace is not listening on the port declared in the devfile endpoint. Verify the |
Endpoint is not accessible from outside the workspace. |
By default, endpoints use |