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
  1. 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
  2. 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
  3. Get logs from the theia/ide container:

    $ 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:

  1. In the OpenShift Web Console, click Overview.

  2. Search for the particular deployment, click on the context menu on the right side of the deployment, and click View Logs.

    searching the theia ide logs on the console
  3. In the drop-down list, click theia-ide.

    viewing theia ide logs on the console