WebTomcat is not starting with "Failed to connect to websocket" error
search cancel

WebTomcat is not starting with "Failed to connect to websocket" error

book

Article ID: 267514

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

WebTomcat is not starting properly.  The following errors show in the $SPECROOT/webtomcat/bin/logs/webswing.log file:

2023-06-07 09:52:04,638 ERROR [Admin Websocket Service Timer] (AdminWebSocketServiceImpl.java:289) Failed to connect websocket to server [wss://xxx.com:9443/spectrum]! Failed to connect to websocket
2023-06-07 09:52:04,638 INFO  [Admin Websocket Service Timer] (AdminWebSocketServiceImpl.java:357) Websocket closed to server id [null], url [wss://xxx.com:9443/spectrum]. Reconnect in 5000ms.
2023-06-07 09:52:04,639 WARN  [Admin Websocket Service Timer] (AdminWebSocketConnectionImpl.java:164) Websocket connection to server [wss://xxx.com:9443/spectrum] is not open! Ignoring send message.
2023-06-07 09:52:09,638 WARN  [Admin Websocket Service Timer] (AdminWebSocketConnectionImpl.java:164) Websocket connection to server [wss://xxx.com:9443/spectrum] is not open! Ignoring send message.
2023-06-07 09:52:09,639 INFO  [Admin Websocket Service Timer] (AdminWebSocketConnectionImpl.java:135) Starting websocket connection to server [wss://xxx.com:9443/spectrum].

 

 

Environment

DX NetOps Spectrum Release : 22.2 or later

Resolution

The $SPECROOT/webtomcat/webapps/spectrum folder may be missing required files.

Move (or delete) that directory and then restart webtomcat.

When you restart webtomcat it will recreate the file structure.