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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug ]: Restart of container requires root #364

Closed
RasmusDK opened this issue Jun 22, 2023 · 2 comments
Closed

[馃悰 Bug ]: Restart of container requires root #364

RasmusDK opened this issue Jun 22, 2023 · 2 comments
Labels

Comments

@RasmusDK
Copy link

Operating System

Ubuntu

Docker Image

budtmo/docker-android:emulator_13.0

Expected behaviour

Restart of the docker container should start the existing android emulator.

Actual behaviour

The emulator is not started up.
The error below is found in device.stdout.log.
It seems to come from change_permission function here:

def change_permission(self) -> None:

sudo: unknown user: root sudo: unable to initialize policy plugin Traceback (most recent call last): File "/usr/local/bin/docker-android", line 11, in <module> load_entry_point('docker-android', 'console_scripts', 'docker-android')() File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/home/androidusr/docker-android/cli/src/app.py", line 144, in start start_device() File "/home/androidusr/docker-android/cli/src/app.py", line 77, in start_device selected_device.start() File "/home/androidusr/docker-android/cli/src/device/emulator.py", line 159, in start self.change_permission() File "/home/androidusr/docker-android/cli/src/device/emulator.py", line 141, in change_permission subprocess.check_call(c, shell=True) File "/usr/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'sudo chown 1300:1301 /dev/kvm' returned non-zero exit status 1.

Logs

No response

@RasmusDK RasmusDK added the bug label Jun 22, 2023
@budtmo
Copy link
Owner

budtmo commented Jun 22, 2023

Hi @RasmusDK ,

thank you for the issue. sudo access will be given to pro version. as workaround you can remove the running container and bring a new one. I will close the issue as it is not a bug. feel free to reopen if needed.

@budtmo budtmo closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2023
@RasmusDK
Copy link
Author

hi @budtmo,

Thank you for the quick followup. I had a feeling that you might answer as you did. No problem in that, and I won't reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants