I’m trying to set up an automatic test and build system listening to repository changes similar to Unity cloud or Jenkins. I have managed to “install” the editor and figured out the dependencies I needed but when I try to run the project the lecense activation fails on me with the following message:
Initiating legacy licensing moduleDisplayProgressbar: Unity license
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: 257)
I tried with the last version 2018.3 and both with CentOS 7 and Ubuntu 18.04 Minimal with the same result. I also tried with personal activation, tried moving the CACerts.pem file with no luck as well.
If I run the same command in my dev maching wich has ubuntu 18.04 with Gnome it works just fine, so maybe the fact that I dont have a desktop environment is making unity fail for some reason.
[0214/100328: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.
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: 257)
The same command will work totally fine on mac so I can ensure that my credentials are correct. It looks like to me, before even the first line of my the output, acquiring the license fails or is ignored and then it attempts to open the login popup (which is weird cause I’m running with the -nographics flag).
The Cancelling DisplayDialog: happens after a 30-60 second timeout and is probably irrelevant.
This should not be run in batch mode seems like it could be something thats causing issues but running without the -batchmode flag just gives the same output interspersed with some more random warnings for not having a graphics display
For repo steps I downloaded the installer from https://beta.unity3d.com/download/6e9a27477296/UnitySetup-2018.3.0f2 then ran it with unity-installer --unattended --components=Unity,WebGL --install-location=xxxx then installed the dependencies gtk3, mesa-libGLU, GConf2, and libpng before finally running Unity -quit -batchmode -nographics -serial xxxx -username "xxxx" -password "xxxx" -logfile
I’m not sure if this is linux installer specific or CentOS specific
Initiating legacy licensing moduleDisplayProgressbar: Unity license
[0708/205217:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See chromium - An open-source project to help move the web forward. - Monorail for more information on developing with the sandbox on.
[0708/205217:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
[UnityConnectServicesConfig] config is NOT valid, switching to default
UnityConnectLoginRequest: Failed to login - please check your username or password
No sufficient permissions while processing request “https://core.cloud.unity3d.com/api/login”, HTTP error code 401
.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.
The culprit was using quotes for the password and special characters, that was likely causing some misinterpretation on the shell command line. Simplifying the password did the trick. I found it by iteration using another account that was actually working.