Eclipse Che7: Websocket connection to 'wss://.../api/websocket' failed

7/20/2021

After deploying Che7 to our Kubernetes/EKS cluster in AWS, when trying to access:

https://{host}/dashboard/#/workspaces

Chrome console is reporting the following error:

vendor.f84bf7019b48912e16e3.js:123 WebSocket connection to 'wss://{host}/api/websocket?token=...' failed: <br>UD: preload data failed.

Saw this page: https://www.eclipse.org/che/docs/che-7/end-user-guide/troubleshooting-network-problems/

But didn't provide much detailed instructions.

Is any special configuration necessary for Che7 to use Websockets when deploying in AWS EKS?

Thank you very much.

-- kvjava1
amazon-eks
eclipse-che
kubernetes
websocket

1 Answer

7/21/2021

It should be fixed in the next release. See https://github.com/eclipse/che/issues/19434

Before it, modify your Che ingress to define websocket annotations. Pay attention that workspaces may still fail to work since https://github.com/eclipse-che/che-server/pull/56 is needed for them.

-- Serhii Leshchenko
Source: StackOverflow