Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Command Line manualLicenseFile on Linux

Discussion in '2020.1 Beta' started by Roycon, May 13, 2020.

  1. Roycon

    Roycon

    Joined:
    Jul 10, 2012
    Posts:
    50
    Hi All

    I'm trying to use the new command line command "manualLicenseFile" to activate a docker unity build agent
    For some reason its failing to load the license file, but then says it loaded it?? and exits with code 1 (I've read elsewhere that means it worked??)

    Activate Logs:
    Code (CSharp):
    1. [Licensing::Module] Channel doesn't exist: "LicenseClient-root"
    2. [Licensing::Module] Successfully launched the LicensingClient (PId: 492)
    3. [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root"
    4. [SignatureVerifier] Application signature verification not supported on this platform.
    5. Entitlement-based licensing initiated
    6. [LicensingClient] Licenses updated successfully
    7. Load manual activation license file.
    8. LICENSE SYSTEM [2020513 2:11:17] Load license file from: Unity_v2020.x.ulf
    9. LICENSE SYSTEM [2020513 2:11:17] Failed to load license file from: Unity_v2020.x.ulf
    10. License file loaded.
    11. ##[error]Bash exited with code '1'.
    Build Logs:
    Code (CSharp):
    1. CreateDirectory '' failed: (current dir: )
    2. CreateDirectory '' failed: (current dir: )
    3. [Licensing::Module] Channel doesn't exist: "LicenseClient-root"
    4. [Licensing::Module] Successfully launched the LicensingClient (PId: 4666)
    5. [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root"
    6. [SignatureVerifier] Application signature verification not supported on this platform.
    7. Entitlement-based licensing initiated
    8. [LicensingClient] Licenses updated successfully
    9. DisplayProgressbar: Unity license
    10. [UnityConnectServicesConfig] config is NOT valid, switching to default
    11. Cancelling DisplayDialog: Failed to activate/update license Missing or bad username or password. Please try again using valid credentials or contact support@unity3d.com
    12. This should not be called in batch mode.
    13. (Filename: ./Editor/Platform/Linux/EditorUtility.cpp Line: 274)
    14.  
    I also cant figure out the "CreateDirectory '' failed: (current dir: ) " errors

    Everything I have read indicates that this should work fine, but I'm using the latest Unity (b7 about to upgrade to b8)


    EDIT:

    Not sure what that first Activate error was, I reactivated for b8 and it seemed happier:
    Activate Logs:
    Code (CSharp):
    1. [Licensing::Module] Channel doesn't exist: "LicenseClient-root"
    2. [Licensing::Module] Successfully launched the LicensingClient (PId: 393)
    3. [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root"
    4. [SignatureVerifier] Application signature verification not supported on this platform.
    5. Entitlement-based licensing initiated
    6. [LicensingClient] Licenses updated successfully
    7.  
    8. Load manual activation license file.
    9.  
    10. LICENSE SYSTEM [2020513 2:46:34] Load license file from: Unity_v2020.x.ulf
    11.  
    12. LICENSE SYSTEM [2020513 2:46:34] Next license update check is after 2020-05-14T02:45:02
    13.  
    14.  
    15. License file loaded.
    16.  
    17. ##[error]Bash exited with code '1'.
    18.  
    The build command still fails:
    Code (CSharp):
    1. CreateDirectory '' failed:  (current dir: )
    2. CreateDirectory '' failed:  (current dir: )
    3. [Licensing::Module] Channel doesn't exist: "LicenseClient-root"
    4. [Licensing::Module] Successfully launched the LicensingClient (PId: 4337)
    5. [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root"
    6. [SignatureVerifier] Application signature verification not supported on this platform.
    7. Entitlement-based licensing initiated
    8. [LicensingClient] Licenses updated successfully
    9.  
    10. LICENSE SYSTEM [2020513 2:51:8] Next license update check is after 2020-05-14T02:45:02
    11.  
    12. No valid Unity Editor license found. Please activate your license.
    13.  
    I have also tried using manualLicenseFile with every build command, not just once before and it still fails



    The Create Manual Activation File Command:
    /opt/Unity/Editor/Unity -quit -batchmode -nographics -logFile -createManualActivationFile

    The Activate Command:
    /opt/Unity/Editor/Unity -quit -batchmode -nographics -manualLicenseFile Unity_v2020.x.ulf

    The Build Command:
    /opt/Unity/Editor/Unity -batchmode -quit -nographics -projectPath . -executeMethod "Build.WindowsBuild" -silent-crashes -logFile ./log.log
     
    Last edited: May 13, 2020
    GabLeRoux likes this.
  2. 353917959

    353917959

    Joined:
    Dec 29, 2015
    Posts:
    2
    I also have this problem.
     
  3. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    I too have this problem

    Works fine in 2019.3
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Got this information form the team:

    "Running Unity inside a docker container is not officially supported, we know some users have gotten it to work, so you may have some luck if you choose to try it, but while we will make a best effort not to break docker scenarios that already work, we make no guarantees. We have definitely heard loud and clear that there is interest in support for this, so we are looking into it, but there is no ETA at this point."
     
    BasilUnity likes this.
  5. jamie_xr

    jamie_xr

    Joined:
    Feb 28, 2020
    Posts:
    67
    Is there any workaround for this?
     
  6. JohnAustinPontoco

    JohnAustinPontoco

    Joined:
    Dec 23, 2013
    Posts:
    283
    I'm not sure if this helps, but I was able to activate a Docker image with Unity 2020.1.2f1. I wrote it up here:
    https://johnaustin.io/articles/2020/running-unity-20201-in-docker

    I used
    Code (CSharp):
    1. /opt/Unity/Editor/Unity -quit -batchmode -nographics -logFile /dev/stdout -createManualActivationFile -username <> -password <>
    And then copied the xml like normal.
     
  7. AlmaXRDev

    AlmaXRDev

    Joined:
    Oct 25, 2022
    Posts:
    2
    News about Unity in Docker? Cheers