Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Local licensing server fails randomly when building in batch mode

Discussion in 'Editor & General Support' started by eczkchtl, Oct 12, 2021.

  1. eczkchtl

    eczkchtl

    Joined:
    Dec 12, 2012
    Posts:
    14
    Hi,

    We have a problem with the self hosted build license server. We have 3 machines building our games using batch mode and a shared build server license for up to 3 machines.

    Builds work most of the time, but a few times every day we have build fails with this error:

    [Licensing::Module] License is not active (com.unity.editor.headless). HasEntitlements will fail.

    Below is the command we use to start the build. The problem happens in the same way on all machines. Both on Windows and OSX.

    /Applications/Unity/Hub/Editor/2019.4.15f1/Unity.app/Contents/MacOS/Unity \
    -batchmode \
    -quit \
    -buildTarget "iPhone" \
    -projectPath "$PROJECT_PATH" \
    -username XXXX@turborilla.com \
    -password XXXX \
    -logFile - \
    -executeMethod ProjectBuilder.Build


    We have several different versions of Unity installed for different projects. The project here is using Unity 2019.4.31.

    The licensing server is installed on one of the build machines which uses Windows. The version of the build licensing server is 1.9.0.

    These are all physical machines ant NOT virtual machines running in Docker or similar.

    Here's the relevant log from a successful build:
    14:08:45
    [UnityConnectServicesConfig] "licensingServiceBaseUrl" is set to "http://192.168.1.84:8091
    14:08:46
    [LicensingClient] ERROR Error 10 while verifying Licensing Client signature (path: 9608, process Id: C:/Program Files/Unity/Hub/Editor/2018.4.32f1/Editor/Data/Resources/Licensing/Client/Unity.Licensing.Client.exe)
    14:08:46
    [Licensing::Module] LicensingClient has failed validation
    14:08:46
    [LicensingClient] ERROR Failed to connect to local IPC
    14:08:46
    [Licensing::Module] Failed to connect to channel: LicenseClient-Developer-2019.4.31
    14:08:46
    [Licensing::Module] Successfully launched the LicensingClient
    14:08:47
    [Licensing::Module] Successfully connected to LicensingClient on channel: LicenseClient-Developer-2019.4.31
    14:08:47
    [Licensing::Module] Successfully launched and connected to LicensingClient
    14:08:47
    Entitlement-based licensing initiated
    14:08:48
    [LicensingClient] Licenses Updated successfully in LicensingClient
    14:08:48
    Built from '2019.4/staging' branch; Version is '2019.4.31f1 (bd5abf232a62) revision 12409535'; Using compiler version '191627012'
    14:08:48
    OS: 'Windows 10 Pro; OS build 19043.1237; Version 2009; 64bit' Language: 'en' Physical Memory: 130741 MB
    14:08:48
    [Licensing::Module] Serial number assigned to: "LicenseServer_5772850643506_1_904b3fae-38e9-4a98-892d-389c1c8dXXXX"\nBatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 1
    14:08:48
    [Package Manager] Server::Start -- Port 59512 was selected


    And here's the relevant log from a failed build:
    15:31:43
    [UnityConnectServicesConfig] "licensingServiceBaseUrl" is set to "http://192.168.1.84:8091
    15:31:44
    [LicensingClient] ERROR Error 10 while verifying Licensing Client signature (path: 4208, process Id: C:/Program Files/Unity/Hub/Editor/2018.4.32f1/Editor/Data/Resources/Licensing/Client/Unity.Licensing.Client.exe)
    15:31:44
    [Licensing::Module] LicensingClient has failed validation
    15:31:44
    [LicensingClient] ERROR Failed to connect to local IPC
    15:31:44
    [Licensing::Module] Failed to connect to channel: LicenseClient-Developer-2019.4.31
    15:31:44
    [Licensing::Module] Successfully launched the LicensingClient
    15:31:46
    [Licensing::Module] Successfully connected to LicensingClient on channel: LicenseClient-Developer-2019.4.31
    15:31:46
    [Licensing::Module] Successfully launched and connected to LicensingClient
    15:31:46
    Entitlement-based licensing initiated
    15:31:46
    [LicensingClient] Licenses Updated successfully in LicensingClient
    15:31:46
    Built from '2019.4/staging' branch; Version is '2019.4.31f1 (bd5abf232a62) revision 12409535'; Using compiler version '191627012'
    15:31:46
    OS: 'Windows 10 Pro; OS build 19043.1237; Version 2009; 64bit' Language: 'en' Physical Memory: 130741 MB
    15:31:46
    [Licensing::Module] License is not active (com.unity.editor.headless). HasEntitlements will fail.
    15:31:46
    BatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 0
    15:31:46
    No valid Unity Editor license found. Please activate your license.
    15:31:46
    Exiting without the bug reporter. Application will terminate with return code 0
    15:31:46
    Process exited with code 0


    Any help is appreciated. Thanks!
     
    Last edited: Oct 12, 2021