GridGain-Demos/ignite-essentials-developer-training

Failed to establish websocket connection with Control Center [uri=http://localhost:3000, reason=javax.websocket.DeploymentException: Connection failed.

egloffmark opened this issue · 1 comments

When I build and run the example with maven / java 11 and run it on my windows 10 computer I get the following error when starting the server app

java -cp libs\core.jar training.ServerStartup

[11:33:19] Failed to establish websocket connection with Control Center [uri=http://localhost:3000, reason=javax.websocket.DeploymentException: Connection failed.]

Hence I can not access or see my cluster through the GridGain Control Center.

Any hints how this issue can be solved? Could it be that the port 3000 is already in use and have to be re-configured, if yes how?

What happens after that message? When I do it -- with a server running on port 3000 -- when it fails to connect to a local Control Center it immediately connects to the SaaS version:

[11:40:57] Failed to establish websocket connection with Control Center [uri=http://localhost:3000, reason=null]
[11:40:58] Established websocket connection with Control Center: https://control.gridgain.com
[11:40:58] =================================================================================================
[11:40:58] Found Control Center that can be used to monitor your cluster:
[11:40:58]  https://control.gridgain.com
[11:40:58] 
[11:40:58] Open the link in a browser to monitor your cluster:
[11:40:58]  https://control.gridgain.com/go/9dd8afd9-04c9-452e-9540-5e6e529f20f0
[11:40:58] 
[11:40:58] If you are already using Control Center, you can add the cluster manually using a one-time token:
[11:40:58]  9dd8afd9-04c9-452e-9540-5e6e529f20f0
[11:40:58] 
[11:40:58] NOTE, this token will expire in 5 minutes.
[11:40:58] New token can be generated with the following command: management.(sh|bat) --token
[11:40:58] 
[11:40:58] For more information about connection to GridGain Control Center, please visit:
[11:40:58] https://www.gridgain.com/docs/control-center/latest/connect-ignite-cluster
[11:40:58] =================================================================================================

If it works differently on Windows for some reason, you can manually change the URI used to connect to Control Center with the following command:

java -cp libs/core.jar org.gridgain.control.agent.commandline.ManagementCommandHandler --uri https://control.gridgain.com/