Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licensing issue with non root user #242

Open
Mythique opened this issue Mar 30, 2024 · 0 comments
Open

Licensing issue with non root user #242

Mythique opened this issue Mar 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Mythique
Copy link

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:
/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 missunderstanding from my part.

@Mythique Mythique added the bug Something isn't working label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant