Search Unity

Bug License problem while trying to build through linux terminal

Discussion in 'Linux' started by Sammonius, Aug 30, 2023.

  1. Sammonius

    Sammonius

    Joined:
    Mar 18, 2017
    Posts:
    8
    Hi all,

    I'm using a personal license and I can open, start, and build my project in Ubuntu. I'm trying to build in Ubuntu's terminal unsuccessfully. I guess that it is a bug.
    This is the terminal output:

    Code (CSharp):
    1. my_machine:~/Build$ ~/Unity/Hub/Editor/2022.3.8f1/Editor/Unity -quit -batchmode -nographics -buildTarget EmbeddedLinux -executeMethod Builder.Build -projectPath -projectPath ~/Projects/My_project/editor
    2. Unity Editor version:    2022.3.8f1 (b5eafc012955)
    3. Branch:                  2022.3/staging
    4. Build type:              Release
    5. Batch mode:              YES
    6. System name:             Linux
    7. Distro version:          #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2
    8. Kernel version:          6.2.0-26-generic
    9. Architecture:            x86_64
    10. Available memory:        11742 MB
    11. [Licensing::Module] Trying to connect to existing licensing client channel...
    12. [Licensing::IpcConnector] Connection attempt to the License Client on channel: "LicenseClient-sammonius" failed because channel doesn't exist; code: "0x80000002"
    13. [Licensing::Module] Successfully launched the LicensingClient (PId: 5085)
    14. [Licensing::IpcConnector] Successfully connected to the License Client on channel: "LicenseClient-sammonius" at "2023-08-30T08:53:54.852267Z"
    15. [SignatureVerifier] Application signature verification not supported on this platform.
    16. [Licensing::Client] Handshaking with LicensingClient:
    17.  Version:                 1.13.1+ca5f299
    18.  Session Id:              574fbc1b812c49beb736cacfa8dfdaf8
    19.  Correlation Id:          faaf27f168423d0130e5fce3d0ef7343
    20.  External correlation Id: 6581892707327129026
    21.  Machine Id:              VWjPVZywpydhlUNbYNxH7zX/lW4=
    22. [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-sammonius" (connect: 0.82s, validation: 0.07s, handshake: 0.00s)
    23. [Licensing::IpcConnector] Successfully connected to the License Notification on channel: "LicenseClient-sammonius-notifications" at "2023-08-30T08:53:54.919985Z"
    24. [Licensing::Module] Connected to LicensingClient (PId: 5085, launch time: 0.00, total connection time: 0.88s)
    25. [Licensing::Module] Error: Access token is unavailable; failed to update
    26. [Licensing::Client] Successfully updated license
    27. [Licensing::Client] Successfully resolved entitlements
    28. [Licensing::Module] Serial number assigned to: <the serial number>
    29. Pro License: NO
    30. Initialize udev device monitor.
    31.  
    32. COMMAND LINE ARGUMENTS:
    33. /home/sammonius/Unity/Hub/Editor/2022.3.8f1/Editor/Unity
    34. -quit
    35. -batchmode
    36. -nographics
    37. -buildTarget
    38. EmbeddedLinux
    39. -executeMethod
    40. Builder.Build
    41. -projectPath
    42. -projectPath
    43. /home/sammonius/Projects/My_project/editor
    44. Couldn't set project path to: /home/sammonius/Build/
    45.  
    46. Aborting batchmode due to failure:
    47. Couldn't set project path to: /home/sammonius/Build/
    48.  
    49. [Package Manager] Server::Kill -- Server was shutdown
    50. Checking for leaked weakptr:
    51.  Found no leaked weakptrs.
    52. Memory Statistics:
    53. [ALLOC_TEMP_TLS] TLS Allocator
    54.  StackAllocators :
    55.    [ALLOC_TEMP_CoreBusinessMetricsCache]
    56.      Initial Block Size 64.0 KB
    57.      Current Block Size 64.0 KB
    58.      Peak Allocated Bytes 0 B
    59.      Overflow Count 0
    60.    [ALLOC_TEMP_Profiler.Dispatcher]
    61.      Initial Block Size 64.0 KB
    62.      Current Block Size 64.0 KB
    63.      Peak Allocated Bytes 0 B
    64.      Overflow Count 0
    65.    [ALLOC_TEMP_AssetGarbageCollectorHelper] x 3
    66.      Initial Block Size 64.0 KB
    67.      Current Block Size 64.0 KB
    68.      Peak Allocated Bytes 0 B
    69.      Overflow Count 0
    70. [ALLOC_MEMORYPROFILER]
    71.  Requested Block Size 1.0 MB
    72.  Peak Block count 1
    73.  Peak Allocated memory 4.6 KB
    74.  Peak Large allocation bytes 0 B
    75. ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1693385636300,"processId":5079,"allocatedMemory":91920,"memoryLabels":[{"Default":730},{"Permanent":32},{"Thread":64},{"Manager":6874},{"GfxDevice":408},{"Serialization":52},{"BaseObject":12376},{"String":5654},{"DynamicArray":132},{"HashMap":17034},{"Utility":1024},{"GI":2920},{"CloudService":168},{"VR":80},{"EditorUtility":3232},{"RestService":1022},{"License":3608},{"UnityConnect":25432},{"Collab":25},{"LocalIPC":222},{"ProfilerEditor":10831}]}
    76. my_machine:~/Build$
    Can anybody help me please? I need this.

    Thanks!
     
  2. tylerinthezoo

    tylerinthezoo

    Unity Technologies

    Joined:
    Jun 15, 2022
    Posts:
    91
    i am confused reading the command with double -projectPath passed in argument. is that a mistake?
    also the error is pointing to a different path than the path you passed in command.

    the project path should be the same dir that contains the library and asset folder.
     
  3. wenkly

    wenkly

    Joined:
    Sep 4, 2014
    Posts:
    20
    Try to add flags:
    -serial YOUR_SERIAL_CODE -username your_username -password your_password