Spectrum Oneclick Webapp page is not working after upgrade
search cancel

Spectrum Oneclick Webapp page is not working after upgrade

book

Article ID: 238295

calendar_today

Updated On:

Products

Spectrum Network Observability

Issue/Introduction

After upgrade spectrum from 10.4.1 to 21.2.8,  the Oneclick webapp page from Oneclick browser it again redirects back to oneclick browser page. 

The Oneclick webapp page does open.

We go to the OneClick administration web page. Select the OneClick WebApp link and a new tab opens. Instead of the expected OneClick webapp page we are brought back to the OneClick administration web page.

We also see the following error in the $SPECROOT/webtomcat/bin/logs/webswing.log file.

2023-06-27 11:46:43,393 INFO  [Webswing Process Handler] (SwingProcessImpl.java:219) [oneclickwebapp_anonym_aab85754bf9d_1687884397521] INFO: Starting websocket connection to server [ws://<OC_HostName>:8443/spectrum/oneclickwebapp/async/app-bin].
2023-06-27 11:46:43,817 INFO  [Webswing Process Handler] (SwingProcessImpl.java:219) [oneclickwebapp_anonym_aab85754bf9d_1687884397521] ERROR: Failed to connect websocket to server [ws://<OC_HostName>:8443/spectrum/oneclickwebapp/async/app-bin]! -> Handshake error. | 
2023-06-27 11:46:43,817 INFO  [Webswing Process Handler] (SwingProcessImpl.java:219) [oneclickwebapp_anonym_aab85754bf9d_1687884397521] ERROR: Exiting application because it could not connect to server -> jakarta.websocket.DeploymentException: Handshake error.
...
2023-06-27 11:46:43,821 INFO  [Webswing Process Handler] (SwingProcessImpl.java:219) [oneclickwebapp_anonym_aab85754bf9d_1687884397521] Caused by: org.glassfish.tyrus.core.HandshakeException: Response code was not 101: 404.
...
2023-06-27 11:46:43,824 INFO  [Webswing Process Handler] (AbstractSwingProcess.java:190) [oneclickwebapp_anonym_aab85754bf9d_1687884397521] app process destroying finished. 
2023-06-27 11:46:43,847 INFO  [Process close listener thread [oneclickwebapp_anonym_aab85754bf9d_1687884397521]] (SwingProcessServiceImpl.java:536) Transfer dir for session [oneclickwebapp_anonym_aab85754bf9d_1687884397521] cleared. [D:\win32app\Spectrum\webtomcat\bin\anonym\upload]
2023-06-27 11:46:43,873 INFO  [http-nio-9443-exec-10] (BrowserWebSocketConnectionEndpoint.java:156) Websocket to browser closed, session [1], close code [1000], reason [Disconnecting instance.]!

Environment

All supported DX NetOps Spectrum OneClick releases

Cause

Incorrect port configured in webswing.properties and webswing-admin.properties files.

Resolution

Confirm the following files are configured properly.

  • $SPECROOT/webtomcat/conf/server.xml
    • Confirm the <Connector section port is 9443 and redirectPort is using the correct HTTP or HTTPS schema and ports required are configured.
    • This is the line:
      • <Connector port="9443" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"></Connector>
  • $SPECROOT/tomcat/conf/server.xml
    • Confirm the correct HTTP or HTTPS schema ports required are configured.
  • $SPECROOT/webtomcat/bin/webswing.properties
    • Ensure the webswing.server.publicUrl and webswing.server.websocketUrl values are using port 9443
  • $SPECROOT/webtomcat/bin/webswing-admin.properties
    • Ensure the webswing.server.websocketUrl value is using port 9443

If any changes are made to the webtomcat files ensure the correct restart cycle is performed. It's dependent on tomcat. Both must be restarted in the correct order.

  1. Stop webtomcat
  2. Stop tomcat
  3. Start tomcat
  4. Start webtomcat