Chapter 21. Troubleshooting OpenShift Dev Spaces administration


Diagnose and resolve common OpenShift Dev Spaces administration issues including workspace startup failures, OAuth configuration errors, and Dev Workspace Operator problems.

21.1. Workspace startup failure error messages

Diagnose and resolve common workspace startup failures based on error symptoms and root causes. The OpenShift Dev Spaces dashboard and the Dev Workspace Operator emit error messages that indicate pod scheduling, image pull, DevWorkspace, and resource quota issues.

21.1.1. Pod scheduling errors

Expand
Table 21.1. Pod scheduling error messages and resolutions
Error messageResolution

FailedScheduling: 0/N nodes are available: insufficient cpu or insufficient memory

The cluster does not have enough resources to schedule the workspace Pod. Free resources by stopping idle workspaces, or add nodes to the cluster.

FailedScheduling: 0/N nodes are available: pod has unbound immediate PersistentVolumeClaims

A PersistentVolumeClaim (PVC) cannot be bound. Verify that a StorageClass is configured and that the cluster has available persistent volumes.

node(s) didn’t match Pod’s node affinity/selector

The workspace Pod has a nodeSelector or node affinity that does not match any available node. Verify the nodeSelector configuration in the CheCluster Custom Resource.

21.1.2. Image pull errors

Expand
Table 21.2. Image pull error messages and resolutions
Error messageResolution

ErrImagePull or ImagePullBackOff

The container runtime cannot pull the workspace image. Verify that the image exists, the image name is correct in the devfile, and that image pull secrets are configured if the image is in a private registry.

x509: certificate signed by unknown authority

The container runtime does not trust the TLS certificate of the container registry. Import the registry Certificate Authority (CA) certificate into OpenShift Dev Spaces.

21.1.3. DevWorkspace errors

Expand
Table 21.3. DevWorkspace error messages and resolutions
Error messageResolution

DevWorkspace failed to start: timed out waiting for DevWorkspace to be ready

The workspace did not reach the Running phase within the configured timeout. Increase startTimeoutSeconds in the CheCluster Custom Resource or investigate Pod events for resource or scheduling issues.

Failed to create DevWorkspace: admission webhook denied the request

The Dev Workspace Operator webhook rejected the DevWorkspace. Verify that the Dev Workspace Operator is running and that CRDs are up to date.

BadRequest or InfrastructureFailure

An infrastructure-level error prevented workspace creation. Check the Dev Workspace Operator logs for details.

21.1.4. Resource quota errors

Expand
Table 21.4. Resource quota error messages and resolutions
Error messageResolution

exceeded quota or forbidden: exceeded quota

The user namespace has a ResourceQuota that prevents creating the workspace Pod or PVC. Increase the quota or reduce the workspace resource requests in the devfile.

OOMKilled

The workspace container exceeded its memory limit and was terminated. Increase the memory limit in the devfile components section or in the CheCluster Custom Resource defaults.

21.2. Troubleshooting OAuth configuration

Diagnose and resolve common OAuth configuration issues that prevent Git provider authentication from workspaces. Errors include incorrect credentials, mismatched callback URLs, missing Secrets, and expired tokens.

21.2.1. OAuth application errors

Expand
Table 21.5. OAuth application error symptoms and resolutions
SymptomResolution

Users see 401 Unauthorized when cloning a private repository.

The OAuth application credentials are incorrect. Verify the client ID and client secret in the OpenShift Secret. Recreate the Secret if needed.

Users see The redirect URI provided is missing or does not match on the Git provider.

The OAuth callback URL configured in the Git provider application does not match the OpenShift Dev Spaces callback URL. The callback URL must be https://__<devspaces_fqdn>__/api/oauth/callback.

Users are not prompted to authorize the OAuth application.

The OAuth OpenShift Secret is not in the openshift-devspaces namespace, or the Secret labels are incorrect. Verify the Secret exists with the required labels.

OAuth works for some users but not others.

The Git provider OAuth application restricts access to specific organizations or groups. Expand the application permissions to include all required organizations.

21.2.2. Token refresh errors

Expand
Table 21.6. Token refresh error symptoms and resolutions
SymptomResolution

Users see token expired errors after a period of inactivity.

The OAuth token has expired and cannot be refreshed. The user must revoke the token on the Git provider and re-authorize.

Git push fails with 403 Forbidden despite successful initial authentication.

The OAuth token scope is insufficient for push operations. Verify that the OAuth application requests the repo scope (GitHub), api scope (GitLab), or equivalent write permissions.

Revised on 2026-07-14 13:19:13 UTC

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top