Unable to activate Unity free in batchmode
Hello,
I've opened a forum post a few days ago about an Issue I'm having with Unity free license activation in batchmode. I'll copy the post content here and leave a link in case someone wants to contribute there. Also, whenever I get an answer I'll update this question: https://forum.unity.com/threads/activating-unity-free-in-batchmode.533021/
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.
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:
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)
Your answer
Follow this Question
Related Questions
Assertion failed on expression: 'klass != NULL' while building for Android 1 Answer
Starting project with Unity Free and upgrading to Unity Pro later on. 1 Answer
Commandline -batchmode errors due to license update 1 Answer
Unity Hub License Error (licenseCore.updateLicense promise rejection) 0 Answers
Unity batch mode exits with error code 1 0 Answers