Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Our response to Improbable’s blog post (and why you can keep working on your SpatialOS game). Read more here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Activating Unity free in batchmode

Discussion in 'Editor & General Support' started by Velfyr, May 24, 2018.

  1. Velfyr

    Velfyr

    Joined:
    Oct 1, 2016
    Posts:
    1
    Hello!

    I have an issue when activating Unity free license through batch mode in Windows.
    I'm using a CI system running Windows (AppVeyor) that installs Unity and tries to build my software on a fresh machine.
    However, after Unity is installed any command line interaction gets stuck in the license check, even if I provide my credentials to the command with the -username and -password flags.

    Even so, I've seen that this is not an issue in other CI systems based on Mac Os (such as Travis) as the Mac version of the editor doesn't require the license in batch mode.

    Any clues on how to solve this?

    Thanks ahead!

    Logs of the activation process:
    BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...

    (Filename: C:/buildslave/unity/build/Editor/Platform/Windows/WinEditorMain.cpp Line: 805)
    DisplayProgressbar: Unity license
    User ***** logged in successfully
    LICENSE SYSTEM [2018520 7:56:4] Starting license activation with account *****
    LICENSE SYSTEM [2018520 7:56:4] Opening https://license.unity3d.com/update/poll?cmd=9&tx_id=f75aedb9b9ab8444db4324d026a1f6d3
    LICENSE SYSTEM [2018520 7:56:4] Posting <?xml version="1.0" encoding="UTF-8"?><root><SystemInfo><IsoCode>en</IsoCode><UserName>appveyor</UserName><OperatingSystem>Windows 8.1 (6.3.0) 64bit</OperatingSystem><OperatingSystemNumeric>630</OperatingSystemNumeric><ProcessorType>Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz</ProcessorType><ProcessorSpeed>2600</ProcessorSpeed><ProcessorCount>2</ProcessorCount><ProcessorCores>2</ProcessorCores><PhysicalMemoryMB>1535</PhysicalMemoryMB><ComputerName>APPVYR-WIN</ComputerName><ComputerModel>Virtual Machine (Microsoft Corporation)</ComputerModel><UnityVersion>2017.4.3f1</UnityVersion><SupportedLicenseVersion>6.x</SupportedLicenseVersion></SystemInfo><License id="Terms"><MachineID Value="Lm/o/LytXd2z54ij661pSVaJ1/o=" /><MachineBindings><Binding Key="1" Value="00254-20000-00000-AA643" /><Binding Key="4" Value="NDE4NC03ODU4LTI2NTAtNjMwNS00Nzc0LTY0NTgtNzQ=" /></MachineBindings><UnityVersion Value="2017.4.3f1" /></License></root>
    LICENSE SYSTEM [2018520 7:56:6] Received https://license.unity3d.com/update/poll?cmd=9&tx_id=f75aedb9b9ab8444db4324d026a1f6d3
    LICENSE SYSTEM [2018520 7:56:6] Headers:
    HTTP/1.1 200 OK
    Server: nginx/1.2.1
    Date: Sun, 20 May 2018 07:56:05 GMT
    Status: 200 OK
    X-Frame-Options: SAMEORIGIN
    X-XSS-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    ETag: W/"e35360cd0acd9add7589eabea2526588"
    Cache-Control: max-age=0, private, must-revalidate
    Set-Cookie: _activation_session=Rm9iTmJMdEh1TVhWVVFpRGppUno1TEQ5Z1RYVmgwa2lrUXVYQTRpaTRaYU83UUhKL05xYjhjbzVaMVNDOWFUbzdRUDZOTTRiRUx4ckdSajE2TFlNN0JOVTgvaWVtcmtnWlVoQWRpR3VkNG1kMElKL2hWOHYzVGx3Tk1UbzVIOFhzNmNaV2lUTGhiVUVBUXJxamQxRE9nPT0tLVdiamlHVkxwWHBDMTAybkJGYU9lQnc9PQ%3D%3D--aacff72d725e44235789cfe6318f0dc70f84f0c7; path=/; secure; HttpOnly
    Set-Cookie: SERVERID=varnish01; path=/
    X-Request-Id: 991d4c38-3226-47c3-b396-f0a876c76789
    X-Runtime: 0.467767
    Accept-Ranges: bytes
    X-Varnish: 1727163858
    Age: 0
    Via: 1.1 varnish
    sc-request-id: 1c0e628c-7cae-4447-bfb3-fca78a6b4988
    Vary: Accept-Encoding
    sc-token-expires-in: 3598
    Content-Type: application/xml; charset=utf-8
    Content-Length: 121

    Cancelling DisplayDialog: Updating license failed Failed to update license within 60 seconds. Exiting.
    This should not be called in batch mode.

    (Filename: C:\buildslave\unity\build\Editor/Platform/Windows/EditorUtility.cpp Line: 1137)
     
    kontotto likes this.
  2. kregus

    kregus

    Joined:
    Dec 13, 2014
    Posts:
    5
  3. StephenHodgson-Valorem

    StephenHodgson-Valorem

    Joined:
    Mar 8, 2017
    Posts:
    131
    Also having this problem with pro license.

    Interesting that you're running batch mode but then getting a dialog that shouldn't be called in batch mode. Likely a bug.