get-activation-file succeeding but giving a 0kb file. Unity Version 2021.2.7f1
Activation problem
My team recently upgraded from 2019.4.14f1 to 2021.2.7.
And we've been trying to get the new license file so the CI would start working again. And while the build succeeds and we get the Congrats method.
The license file is 0kb with nothing in it for text
Technical details
- Which CI Service are you using?
Using gitlab-ci. However the runner is on Google Cloud Platform
- Which docker image are you using?
unityci/editor:2021.2.7f1-webgl-0
- Did it work with a previous version?
It worked with gableroux/unity3d:2019.4.14f1-webgl
- Do you have a link to your failing pipeline or job?
It's a private repo.
- Paste related output log here:
Preparing the "docker" executor 00:02
Using Docker executor with image unityci/editor:2021.2.7f1-webgl-0 ...
Pulling docker image unityci/editor:2021.2.7f1-webgl-0 ...
Using docker image sha256:5b064de831855fb50744611b9147a9bbccf14a6c41fa01d456c4390c3779ff30 for unityci/editor:2021.2.7f1-webgl-0 with digest unityci/editor@sha256:a4a39baaca32bdcdea66eb42d7da4d7edb2b41027826e71a50ecedbbb5f0626f ...
Preparing environment 00:01
Running on runner-snawfjxw-project-4-concurrent-0 via gitlab-runner...
Getting source from Git repository 00:04
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/tevolve/tevolve-game/.git/
Checking out 27efebb9 as master...
Removing AddressablesData/
Updating/initializing submodules recursively with git depth set to 50...
Synchronizing submodule url for 'Packages/Scene-Fader-Manager'
Synchronizing submodule url for 'Packages/Singleton-Behavior'
Synchronizing submodule url for 'Packages/State-Machine-Callback'
Entering 'Packages/Scene-Fader-Manager'
Entering 'Packages/Singleton-Behavior'
Entering 'Packages/State-Machine-Callback'
Entering 'Packages/Scene-Fader-Manager'
HEAD is now at 80ce7d5 Update CHANGELOG.md
Entering 'Packages/Singleton-Behavior'
HEAD is now at 5a20cf0 Remove duplicate null checking
Entering 'Packages/State-Machine-Callback'
HEAD is now at 09d3b3a Update sample project
Entering 'Packages/Scene-Fader-Manager'
Entering 'Packages/Singleton-Behavior'
Entering 'Packages/State-Machine-Callback'
Executing "step_script" stage of the job script 00:01
Using docker image sha256:5b064de831855fb50744611b9147a9bbccf14a6c41fa01d456c4390c3779ff30 for unityci/editor:2021.2.7f1-webgl-0 with digest unityci/editor@sha256:a4a39baaca32bdcdea66eb42d7da4d7edb2b41027826e71a50ecedbbb5f0626f ...
$ chmod +x ./ci/get_activation_file.sh && ./ci/get_activation_file.sh
/usr/bin/xvfb-run: 184: /usr/bin/xvfb-run: /opt/Unity/Editor/Unity: not found
./unity3d.alf
### Congratulations! ###
./unity3d.alf was generated successfully!
### Next steps ###
Complete the activation process manually
1. Download the artifact which should contain ./unity3d.alf
2. Visit https://license.unity3d.com/manual
3. Upload ./unity3d.alf in the form
4. Answer questions (unity pro vs personal edition, both will work, just pick the one you use)
5. Download 'Unity_v2019.x.ulf' file (year should match your unity version here, 'Unity_v2018.x.ulf' for 2018, etc.)
6. Copy the content of 'Unity_v2019.x.ulf' license file to your CI's environment variable 'UNITY_LICENSE_CONTENT'. (Open your project's parameters > CI/CD > Variables and add 'UNITY_LICENSE_CONTENT' as the key and paste the content of the license file into the value)
Once you're done, hit retry on the pipeline where other jobs failed, or just push another commit. Things should be green
(optional) For more details on why this is not fully automated, visit https://gitlab.com/gableroux/unity3d-gitlab-ci-example/issues/73
Uploading artifacts for successful job 00:02
Uploading artifacts...
./unity3d.alf: found 1 matching files and directories
Uploading artifacts as "archive" to coordinator... ok id=1807 responseStatus=201 Created token=jnMJpEJ3
Cleaning up file based variables 00:00
Job succeeded
Edited by Gabriel Le Breton