GridGain Community Edition

Expand all | Collapse all

Failed to establish websocket connection with server: ws://localhost:8008

  • 1.  Failed to establish websocket connection with server: ws://localhost:8008

    Posted 12 days ago
    Hi All,

    We are new to Apache Ignite and wanted to use it as an in memory caching layer for the REST APIs. So, to work on a POC we have downloaded Gridgain Community Edition(8.7.30) and configured the same. We created rest-jetty-ssl.xml as mentioned in the documentation and added the same in ignite node configuration file and brought up the ignite node with 8088 port "nohup ./ignite.sh -J-Xmx6G -v -J-DIGNITE_JETTY_PORT=8088", since port 8080 is already in use.

    Also, web console is brought up and we are able to access the same with 8008 port.

    Web console agent is downloaded and brought up with tokens, server-uri and node-uri properties. But the problem is web console agent is not getting connected to console over web socket. We get the below error, when agent is started. Could you please help

    [2020-11-19T15:40:30,133][INFO ][main][AgentLauncher] Starting Apache GridGain Web Console Agent...
    [2020-11-19T15:40:30,292][INFO ][main][AgentLauncher]
    [2020-11-19T15:40:30,292][INFO ][main][AgentLauncher] Web Console Agent configuration :
    [2020-11-19T15:40:30,410][INFO ][main][AgentLauncher] User's security tokens : ********************************5a73
    [2020-11-19T15:40:30,411][INFO ][main][AgentLauncher] URI to Ignite node REST server : http://localhost:8088
    [2020-11-19T15:40:30,411][INFO ][main][AgentLauncher] URI to GridGain Web Console : http://localhost:8008
    [2020-11-19T15:40:30,411][INFO ][main][AgentLauncher] Path to properties file : default.properties
    [2020-11-19T15:40:30,411][INFO ][main][AgentLauncher] Path to JDBC drivers folder : /app/ignite/gridgain-web-console-on-premise-2020.07.00/gridgain-web-console-agent-2020.07.00/jdbc-drivers
    [2020-11-19T15:40:30,411][INFO ][main][AgentLauncher] Demo mode : enabled
    [2020-11-19T15:40:30,411][INFO ][main][AgentLauncher]
    [2020-11-19T15:40:30,474][INFO ][main][WebSocketRouter] Starting Web Console Agent...
    [2020-11-19T15:40:30,484][INFO ][Connect thread][WebSocketRouter] Connecting to server: ws://localhost:8008
    GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
    [2020-11-19T15:40:45,839][ERROR][http-client-scheduler-1][WebSocketRouter] Failed to establish websocket connection with server: wss://localhost:8008

    ------------------------------
    Anil Kumar
    Developer
    Tata Consultancy Services
    ------------------------------


  • 2.  RE: Failed to establish websocket connection with server: ws://localhost:8008

    Posted 12 days ago
    Hello!

    Can you please also provide the logs from web console backend?

    Better yet, try to switch to GridGain Control Center since Web Console is no longer actively developed.

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------



  • 3.  RE: Failed to establish websocket connection with server: ws://localhost:8008

    Posted 12 days ago
    Hi Ilya,

    We have configured Control Center and now we can the node is getting detected after the cluster is added. We are looking to import few tables from Oracle but when we checked the RDBMS Integration option is available in Web Console but not in Control Center. And we are now looking at SQLLine option. Could you please help us if there is a simpler way to import tables with data from Oracle than SQLLine.

    ------------------------------
    Anil Kumar
    Developer
    Tata Consultancy Services
    ------------------------------



  • 4.  RE: Failed to establish websocket connection with server: ws://localhost:8008

    Posted 12 days ago
    Hello!

    You can import tables from Oracle by setting up Cache Store (without readThrough or writeThrough) and then calling loadCache() on these caches.

    RDBMS Integration
    https://www.gridgain.com/docs/latest/developers-guide/persistence/external-storage

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------