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

Running chrome-mobile container from the command line #549

Open
bonigarcia opened this issue Jul 28, 2022 · 4 comments
Open

Running chrome-mobile container from the command line #549

bonigarcia opened this issue Jul 28, 2022 · 4 comments

Comments

@bonigarcia
Copy link
Contributor

Hi,

I used to run chrome-mobile from the command line as follows:

docker run --rm --cap-add=SYS_ADMIN -p 4444:4444 -p 5900:5900 -e ENABLE_VNC=true -e QTWEBENGINE_DISABLE_SANDBOX=1 --privileged selenoid/chrome-mobile:86.0

Nevertheless, the Android device in Docker does not start properly now. I see the following logs in the container (the line adb: device offline repeats forever):

Waiting X server...
Logging to: /tmp/fluxbox.log
Waiting X server...
* daemon not running; starting now at tcp:5037

 --- x11vnc loop: 1 ---

* daemon started successfully
adb: no devices/emulators found
 --- x11vnc loop: waiting for: 120

PORT=5900
adb: no devices/emulators found
adb: no devices/emulators found
WARNING. Using fallback path for the emulator registration directory.
emulator: WARNING: System image is writable
Your emulator is out of date, please update by launching Android Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android Emulator" checkbox
 - Click "OK"

adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline
adb: device offline

Am I doing something wrong? Thanks.

@vania-pooh
Copy link
Member

@bonigarcia startup command did not change since last time. Probably you are trying to launch the same images under incompatible Linux kernel version and because of that emulator is unable to read memory snapshot created by another kernel version. I would recommend rebuilding the image from source code. https://github.com/aerokube/images/blob/master/selenium/automate_android.sh

@bonigarcia
Copy link
Contributor Author

I tried to recreate the image with that script, using different setups, but no luck. I cannot make it work again.

In any case, it is very inconvenient that the docker images for Chrome Mobile hosted in Docker Hub do not work by default now.

Would it be possible if you to recreate these images (without the snapshot) and upload them to Docker Hub?

@vania-pooh
Copy link
Member

@bonigarcia without this snapshot session will be starting 30+ seconds.

@bonigarcia
Copy link
Contributor Author

IMO, that delay is better than not working at all.

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

No branches or pull requests

2 participants