Closed DakotaIrsik closed 11 months ago
FWIW, I'm reasonably sure this is because since it's a Free month promotion for the unity pro the license is "TECHNICALLY" labeled as a "Trial" as reported in Unity Hub.
Ticket submitted to unity:
GameCI is built by the community. Unity doesn't officially support GameCI. If you need this urgently, I would recommend having a look at the related activation code in the actions.
Relevant error messages are the following:
Visit https://game.ci/docs/github/activation for more
details on how to set up one of the possible activation strategies.
Error: No valid license activation strategy could be determined. Make sure to provide UNITY_EMAIL, UNITY_PASSWORD, and either a UNITY_SERIAL or UNITY_LICENSE. Otherwise please use UNITY_LICENSING_SERVER. See more info at https://game.ci/docs/github/activation
Error: Build failed with exit code 1
The error we are seeing comes from the following script in the builder repository:
According to the script, you are seing this error message because the shell script did not match the described condition: https://github.com/game-ci/unity-builder/blob/ff23166e3002a9f3f869621650dc992e657e17ce/dist/platforms/ubuntu/steps/activate.sh#L3
We don't currently support SSO for login, it must use email/password for Unity itself. So if you're trying to use your gmail password that is likely why it doesn't work. See if you can setup your account to be non-SSO for login and make sure to pass those updated credentials through for activation
We don't currently support SSO for login, it must use email/password for Unity itself. So if you're trying to use your gmail password that is likely why it doesn't work. See if you can setup your account to be non-SSO for login and make sure to pass those updated credentials through for activation
When I sign out of unity and close all browsers then incognito I am able to sign in with my username and password without clicking the google SSO at the bottom, fwiw.
GameCI is built by the community. Unity doesn't officially support GameCI. If you need this urgently, I would recommend having a look at the related activation code in the actions.
From your linked repository, here is a detailed full log Relevant error messages are the following:
Visit https://game.ci/docs/github/activation for more details on how to set up one of the possible activation strategies. Error: No valid license activation strategy could be determined. Make sure to provide UNITY_EMAIL, UNITY_PASSWORD, and either a UNITY_SERIAL or UNITY_LICENSE. Otherwise please use UNITY_LICENSING_SERVER. See more info at https://game.ci/docs/github/activation Error: Build failed with exit code 1
The error we are seeing comes from the following script in the builder repository:
According to the script, you are seing this error message because the shell script did not match the described condition:
My thinking is that it's because my license is "technically" classified as a "Trial" haven't looked over the UnityBuilder source code, in which case hopefully support can help. I tried personal (and that combination of repo secrets) and the pro license serial, both with no luck.
Odd I must've misunderstood the original post when you were talking about SSO then. Were you getting successful activations before using this trial? Did you make sure to update the input from UNITY_LICENSE
to UNITY_SERIAL
with the serial for pro?
The error you're getting basically is saying the action didn't get either UNITY_SERIAL, UNITY_EMAIL, or UNITY_PASSWORD passed into the action properly, this hasn't even reached Unity yet so they are unlikely to be able to help.
Odd I must've misunderstood the original post when you were talking about SSO then. Were you getting successful activations before using this trial? Did you make sure to update the input from
UNITY_LICENSE
toUNITY_SERIAL
with the serial for pro?The error you're getting basically is saying the action didn't get either UNITY_SERIAL, UNITY_EMAIL, or UNITY_PASSWORD passed into the action properly, this hasn't even reached Unity yet so they are unlikely to be able to help.
Probably part of the problem, when i was previewing the features for Unity Pro I saw DevOps and was reading that it was a requirement. so I technically had a personal license, but had never used the file, when I first tried it was with the serial iirc. Then afterward all sorts of revoking / different combinations.
Only discussed SSO because i'm fairly familiar with identity providers and anticipated it might be a problem, in that vein I signed in to id.unity and there was a "reset password" which i followed, afterward I was then able to sign in to the same acscount using SSO OR my SSO email and newly set PW -> continue following tutorial.
Can you post your workflow here? The link to your repo is private
I am incompetant, and following the mostly "complete" example I left out the reference to the env vars, so obv no matter which combo I tried within the repo secrets it wasn't going to work, not sure if this is TF'ed or in GH somewhere, but i'd suggest a revision here to include the email and password env vars, and a comment
Thanks for the help and tolerance of my lack of attention to detail, and above all, great work on this repo!!!
@webbertakken @davidmfinol @GabLeRoux Thoughts on just removing that section from the builder docs? My thinking is that section is more of an API reference and people should be using the full workflows from the getting started section. This way we have one less place to update redundant examples and potentially miss stuff like we did here.
Just my 2c, i've been doing C# for over a decade (winforms, webforms, silverlight, net core, maui, xamarin), and when I started learning unity, my biggest fear was the ability to deploy to platforms. this greatly helped me realize it wasn't that bad and this "complete example" was nearly copy/pastable. It makes me honestly regret my purchase of unity pro, having briefly looked at their automation build stuff. It works, but so does this. 🤷
I think it's better to keep that section and just update it with the new requirements. It's useful to have an example that shows building for all platforms in parallel. We could move this example to the getting started section, but I don't think it cleanly fits in there. Also, we shouldn't be significantly updating how the builder action works that often, so I wouldn't worry about missing it again in future updates.
We could use a react component that's shared across both perhaps? But as David mentioned it might not cleanly fit in the getting started section.
Bug description
Cannot login with sso valid credentials with UNITY_SERIAL. use SSO @gmail to sign in to unity, and same account after resestting password and being able to sign in at id.unity.com doesn't work, and now the personal one doesn't work either.
using workflow here: https://github.com/DakotaIrsik/NeonLadder/blob/main/.github/workflows/unity-builds.yml
How to reproduce
Use
UNITY_EMAIL
UNITY_PASSWORD
UNITY_SERIAL
produces all licens checks fail:
iOS build example
Expected behavior
The builds to pass
Additional details
It's possible I'm misconfiguring, but I possibly this is also a SSO request which I couldn't find, and since I successfully logged in to id.unity, feels like a bug.