search cancel

Unable to register to a Task Server. Failed to start the Web Socket Server[Cem]

book

Article ID: 200583

calendar_today

Updated On:

Products

IT Management Suite Task Server

Issue/Introduction

After upgrade to ITMS 8.5 RU4, Task Server (TS) running as the Internet Site Server is unable to register Client Task Agent (CTA) and AtrsHost service fails to register "httplistener" for CEM websocket.

 

Warning:

"9/23/2020 1:07:33 PM","Failed to start the Web Socket Server[Cem]: retries=2, max retries=5, site='Altiris/Websockets', port=8018, next retry after=00:00:15
Failed to listen on prefix 'https://+:8018/Altiris/Websockets/' because it conflicts with an existing registration on the machine.
   [System.Net.HttpListenerException @ System]
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at Symantec.WebSockets.WebAgentSocket.ListenImpl(String url)
   at Symantec.WebSockets.Server.WebAgentSocketServer`1.Start()
   at Altiris.ClientTask.Server.WebSocketServerWatcher.RestartWebSocketServer(EWebSocketServerType wssType, String wssSite, Int32 wssPort, Int32 retries)
   at Altiris.ClientTask.Server.WebSocketServerWatcher.EnsureWebSocketServerState(Thread me, WaitHandle[] waiters, EWebSocketServerType wssType)

Exception logged from: 
   at Altiris.DotNetLib.Logging.AtrsLog.ExceptionMessage(String message, Exception exception)
   at Altiris.ClientTask.Server.Logging.NSAgentLog.ReportMessage(Severity severity, String moduleName, String source, Exception exception, String message, Object[] arguments)
   at Altiris.ClientTask.Server.WebSocketServerWatcher.EnsureWebSocketServerState(Thread me, WaitHandle[] waiters, EWebSocketServerType wssType)
   at Altiris.ClientTask.Server.WebSocketServerWatcher.EnsureWebSocketServersState(Thread me, WaitHandle[] events)
   at Altiris.ClientTask.Server.WebSocketServerWatcher.WatchingThreadProcLoop(Thread me, WaitHandle[] waiters)
   at Altiris.ClientTask.Server.WebSocketServerWatcher.EnterWatchingThreadLoopProc(Thread me, WaitHandle[] waiters)
   at Altiris.ClientTask.Server.WebSocketServerWatcher.WatchThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

","WebSocketServerWatcher","AtrsHost.exe","2752","Warnings"

 

 Problem can be reproduces in this condition:

  • TS uses custom web setting policy
  • Intranet binding is OFF
  • CEM binding is ON

Cause

Known issue. Incorrect port usage by websocket server at site server in case of disabled HTTPS.

The Global Site Server Settings for the internet Site Server used for CEM was disabled and custom setting (Override the global settings by custom settings) were turned ON with "configure HTTPs on site servers" check box turned OFF and "configure CEM web on site servers" check box turned ON with a custom port (instead of the default 4726 port).

Environment

ITMS 8.5 RU4

Resolution

A fix for this issue has been added to ITMS 8.6 release.

The current workaround is to have "Configure HTTPs binding" check box turned ON under the "Configure HTTPs on site servers" section for your custom settings for your Internet Site Server.

Attachments