License activation issue
I'm currently trying to setup a CI pipeline. I'm already stuck at the license activation. I already found out that the .alf file needs to be created on the CI machine itself and not on an other machine. I now successfully created an .ulf file and added it to the environment vars, it's content is successfully written to /root/.local/share/unity3d/Unity/Unity_lic.ulf
(verified).
When running the build script I get following output (played around with -nographics
here, but makes no difference):
/opt/Unity/Editor/Unity -nographics -batchmode -manualLicenseFile "$LICENSE_FILE" -logfile
CreateDirectory '/root/.cache/unity3d' failed: (current dir: /builds/ams-isd/big-tomato-ar-app)
Load manual activation license file.
LICENSE SYSTEM [2019620 8:29:2] Could not find digest XML element in license file. Error: empty tag.
LICENSE SYSTEM [2019620 8:29:2] Load license file from: /root/.local/share/unity3d/Unity/Unity_lic.ulf
LICENSE SYSTEM [2019620 8:29:2] Could not find digest XML element in license file. Error: empty tag.
LICENSE SYSTEM [2019620 8:29:2] Could not find digest XML element in license file. Error: empty tag.
License file loaded.
I also tried to activate the license by passing -password
and -username
after deleting /root/.local/share/unity3d/Unity/Unity_lic.ulf
but received an timeout during activation as mentioned in #43 (CI and local).
${UNITY_EXECUTABLE:-xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' /opt/Unity/Editor/Unity} -projectPath $(pwd) -quit -batchmode -buildTarget $BUILD_TARGET -customBuildTarget $BUILD_TARGET -customBuildName $BUILD_NAME -customBuildPath $BUILD_PATH -customBuildOptions AcceptExternalModificationsToPlayer -executeMethod BuildCommand.PerformBuild -logFile -username "$UNITY_USERNAME" -password "$UNITY_PASSWORD"
Unable to load libnotify
CreateDirectory '/root/.cache/unity3d' failed: (current dir: /builds/ams-isd/big-tomato-ar-app)
DisplayProgressbar: Unity license
[0620/083349:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[0620/083349:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
LICENSE SYSTEM [2019620 8:33:50] Starting license activation with account xxxxxxx@gmail.com
LICENSE SYSTEM [2019620 8:33:50] Opening https://license.unity3d.com/update/poll?cmd=9&tx_id=ef709d63915cd4aa890e574f7cc6a47b
LICENSE SYSTEM [2019620 8:33:50] Posting <?xml version="1.0" encoding="UTF-8"?><root><SystemInfo><IsoCode>en</IsoCode><UserName>(unset)</UserName><OperatingSystem>Linux 4.9 Ubuntu 16.04 64bit</OperatingSystem><OperatingSystemNumeric>409</OperatingSystemNumeric><ProcessorType>Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz</ProcessorType><ProcessorSpeed>2700</ProcessorSpeed><ProcessorCount>4</ProcessorCount><ProcessorCores>4</ProcessorCores><PhysicalMemoryMB>1998</PhysicalMemoryMB><ComputerName>716cb25a196f</ComputerName><ComputerModel>PC</ComputerModel><UnityVersion>2018.2.6f1</UnityVersion><SupportedLicenseVersion>6.x</SupportedLicenseVersion></SystemInfo><License id="Terms"><MachineID Value="2jmj7l5rSw0yVb/vlWAFd/YBwk=" /><MachineBindings><Binding Key="1" Value="" /></MachineBindings><UnityVersion Value="2018.2.6f1" /></License></root>
LICENSE SYSTEM [2019620 8:33:51] Received https://license.unity3d.com/update/poll?cmd=9&tx_id=ef709d63915cd4aa890e574f7cc6a47b
LICENSE SYSTEM [2019620 8:33:51] Headers:
HTTP/1.1 200 OK
sc-request-id: 30a8aa0c-b41b-4470-ba58-6a3633bbd5e1
sc-token-expires-in: 4907
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Vary: Accept-Encoding
Content-Encoding: deflate
Content-Type: text/plain
Date: Thu, 20 Jun 2019 08:33:50 GMT
Content-Length: 117
Cancelling DisplayDialog: Failed to activate/update license. Timeout occured while trying to update license. Please try again later or contact support@unity3d.com
This should not be called in batch mode.
(Filename: /home/builduser/buildslave/unity/build/Editor/Platform/Linux/EditorUtility.cpp Line: 241)
I'm using a Unity Personal license and the gableroux/unity3d:2018.2.6f1
image.
I'm aware that this is not a problem with this project but most likely with Unity itself bu I hope somebody here came across this before! Nothing useful is on the web about this...