This section describes how to view Che-Theia IDE logs, on the command line and in the OpenShift web console.
Viewing Che-Theia IDE logs on the command line
This section describes how to view Che-Theia IDE logs on the command line.
Procedure
-
Run the following command to get the list of all the pods:
$ oc get pods
Example$ oc get pods NAME READY STATUS RESTARTS AGE che-9-xz6g8 1/1 Running 1 15h workspace0zqb2ew3py4srthh.go-cli-549cdcf69-9n4w2 4/4 Running 0 1h
-
Run the following command to get the list of all the containers in the particular pod:
$ oc get pods <name-of-pod> -o
Example$ oc get pods workspace0zqb2ew3py4srthh.go-cli-549cdcf69-9n4w2 -o jsonpath='\{.spec.containers[*].name}' > go-cli che-machine-exechr7 theia-idexzb vscode-gox3r -
Get logs from the
theia/idecontainer:$ oc logs -f <name-of-container> -c
Example$ oc logs -f workspace0zqb2ew3py4srthh.go-cli-549cdcf69-9n4w2 -c theia-idexzb
Viewing Che-Theia IDE logs in the web console
This section describes how to view Che-Theia IDE logs in the OpenShift web console.
Procedure
To view Che-Theia IDE logs on the console:
-
In the OpenShift Web Console, click Overview.
-
Search for the particular deployment, click on the context menu on the right side of the deployment, and click View Logs.
-
In the drop-down list, click theia-ide.