WEM Agent not connecting to Citrix Cloud after the upgrade

WEM Agent not connecting to Citrix Cloud after the upgrade

book

Article ID: CTX335939

calendar_today

Updated On:

Description

Few WEM agent are not registering to the Cloud WEM Server after the WEM agent upgrade.

Debug logs would have the below entries:

Event -> BaseBrokerClient`1.GetConnectorAuthContext() : Successfully acquired connector authentication context.  Exception -> ConfigurationDataSourcesHelper.CheckAgentBrokerServiceClient() : System.ServiceModel.Security.SecurityNegotiationException : Could not establish trust relationship for the SSL/TLS secure channel with authority '*****.wem.cloud.com'.
Exception -> ConfigurationDataSourcesHelper.CheckAgentBrokerServiceClient() : System.Net.WebException : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Exception -> ConfigurationDataSourcesHelper.CheckAgentBrokerServiceClient() : System.Security.Authentication.AuthenticationException : The remote certificate is invalid according to the validation procedure.
Exception -> ConfigurationDataSourcesHelper.CheckBrokerSvcConnection() : Broker Svc Check -> Failed
Exception -> AgentServiceHelper.OpenDataConnection() : Service appears to be Offline and no valid local cache found!
Warning -> InternalRun() : Agent is offline. Skip agent cache sync.
Event -> MainServiceHost.StartAgentProxyService() : Agent Proxy service started
Event -> MainServiceHost.StartAgentMessagingService() : Agent Messaging service started
Event -> MainServiceHost.StartCacheSyncInterfaceService() : Agent Cache Synchronization Interface service started
Event -> MainServiceHost.ReportLegacyAgentWcfService() : Using Citrix Cloud messaging service for agent callback.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

  1. Delete the value of registry: LastKnownSiteId from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Norskale\Agent Host
  2. Restart the Agent service