Skip to content

Licensing issue with non root user #242

@Mythique

Description

@Mythique

If I run the editor in batch mode, and set the user parameter, I end up with this error :

[Licensing::Module] Trying to connect to existing licensing client channel...
[Licensing::IpcConnector] Connection attempt to the License Client on channel: "LicenseClient-" failed because channel doesn't exist; code: "0x80000002"
[Licensing::Module] Successfully launched the LicensingClient (PId: 9)
[Licensing::IpcConnector] Connection attempt to the License Client on channel: "LicenseClient-" failed because channel doesn't exist; code: "0x80000002"
[Licensing::Module] Timed-out after 60.00s, waiting for channel: "LicenseClient-"
IPC channel to LicensingClient doesn't exist; aborting

This is the command that was started:

docker run --user 10000:1004 --rm --volume "pathToUnityProject":/app --workdir /app unityci/editor:ubuntu-2020.3.48f1-android-3.0.1 /bin/bash -c "./AnotherScript.sh"

Here is the content of ./AnotherScript.sh:

/opt/unity/Editor/Unity -batchmode -nographics -quit -projectPath /app  -logFile logAndroid.txt -noUpm -username 'username'  -password 'password' -serial SERIAL -executeMethod AssetBundleCreator.BuildAsset

If I try to run the same command without specifying a user, Unity is started properly and the BuildAsset method is executed.

Unfortunately, having the possibility to run as another user would solve one of my issue. I'll explain it briefly, just to show my use case:

  • A program will write files, as the user 10000.
  • Unity will read this files and generate new ones. By default they are written with root as the owner.
  • The program will read this file after the process, but won't be able to modify or delete them because of the ownership.

There's of course other ways to fix my issue, but I'm surprised that I can not run the program as another user. I don't know if it is a bug with Unity, your docker image, or maybe a misunderstanding from my part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions