Collect diagnostics with must-gather
On OpenShift Container Platform clusters, you can collect a diagnostic snapshot of the Che Operator, DevWorkspace-based Cloud Development Environments, and related cluster state by using the Che community-supported must-gather image with oc adm must-gather. Share this dump with others so they can help troubleshoot the issue.
-
You are running Che on an OpenShift Container Platform cluster.
-
The
ocOpenShift CLI is installed and configured for the target cluster. See Getting started with the OpenShift CLI. -
You have
cluster-adminpermissions on the cluster. -
Che is installed on the cluster.
-
Collect Che and DevWorkspace diagnostics:
$ oc adm must-gather --image=quay.io/che-incubator/must-gather:latestThe command creates a local directory named
must-gather.local.<id>that contains the diagnostic dump.This must-gather image focuses on Che, DevWorkspace, and related components. To collect full cluster data, run
oc adm must-gatherwithout specifying a custom image. -
Optional: Write the output to a specific directory:
$ oc adm must-gather --image=quay.io/che-incubator/must-gather:latest \ --dest-dir=<directory_name>
-
A local
must-gather.local.<id>directory (or the directory you passed to--dest-dir) exists and contains the diagnostic dump.