Skip to content

UnitySetupTask@2 timeout issue on license activation #296

@dorszpw

Description

@dorszpw

Unity Tools for Azure DevOps - Bug Report

Describe the bug

https://www.unitydevops.com/docs/tasks/unity-activate-license-task is deprecated so we want to migrate to
UnitySetupTask@2 on ADO CI to install Unity and activate license.

However, each time the license is activated the task waits 30sec for response and times out which fails the whole pipeline, unless we use continueOnError: true.
License is properly activated because next Unity build tasks succeed if we use continueOnError: true

To Reproduce

Agent name: 'Azure Pipelines 14'
Agent machine name: 'Mac-1748590136500'
Current agent version: '4.255.0'
Operating System
macOS
13.7.6
22H625
Runner Image
Image: macos-13
Version: 20250526.1184

  • task: UnitySetupTask@2
    continueOnError: true
    inputs:
    versionSelectionMode: 'specify'
    version: '2022.3.36f1'
    revision: '95a4219250e5'
    macOSArchitecture: 'x86_64'
    installIOSModule: true
    installMacMonoModule: true
    activateLicense: true
    account:
    username: $(username)
    password: $(password)
    serial: $(serial_key)

Same on latest macos MS agent

Agent name: 'Azure Pipelines 2'
Agent machine name: 'Mac-1748595683441'
Current agent version: '4.255.0'
Operating System
macOS
14.7.6
23H626
Runner Image
Image: macos-14
Version: 20250526.1288

Expected behavior

The task installs the Unity with specified version and activates license as well.

Actual behavior

The task installs the Unity with specified version but times out after 30secs after activating license, failing the task.

Your Setup

Azure DevOps MS hosted MacOS agent, details on top of this issue.

Agent Type

  • Hosted
  • Self Hosted

Build Targets

  • Windows
  • Android
  • iOS
  • macOS
  • Other (please specifiy)

Unity Version

2022.3.36f1 95a4219250e5

Additional context

Logs from activation:

Unity Editor version: 2022.3.36f1 (95a4219250e5)
Branch: 2022.3/staging
Build type: Release
Batch mode: YES
macOS version: Version 13.7.6 (Build 22H625)
Darwin version: 22.6.0
Architecture: x86_64
Running under Rosetta: NO
Available memory: 14336 MB
User xxx logged in successfully
[UnityConnect::TryLogin] Request Succeeded.
[Licensing::Module] Trying to connect to existing licensing client channel...
[Licensing::IpcConnector] Connection attempt to the License Client on channel: "LicenseClient-runner" failed because channel doesn't exist; code: "0x80000002"
Launching external process: /Applications/Unity/Hub/Editor/2022.3.36f1/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client
[Licensing::Module] Successfully launched the LicensingClient (PId: 15980)
[Licensing::IpcConnector] Successfully connected to the License Client on channel: "LicenseClient-runner" at "2025-05-30T08:23:34.032158Z"
[Licensing::Client] Error: Code 1 while verifying Licensing Client signature (process Id: 15980, path: "/Applications/Unity/Hub/Editor/2022.3.36f1/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client")
[Licensing::Module] Error: LicensingClient has failed validation; ignoring
[Licensing::Client] Handshaking with LicensingClient:
Version: 1.15.4+eee609c
Session Id: 558600e46a4740408fc9c977911a1ace
Correlation Id: 638e750c1a280c6e223f05bcdd756249
External correlation Id: 5134270749229003905
Machine Id: Jy3kYx3hE5Li0B7E94XjMIWtKUI=
[Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-runner" (connect: 1.70s, validation: 0.11s, handshake: 0.18s)
[Licensing::IpcConnector] Successfully connected to the License Notification on channel: "LicenseClient-runner-notifications" at "2025-05-30T08:23:34.320849Z"
[Licensing::Module] Connected to LicensingClient (PId: 15980, launch time: 0.04, total connection time: 1.99s)
[Licensing::Client] Successfully updated the access token
[Licensing::Module] Successfully updated the access token x0EQeRZJJw...
[Licensing::Client] Successfully processed license management request
[Licensing::Module] Successfully activated the entitlement license
[Licensing::Client] Successfully queried for the EntitlementGroupsDetails
[Licensing::Client] Error: Timed-out after 30.00s, waiting for ULFActivationResponse
[Licensing::Module] License activation has failed. Aborting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions