game-ci / game-ci/docker

Licensing issue with non root user

Open
#242 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
Dockerfile
Stars
470
Forks
140
PR merge metrics
No merged PRs in 30d

Description

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:
```bash
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`:
```bash
/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.