Question by
Briggybros · Oct 30, 2017 at 11:21 AM ·
licensecommand-linebatchmode
Commandline -batchmode errors due to license update
Hello, I'm trying to have my unity project test and build (android) on a remote server (using Travis linked to github). I have a build.sh which is as follows:
#! /bin/sh
/opt/Unity/Editor/Unity \
-batchmode \
-force-free \
-quit \
-nographics \
-logFile $(pwd)/unity.log \
-projectPath $(pwd) \
-buildTarget android \
-executeMethod Build.PerformBuild
cat unity.log
echo "Is the apk there?"
ls Build/android
I have also tried adding the -username and -password arguments, but the problem persists. When building the project, I get the following error:
DisplayProgressbar: 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: 216)
This would seem to me that Unity is trying to open some GUI to do with licenses even when in batchmode? Is there any way I can get this to build?
Comment
Answer by TheBored · Oct 31, 2017 at 12:03 AM
Prospects not looking good...
https://forum.unity.com/threads/cant-get-license-in-headless-nographics-mode-timeout-error.479960/
Your answer
![](https://koobas.hobune.stream/wayback/20220612142152im_/https://answers.unity.com/themes/thub/images/avi.jpg)