Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licensing issue on Windows runner #484

Closed
timcassell opened this issue Dec 15, 2022 · 2 comments
Closed

Licensing issue on Windows runner #484

timcassell opened this issue Dec 15, 2022 · 2 comments

Comments

@timcassell
Copy link

timcassell commented Dec 15, 2022

I'm not sure what I'm doing wrong. I don't have this issue with Ubuntu.

BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal... 

UnityConnectLoginRequest: Failed to login - please check your username or password 

I triple checked my email and password.

I tried to create the activation file with the Request Activation File action, but it didn't work with Windows, so I created it on my local Win7 machine.

runs-on: windows-2019
- name: Build Project
  uses: game-ci/unity-builder@v2
  env:
    UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_2019_X_WINDOWS }}
    UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
    UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
  with:
    projectPath: IL2CPP_Tests/IL2CPP_Tests_2019_4
    targetPlatform: StandaloneWindows64
    allowDirtyBuild: true
Full log

with:
    projectPath: IL2CPP_Tests/IL2CPP_Tests_2019_4
    targetPlatform: StandaloneWindows64
    allowDirtyBuild: true
    unityVersion: auto
    versioning: Semantic
    androidAppBundle: false
    awsBaseStackName: game-ci
    cloudRunnerCluster: local
    kubeVolumeSize: 5Gi
  env:
    UNITY_LICENSE: ***
    UNITY_EMAIL: ***
    UNITY_PASSWORD: ***
Warning: 
      Library folder does not exist.
      Consider setting up caching to speed up your workflow,
      if this is not your first build.
    
true

Warning: From https://github.com/timcassell/ProtoPromise
 * [new branch]      asyncvoid-override    -> origin/asyncvoid-override
 * [new branch]      master                -> origin/master
 * [new branch]      unity-standalone-test -> origin/unity-standalone-test
 * [new tag]         v0.10                 -> v0.10
 * [new tag]         v0.10.1               -> v0.10.1
 * [new tag]         v0.10.2               -> v0.10.2
 * [new tag]         v0.11.0               -> v0.11.0
 * [new tag]         v0.8                  -> v0.8
 * [new tag]         v0.9                  -> v0.9
 * [new tag]         v0.9.1                -> v0.9.1
 * [new tag]         v1.0.0                -> v1.0.0
 * [new tag]         v1.0.1                -> v1.0.1
 * [new tag]         v1.0.2                -> v1.0.2
 * [new tag]         v2.0.0                -> v2.0.0
 * [new tag]         v2.0.1                -> v2.0.1
 * [new tag]         v2.0.2                -> v2.0.2
 * [new tag]         v2.1.0                -> v2.1.0
 * [new tag]         v2.2.0                -> v2.2.0
 * [new tag]         v2.3.0                -> v2.3.0

"C:\Program Files\Git\bin\sh.exe"
16
16

v2.3.0-74-gd2bc99b

    Directory: C:\github\workspace\build


Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          
d-----       12/15/2022  10:53 PM                StandaloneWindows64           

###########################
#    Project directory    #
###########################



    Directory: C:\github\workspace\IL2CPP_Tests\IL2CPP_Tests_2019_4


Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          
d-----       12/15/2022  10:37 PM                Assets                        
d-----       12/15/2022  10:37 PM                Packages                      
d-----       12/15/2022  10:37 PM                ProjectSettings               

###########################
#    Building project     #
###########################

[LicensingClient] ERROR Failed to connect to local IPC
[Licensing::Module] Failed to connect to channel: LicenseClient-ContainerAdministrator
[Licensing::Module] Successfully launched the LicensingClient
[Licensing::Module] Successfully connected to LicensingClient on channel: LicenseClient-ContainerAdministrator
[Licensing::Module] Successfully launched and connected to LicensingClient
Entitlement-based licensing initiated
[LicensingClient] Licenses Updated successfully in LicensingClient
BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal... 
(Filename: C:\buildslave\unity\build\Platforms/Windows/Modules/LicensingLegacy/WinILicensingAdapter.cpp Line: 51)

DisplayProgressbar: Unity license
[UnityConnectServicesConfig] config is NOT valid, switching to default
[1215/225312:ERROR:gpu_info_collector_win.cc(103)] Can't retrieve a valid WinSAT assessment.
Cancelling DisplayDialog: Failed to activate/update license Missing or bad username or password. Please try again using valid credentials or contact support@unity3d.com
This should not be called in batch mode. 
(Filename: C:\buildslave\unity\build\Editor/Platform/Windows/EditorUtility.cpp Line: 1120)

Exiting without the bug reporter. Application will terminate with return code 1
Build failed, with exit code False"

###########################
#       Build output      #
###########################


[LicensingClient] ERROR Failed to connect to local IPC
[Licensing::Module] Failed to connect to channel: LicenseClient-ContainerAdministrator
[Licensing::Module] Successfully launched the LicensingClient
[Licensing::Module] Successfully connected to LicensingClient on channel: LicenseClient-ContainerAdministrator
[Licensing::Module] Successfully launched and connected to LicensingClient
Entitlement-based licensing initiated
[LicensingClient] Licenses Updated successfully in LicensingClient

LICENSE SYSTEM [20221215 22:54:13] Failed to return license: Unity license has not been activated, and cannot be returned.
Exiting without the bug reporter. Application will terminate with return code 1

Also, the step passed even though the build failed, but it seems that's already known (#325).

@timcassell
Copy link
Author

I created a new account and updated my secrets with it, and the build succeeded.

@webbertakken
Copy link
Member

Wow. That's surprising. Thanks for sharing your solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants