-
Bug
-
Resolution: Done
-
Major
-
3.2.0.GA
-
False
-
-
False
In DS 3.2.0.RC-09-29 deployed to OCP 4.11 with TLS self-signed certificate there was an error
"An unexpected error occurred that requires a reload of this page. The workbench failed to connect to the server (Error: WebSocket close with status code 1006)"
when start Java Lombok, or CakePHP workspace in VS Code Editor:
Screencast: screencast-devspaces.apps.ocp411-aws.crw-qe.com-2022.10.04-19_10_04.webm
Browser: Google Chrome Version 104.0.5112.101 (Official Build) (64-bit)
browser console log
workbench.web.main.js:629 WebSocket connection to 'wss://devspaces.apps.ocp411-aws.crw-qe.com/workspacefa60a7bc1ca64349/tools/3100/?reconnectionToken=7b10fdec-e5f2-44a4-afeb-a55872b7c563&reconnection=false&skipWebSocketFrames=false' failed: w @ workbench.web.main.js:629 create @ workbench.web.main.js:629 connect @ workbench.web.main.js:629 u @ workbench.web.main.js:631 r @ workbench.web.main.js:631 n @ workbench.web.main.js:631 c @ workbench.web.main.js:631 (anonymous) @ workbench.web.main.js:631 y @ workbench.web.main.js:631 workbench.web.main.js:603 ERR [remote-connection][Management ][7b10f…][initial][devspaces.apps.ocp411-aws.crw-qe.com:443] socketFactory.connect() failed or timed out. Error: workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) workbench.web.main.js:603 ERR [remote-connection][attempt 5] An error occurred in initial connection! It will be treated as a permanent error. Error: workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) 3workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) workbench.web.main.js:603 ERR Cannot register remote filesystem provider. Error while fetching remote environment. WebSocket close with status code 1006 workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) workbench.web.main.js:603 ERR CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (workbench.web.main.js:629:44140) workbench.web.main.js:603 ERR WebSocket close with status code 1006: CodeExpectedError: WebSocket close with status code 1006 at WebSocket.<anonymous> (https://devspaces.apps.ocp411-aws.crw-qe.com/workspacefa60a7bc1ca64349/tools/3100/oss-dev/static/out/vs/workbench/workbench.web.main.js:629:44140)
Unable to find source-code formatter for language: lombok devfile. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
schemaVersion: 2.1.0
metadata:
name: java-gradle
namespace: admin-devspaces
attributes:
controller.devfile.io/storage-type: per-user
projects:
- name: gs-validating-form-input
zip:
location: 'http://devfile-registry.openshift-devspaces.svc:8080/resources/v2/gs-validating-form-input.zip'
components:
- attributes:
che-code.eclipse.org/contribute-cpuLimit: true
che-code.eclipse.org/contribute-cpuRequest: true
che-code.eclipse.org/contribute-endpoint/che-code: 3100
che-code.eclipse.org/contribute-endpoint/code-redirect-1: 13131
che-code.eclipse.org/contribute-endpoint/code-redirect-2: 13132
che-code.eclipse.org/contribute-endpoint/code-redirect-3: 13133
che-code.eclipse.org/contribute-entry-point: true
che-code.eclipse.org/contribute-memoryLimit: true
che-code.eclipse.org/contribute-memoryRequest: true
che-code.eclipse.org/contribute-volume-mount/checode: /checode
che-code.eclipse.org/contributed-container: tools
che-code.eclipse.org/original-memoryLimit: 4Gi
container:
command:
- /checode/entrypoint-volume.sh
cpuLimit: 500m
cpuRequest: 30m
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: input-form-endpoint
protocol: http
targetPort: 8080
- attributes:
contributed-by: che-code.eclipse.org
cookiesAuthEnabled: true
discoverable: false
type: main
urlRewriteSupported: true
exposure: public
name: che-code
path: '?tkn=eclipse-che'
protocol: https
secure: false
targetPort: 3100
- attributes:
contributed-by: che-code.eclipse.org
discoverable: false
urlRewriteSupported: true
exposure: public
name: code-redirect-1
protocol: http
targetPort: 13131
- attributes:
contributed-by: che-code.eclipse.org
discoverable: false
urlRewriteSupported: true
exposure: public
name: code-redirect-2
protocol: http
targetPort: 13132
- attributes:
contributed-by: che-code.eclipse.org
discoverable: false
urlRewriteSupported: true
exposure: public
name: code-redirect-3
protocol: http
targetPort: 13133
env:
- name: GRADLE_USER_HOME
value: /home/user/.gradle
- name: CHE_DASHBOARD_URL
value: 'https://devspaces.apps.ocp411-aws.crw-qe.com'
- name: CHE_PLUGIN_REGISTRY_URL
value: 'https://devspaces.apps.ocp411-aws.crw-qe.com/plugin-registry/v3'
- name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
value: 'http://plugin-registry.openshift-devspaces.svc:8080/v3'
image: 'registry.redhat.io/devspaces/udi-rhel8@sha256:72762feb5ccea26dc7872877b9661fb34a295da05b96581d364c507a4923361e'
memoryLimit: 5Gi
memoryRequest: 256Mi
mountSources: true
sourceMapping: /projects
volumeMounts:
- name: gradle
path: /home/user/.gradle
- name: checode
path: /checode
name: tools
- name: m2
volume:
size: 1G
- name: gradle
volume:
size: 1G
commands:
- exec:
commandLine: gradle build
component: tools
group:
kind: build
label: Build
workingDir: '${PROJECTS_ROOT}/gs-validating-form-input/complete'
id: 1-build
- exec:
commandLine: gradle bootRun
component: tools
group:
kind: run
label: Run application
workingDir: '${PROJECTS_ROOT}/gs-validating-form-input/complete'
id: 2-run
- exec:
commandLine: gradle test
component: tools
group:
kind: run
label: Run tests
workingDir: '${PROJECTS_ROOT}/gs-validating-form-input/complete'
id: 3-test
- exec:
commandLine: gradle bootRun --debug-jvm
component: tools
group:
kind: debug
label: Run in debug mode
workingDir: '${PROJECTS_ROOT}/gs-validating-form-input/complete'
id: 4-debug