Session recording - Session Recording is not functioning for Entra ID-only joined VDAs connecting to on-prem Session Recording Servers

book

Article ID: CTX696922

calendar_today

Updated On:

Description

Administrators may notice that Session Recording does not work on VDA machines that are joined to Entra ID only. Session Recording works fine on VDA machines that are Hybrid joined.

On the VDA machine's Application event log, event ID 3027 with the message "Data cannot be sent because the connection is in the disconnected state. Call start before sending any data." is recorded. 

Log Name:      Application
Source:        Citrix Session Recording Agent
Date:          
Event ID:      3027
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      
Description:

Exception in query message is sent to the session recording broker.

--- Details of the outer exception ---
Type: System.AggregateException
Message: At least one error has occurred.
Stack trace:
   at System.Threading.Tasks.Task`1.GetResultCore (Boolean waitCompletionNotification)
   at SmAudAgent.LogQueueProducer.PollBrokerThisAgentActive(String hostName, Int32 activeSessionCount)

--- Internal exception details ---
Type: System.InvalidOperationException
Message: Data cannot be sent because the connection has been lost. Call ‘start’ before sending data.
Call stack trace:
   at SmAudAgent.SignalREngineHelper.<GetServerConfigurationsOverSignalRAsync>d__13.MoveNext()

Cause

Possible configuration issue

Resolution

  1. Make sure to use Citrix Cloud DDC. On-prem DDC is not supported.
  2. During the installation of both the Session Recording Agent and Session Recording Server, the "Enable Azure AD support" option must be selected. If it was not selected, a reinstallation is required.
  3. Connect the on-prem Session Recording servers to Citrix Cloud as per

    https://docs.citrix.com/en-us/session-recording/service/get-started/connect-existing-session-recording-servers-to-the-cloud 

  4. Make sure that the VDA (with Session Recording Agent installed) and the Session Recording servers are part of the same Cloud Customer ID.
  5. Connect Entra ID to Citrix Cloud as per

    https://docs.citrix.com/en-us/citrix-cloud/citrix-cloud-management/identity-access-management/connect-azure-ad.html#connect-citrix-cloud-to-azure-ad
  6. Make sure Anonymous Authentication is enabled for SignalR in SR Server IIS

image.png

Issue/Introduction

Administrators may notice that Session Recording does not work on VDA machines that are joined to Entra ID only. Session Recording works fine on VDA machines that are Hybrid joined.

   

Additional Information

Session Recording Installation Instructions:

https://docs.citrix.com/en-us/session-recording/2407/install-upgrade-uninstall.html

Note: SessionRecordingSupportAAD and Send User Identity Info In Prepare Session preview toggles are no longer necessary as the feature has become GA.