Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by thehemi · Mar 06, 2018 at 09:02 PM · licensecommand-linebatchmode

Unity Command Line Fails to Get license

Using command line:

  -batchmode -serial SC-xxxx-xxxx-GMX4-NTDF-xxxx -username "unity-builds3@xxxx.net" -password "xxxx" -runOnlySmokeTests -executeMethod TestToolBuildScript.RunPlayModeTests

getting errors:

 BatchMode: Unity has not been activated with a valid License. Could be a new activation or renewal...
 
 (Filename: C:/buildslave/unity/build/Editor/Platform/Windows/WinEditorMain.cpp Line: 821)
 
 DisplayProgressbar: Unity license
 Cancelling DisplayDialog: Updating license failed Failed to update license within 60 seconds. Exiting.
 This should not be called in batch mode.
 
 (Filename: C:/buildslave/unity/build/Editor/Platform/Windows/EditorUtility.cpp Line: 1160)
 
 Failed!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image plockhartt17 · Jun 26, 2018 at 09:54 AM 0
Share

Did you get anywhere with this? Also having the same problem. Thanks

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by plockhartt17 · Jun 26, 2018 at 02:02 PM

We have a problem where our TeamCity agents do not successfully run a bat file that registers a unity license for a given platform (eg ps4/switch require different licenses). The command similar to what you are running does not successfully create a Unity license file in eg C:\ProgramData\Unity\Unity_v5.x.ulf

Running the scripts manually does do it successfully. As a temporary solution, I have manually ran the bat file and generated a .ulf file for each of the 4 platforms we need to support. At build time, before unity is launched, the platform-specific license is automatically copy+replaced into the ProgramData\Unity folder, replacing what was originally there. Whether this will cause problems in a few days as Unity checks the license is unknown, but as of writing our builds are up and running again. Not exactly ideal....

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

75 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Batchmode not working 1 Answer

How to execute async method in batchmode correctly?,Questions about how to execute async method in batchmode 1 Answer

Activate Unity license from CLI for CI 1 Answer

Unity standalone crash when lanughing on batchmode 0 Answers

Batchmode license activation error 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges