Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Che Theia can't reach Che plugin registry behind the proxy with TLS support #16482

Closed
3 of 23 tasks
dmytro-ndp opened this issue Mar 28, 2020 · 1 comment
Closed
3 of 23 tasks
Assignees
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.
Milestone

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Mar 28, 2020

Describe the bug

Plugins view is empty behind the proxy in CRW 2.1.0.RC3 based on Eclipse Che 7.9.2 with TLS support:
Screenshot from 2020-03-26 16-00-20

Theia image: quay.io/crw/theia-rhel8:2.1-23

Proxy settings:

  CHE_WORKSPACE_HTTPS__PROXY: 'http://10.0.148.146:3128'
  CHE_WORKSPACE_HTTP__PROXY: 'http://10.0.148.146:3128'

Downstream issue.

Che version

  • latest
  • nightly
  • other: CRW 2.1.0.RC3 based on Eclipse Che 7.9.2

Steps to reproduce

  1. Start workspace
  2. Open Plugins View

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: OCP 3.11

Installation method

  • crwctl
  • che-operator
  • minishift-addon
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

2020-03-26 13:58:55.402 root ERROR [hosted-plugin: 50] Promise rejection not handled in one second: Error: Failed to show text document [object Object] , reason: Error: Failed to show text document [object Object]
With stack trace: Error: Failed to show text document [object Object]
    at Object.<anonymous> (/home/theia/node_modules/@theia/plugin-ext/lib/plugin/plugin-context.js:252:43)
    at step (/home/theia/node_modules/@theia/plugin-ext/lib/plugin/plugin-context.js:58:23)
    at Object.next (/home/theia/node_modules/@theia/plugin-ext/lib/plugin/plugin-context.js:39:53)
    at fulfilled (/home/theia/node_modules/@theia/plugin-ext/lib/plugin/plugin-context.js:30:58)
    at process._tickCallback (internal/process/next_tick.js:68:7) 
2020-03-26 13:58:58.454 root INFO Cannot access the registry Params: TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
    at new ClientRequest (_http_client.js:120:11)
    at Object.request (http.js:42:10)
    at RedirectableRequest._performRequest (/home/theia/node_modules/follow-redirects/index.js:169:24)
    at new RedirectableRequest (/home/theia/node_modules/follow-redirects/index.js:66:8)
    at Object.wrappedProtocol.request (/home/theia/node_modules/follow-redirects/index.js:307:14)
    at dispatchHttpRequest (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/node_modules/axios/lib/adapters/http.js:180:25)
    at new Promise (<anonymous>)
    at httpAdapter (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/node_modules/axios/lib/adapters/http.js:20:10)
    at dispatchRequest (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/node_modules/axios/lib/core/dispatchRequest.js:59:10)
2020-03-26 13:58:58.666 root INFO Unable to read plugin registry Params: https://plugin-registry-crw-crwctl-with-proxy.apps.ocp311-2.crw/v3/plugins/ 

Additional context

@dmytro-ndp dmytro-ndp added kind/bug Outline of a bug - must adhere to the bug report template. area/editor/theia Issues related to the che-theia IDE of Che labels Mar 28, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 28, 2020
@azatsarynnyy azatsarynnyy added status/in-progress This issue has been taken by an engineer and is under active development. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 28, 2020
@azatsarynnyy azatsarynnyy mentioned this issue Mar 28, 2020
19 tasks
@azatsarynnyy
Copy link
Member

azatsarynnyy commented Mar 28, 2020

AxiosInstance in che-plugin-service should be configured in a similar way as it's done for che-workspace-client by the PR eclipse-che/che-workspace-client#28
cc: @vzhukovskii

@azatsarynnyy azatsarynnyy added this to the 7.11 milestone Mar 31, 2020
@vzhukovs vzhukovs removed the status/in-progress This issue has been taken by an engineer and is under active development. label Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

4 participants