Windows Event Log error for Ivanti Workspace Control Relay Server: Error - Failed to process license for session

Version 3

    Problem

    Consider the following scenario:

     

    • Ivanti Workspace Control Relay servers are used.
    • There is a network interruption for a certain amount of time.
    • Transactions cannot be processed and are kept on disk by the Ivanti Workspace Control Relay server.
    • The network interruption is resolved and the Ivanti Workspace Control Relay server starts processing all delayed transactions.

     

    In this scenario, some transactions might fail and the following error is displayed in the Windows Event Log for every failed transaction.

     

     

    Eventviewer:
    Log Name:      Application
    Source:        RES ONE Workspace Relay Server
    Date:          date
    Event ID:      0
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      hostname-in-fqdn
    Description:
    Error: Failed to process license for session 1, agent eb8f701f-3f7c-4d5f-bd22-9a60ac1f3237, user DOMAIN\Username, a license already exist as session 1, agent 3be68c7a-df12-4c38-bcc0-28414880ae83, user DOMAIN\Username
    
    Version: 9.12.1.0 (2016) CS:370967
    
    Stacktrace:
       at RES.WorkspaceManager.Licensing.LicenseManager.ProcessLicense(IWorkspaceManagerLicenseProvider licensedDataProvider, String type, String& countTypeString, Boolean isLicenseNagged, String userName, LicenseEntity licenseEntity)
    
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="RES ONE Workspace Relay Server" />
        <EventID Qualifiers="0">0</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="date-time" />
        <EventRecordID>8785</EventRecordID>
        <Channel>Application</Channel>
        <Computer>hostname-in-fqdn</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Error: Failed to process license for session 1, agent eb8f701f-3f7c-4d5f-bd22-9a60ac1f3237, user DOMAIN\Username, a license already exist as session 1, agent 3be68c7a-df12-4c38-bcc0-28414880ae83, user DOMAIN\Username
    
    Version: 9.12.1.0 (2016) CS:370967
    Stacktrace:
       at RES.WorkspaceManager.Licensing.LicenseManager.ProcessLicense(IWorkspaceManagerLicenseProvider licensedDataProvider, String type, String&amp; countTypeString, Boolean isLicenseNagged, String userName, LicenseEntity licenseEntity)
    </Data>
      </EventData>
    </Event>
    

     

     

     

    Cause

    The Ivanti Workspace Control Relay server uses multiple channels to process its transactions. With a huge number of cached transactions, it can happen that sequential transactions are processed simultaneously by different channels.

    Licensing transactions are used to update the User Session information and are sent in a high frequency. This might lead to a scenario where an update license transaction is processed before a new license transaction.

    For every message that is out of sync, the Ivanti Workspace Control Relay server will report an error in the Windows Event Log and discard the transaction.

     

     

    Solution

    This is by design of the Ivanti Workspace Control Relay server.

     

    In the scenario, as described above, this message is harmless and can be disregarded.

    However, there might be more scenarios where such an error message appears. These can be investigated by using the KB article Workspace Control Relay Server Error: Failed to process license, a license already exists for an other session.