Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

SVT: Error loading ODO extension in the PFE log. #3224

Closed
@jagraj

Description

@jagraj

Codewind version: 0.14.1
OS: CoreOS

Che version: 7.16.1
IDE extension version: 0.14.1
IDE version: 7.16.1
Kubernetes cluster:
OCP 4.3.29

Description:
We can not see both ODO 2 and ODO 1 templates in the Template source manager list. Here is the error we are seeing in PFE log.

image

> codewind-portal@1.0.0 start /portal
> ./npm-start.sh

Found node environment set to prod. Running in production mode.

> codewind-portal@1.0.0 prod /portal
> node server.js

[07/08/20 17:21:33 server.js] [INFO] Starting Codewind PFE container
[07/08/20 17:21:33 server.js] [INFO] Codewind PFE image version 'x.x.dev' image build time '20200807-142239'
Fri, 07 Aug 2020 17:21:34 GMT kubernetes-client deprecated getInCluster see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig- at server.js:94:61
Fri, 07 Aug 2020 17:21:34 GMT kubernetes-client deprecated Request() without a .kubeconfig option, see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md at server.js:94:40
[07/08/20 17:21:34 server.js] [INFO] Codewind is running in Kubernetes
[07/08/20 17:21:34 server.js] [INFO] Ingress path is "codewind-workspacene2303237m7w3te3-che-che.apps.extols.os.fyre.ibm.com"
Fri, 07 Aug 2020 17:21:34 GMT kubernetes-client deprecated require('kubernetes-client').config, use require('kubernetes-client/backends/request').config. at modules/utils/kubernetesFunctions.js:13:44
Fri, 07 Aug 2020 17:21:34 GMT kubernetes-client deprecated getInCluster see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig- at modules/utils/kubernetesFunctions.js:14:44
Fri, 07 Aug 2020 17:21:34 GMT kubernetes-client deprecated Client({ config }), see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md at modules/utils/kubernetesFunctions.js:14:16
Fri, 07 Aug 2020 17:21:34 GMT kubernetes-client deprecated Request() without a .kubeconfig option, see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md at node_modules/kubernetes-client/lib/swagger-client.js:200:19
[07/08/20 17:21:34 Turbine] [INFO] The current log level is info
[07/08/20 17:21:35 Turbine] [INFO] Initialize application state map
[07/08/20 17:21:35 Turbine] [INFO] Initialize build state map
[07/08/20 17:21:35 Turbine] [INFO] Starting application ping intervals
(node:130) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:130) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:130) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
[07/08/20 17:21:35 Turbine] [INFO] The project folder does not exist yet: /file-watcher/fwdata/projects/
[07/08/20 17:21:35 User.js] [INFO] Initialising existing projects for user default
[07/08/20 17:21:35 User.js] [INFO] Projects initialised for user default
[07/08/20 17:21:35 User.js] [INFO] Installing extentions for user default
[07/08/20 17:21:36 /portal/modules/ExtensionList.js] [INFO] Extension codewind-odo-extension successfully initialised
[07/08/20 17:21:36 /portal/modules/ExtensionList.js] [INFO] Extension codewind-odo-extension-devfile successfully initialised
[07/08/20 17:21:36 /portal/modules/ExtensionList.js] [INFO] Extension codewind-appsody-extension successfully initialised
[07/08/20 17:21:40 Templates.js] [INFO] Repository list updated.
[07/08/20 17:21:41 Templates.js] [ERROR] TypeError: Cannot read property 'map' of undefined
    at Object.getRepositories (/codewind-workspace/.extensions/codewind-odo-extension/templatesProvider.js:39:37)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[07/08/20 17:21:45 Templates.js] [INFO] Repository list updated.
[07/08/20 17:21:48 Templates.js] [INFO] Repository list updated.
[07/08/20 17:21:48 User.js] [INFO] Extensions initialised for user default.
[07/08/20 17:21:48 User.js] [INFO] Initialising template repository list
[07/08/20 17:21:49 Templates.js] [ERROR] TypeError: Cannot read property 'map' of undefined
    at Object.getRepositories (/codewind-workspace/.extensions/codewind-odo-extension/templatesProvider.js:39:37)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[07/08/20 17:21:51 Templates.js] [INFO] Repository list updated.
[07/08/20 17:21:51 User.js] [INFO] Initialising template list
[07/08/20 17:21:51 User.js] [INFO] Default templates cached
[07/08/20 17:21:51 Turbine] [INFO] Registered listener: portalListener
[07/08/20 17:21:51 User.js] [INFO] Starting existing projects for user default
[07/08/20 17:21:51 server.js] [INFO] Setting up codewind Express routes
[07/08/20 17:21:52 /portal/controllers/performance.controller.js] [INFO] PerformanceHost: codewind-performance-workspacene2303237m7w3te3
[07/08/20 17:21:52 server.js] [INFO] Express routes configured
[07/08/20 17:21:52 server.js] [INFO] Codewind PFE container startup complete
Fri, 07 Aug 2020 17:22:46 GMT kubernetes-client deprecated getInCluster see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig- at modules/TektonUtils.js:31:62
Fri, 07 Aug 2020 17:22:46 GMT kubernetes-client deprecated Request() without a .kubeconfig option, see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md at modules/TektonUtils.js:31:42
[07/08/20 17:22:46 /portal/modules/TektonUtils.js] [INFO] Looking for services in Tekton namespace 'tekton-pipelines'

Steps to reproduce:

  1. Start codewind 0.14.1 workspace from Che 7.16.1 version.
  2. Follow setup instructions for ODO.
  3. Missing ODO 1 templates from template source manager.

Workaround:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions