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

Activate License Task succeeds even though login fails #183

Open
johannesvollmer opened this issue Sep 15, 2021 · 4 comments
Open

Activate License Task succeeds even though login fails #183

johannesvollmer opened this issue Sep 15, 2021 · 4 comments

Comments

@johannesvollmer
Copy link
Contributor

The logs contain the message UnityConnectLoginRequest: Failed to login - please check your username or password . But the task has the green icon, as if it was successfull, and the next task starts.

@johannesvollmer
Copy link
Contributor Author

Later another error appeared in the logs, maybe as a result of the previous error:

Entitlement-based licensing initiated
[Licensing::Module] Error: Access token is unavailable
[Licensing::Module] Error: Failed to activate entitlement license

@johannesvollmer
Copy link
Contributor Author

johannesvollmer commented Sep 15, 2021

After manually logging in once on the custom azure agent, manually activating and then returning the license, it still does not work. Now that no license is there at all, the license activation task fails successfully.

...
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
.[Licensing::Module] Channel doesn't exist: "LicenseClient-unity-build-1$"
[Licensing::Module] Successfully launched the LicensingClient (PId: 9528)
[Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-unity-build-1$" (connect: 0.92s, validation: 0.10s, handshake: 1.20s)
[Licensing::Module] Connected to LicensingClient (PId: 9528, launch time: 0.00, total connection time: 2.23s)
Entitlement-based licensing initiated
[Licensing::Module] Error: Access token is unavailable
[Licensing::Module] Error: Failed to activate entitlement license
BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...

/* several minutes passed here */

Unwatch  C:\agent\_work\2\s\Logs\UnityActivationLog_2021-09-15-14-09-12.log
The process 'C:\Program Files\Unity\Hub\Editor\2021.1.3f1\Editor\Unity.exe' failed with exit code 1

@johannesvollmer
Copy link
Contributor Author

Connecting to the azure agent, but instead of returning the license, we activated a unity personal license, this made the original error appear again.

@johannesvollmer
Copy link
Contributor Author

johannesvollmer commented Sep 15, 2021

As it turns out, even though unity asks for a username, it actually expects an email address. The login works now.

But the original error can still happen, the falling login does not trigger a task failure.

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

1 participant