Workspace Control Relay Server Error: Failed to process license, a license already exists for an other session.

Version 4

    Problem

    The Ivanti Workspace Control Relay Server is overwhelmed by error: Failed to process license, a license already exists for another session.

    This error is logged in the Windows Event Log, shown as a popup message in interactive mode and written to the Ivanti Workspace Control Relay Server Trace file if enabled.

     

    The Workspace Control Relay Server trace shows error messages similar to;


    Ivanti Workspace Control Relay Server - RES.Core.ExceptionHandler - at RES.Core.ExceptionHandler.Exception(Exception ex, String message, String source) - Error: Failed to process license, a license already exists for an other session.
    Ivanti Workspace Control Relay Server - RES.Core.ExceptionHandler - at RES.Core.ExceptionHandler.Exception(Exception ex, String message, String source) - Error: Failed to process license, a license already exists for an other session.

     

     

    Solution

    This issue can have multiple causes. Some of the most common are:

     

    • Database issues.
      • The Relay Server needs to upload all transactions to the Workspace Database on a Database Server. If the transactions cannot be processed in a timely fashion, timeouts can occur resulting in license issues.
      • Perform the query SELECT TOP (1000) FROM [WorkspaceDatabase].[dbo].[tblLogs] and check the elapsed time. The query should finish in under 3 seconds on a well performing Microsoft SQL Server database.
      • Make sure there is no deadlock on the Workspace Database. On Microsoft SQL the Activity Monitor can help to determine if a deadlock has occurred.
    • The local temp folder or transactions folder is full.
      • Check C:\ProgramData\RES\Relay Server\{EnvironmentGUID}\Transactions for any transactions. This folder should be empty, or files should only exist very shortly. When 50k files build up in here (typically a Microsoft SQL Server performance issue) the Ivanti Workspace Control Relay Server will stop accepting any new transactions from agents.
      • Check C:\Windows\Temp and clean up the contents once in a while if the Log On As account on the Ivanti Workspace Control Relay Server service is configured to Local System.
      • Check free disk space. The Ivanti Workspace Control Relay Server service will stop with less than 500MB of free space.
    • An unknown error.
      • If the steps above do not provide a solution, tracing of the occurrence is needed from both the Ivanti Workspace Control Agent and Ivanti Workspace Control Relay Server. The logging should be created at the exact same time.