OneClick WebApp launcher shows a blank page after the Upgrade from old, unsupported version to current release
search cancel

OneClick WebApp launcher shows a blank page after the Upgrade from old, unsupported version to current release

book

Article ID: 262145

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

After upgrade, OneClick WebApp shows a blank page when launched.

The $SPECROOT/webtomcat/bin/logs/webswing.log is not being updated, and the $SPECROOT/webtomcat/bin/logs/admin.log just logs this message:

2023-03-16 10:09:14,446 INFO  [main] (AdminServlet.java:50) Initializing Webswing Admin Server...
2023-03-16 10:09:15,359 INFO  [main] (AdminInitializer.java:20) Using Temp folder: C:\win32app\Spectrum\webtomcat\bin\..\webswing\tmp\release
2023-03-16 10:09:15,375 INFO  [main] (AdminInitializer.java:45) Using Properties file: file:/C:/win32app/Spectrum/webtomcat/bin/webswing-admin.properties
2023-03-16 10:09:15,954 INFO  [main] (WebSocketUrlLoaderServiceImpl.java:129) Websocket URLs reloaded.
2023-03-16 10:09:16,017 WARN  [main] (AdminGlobalUrlHandler.java:71) Failed to load customize dir [customize/]
2023-03-16 10:09:16,024 INFO  [main] (StartupServiceImpl.java:29) Starting service AdminWebSocketServiceImpl
2023-03-16 10:09:16,675 INFO  [Admin Websocket Service Timer] (AdminWebSocketConnectionImpl.java:135) Starting websocket connection to server [ws://<ONECLICK_HOST>:9443/spectrum].
2023-03-16 10:09:32,045 ERROR [Admin Websocket Service Timer] (AdminWebSocketServiceImpl.java:289) Failed to connect websocket to server [ws://<ONECLICK_HOST>:9443/spectrum]! Failed to connect to websocket
2023-03-16 10:09:32,060 INFO  [Admin Websocket Service Timer] (AdminWebSocketServiceImpl.java:357) Websocket closed to server id [null], url [ws://<ONECLICK_HOST>:9443/spectrum]. Reconnect in 5000ms.
2023-03-16 10:09:32,060 WARN  [Admin Websocket Service Timer] (AdminWebSocketConnectionImpl.java:164) Websocket connection to server [ws://<ONECLICK_HOST>:9443/spectrum] is not open! Ignoring send message.
2023-03-16 10:09:37,075 WARN  [Admin Websocket Service Timer] (AdminWebSocketConnectionImpl.java:164) Websocket connection to server [ws://<ONECLICK_HOST>/spectrum] is not open! Ignoring send message.

In the browser developers tools, under console tab, next message is displayed:

Access to XMLHttpRequest at 'http://<ONECLICK_HOST>:9443/spectrum/oneclickwebapp/rest/version' from origin 'http://<ONECLICK_HOST>' has been blocked by policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This was working before the upgrade.

Environment

DX NetOps Spectrum upgrade from old, non-supported version (such as 10.4.x or 20.2.x) to currently supported release

Resolution

  1. Stop the OneClick WebApp

  2. Remove the log files:

    $SPECROOT/webtomcat/logs/*
    $SPECROOT/webtomcat/bin/logs/*

  3. Delete the content of $SPECROOT/webtomcat/work directory.

  4. Delete  (or move to a different location) the $SPECROOT/webtomcat/webswing directory.

  5. Delete  (or move to a different location) the $SPECROOT/webtomcat/webapps/admin directory.

  6. Delete  (or move to a different location) the $SPECROOT/webtomcat/webapps/spectrum directory.

  7. Extract $SPECROOT/webtomcat/webswing.zip in $SPECROOT/webtomcat directory.

    The $SPECROOT/webtomcat/webswing should look similar to the following (depending on version):

After restarting the OneClick WebApp again, the following files with be recreated:

  • $SPECROOT/webtomcat/work 
  • $SPECROOT/webtomcat/webapps/spectrum 
  • $SPECROOT/webtomcat/webapps/admin 

Then, the OneClick WebApp should work.