jlandure/alpine-chrome

Arm64 cpu startup card is stuck, Unable to use

Opened this issue · 5 comments

Describe the bug
A clear and concise description of what the bug is.
Be careful, Chrome can output some Warning without affecting the behavior of this image like this one
[0709/182256.661108:WARNING:dns_config_service_posix.cc(335)] Failed to read DnsConfig.

To Reproduce
Steps to reproduce the behavior:

  1. Indicate the version of the image using docker image inspect --format='{{index .RepoDigests 0}}' zenika/alpine-chrome
  2. Execute sudo docker container run -it --rm -v $(pwd):/usr/src/app zenika/alpine-chrome --no-sandbox --screenshot --hide-scrollbars --disable-gpu --cap-add=SYS_ADMIN --hide-scrollbars https://www.baidu.com
  3. See error
Status: Downloaded newer image for zenika/alpine-chrome:102
[0721/042509.259825:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[0721/042509.260105:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[0721/042509.264414:WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig.
[0721/042509.301728:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is 
[0721/042509.317423:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[0721/042509.384087:WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig.
* Connection closed *

What is the expected behavior?
screenshot

What is the actual behavior?
Dead, not working

Logs
Don't know how to check the log.

Versions

Software Version(s) How-to
Chromium 102.0.5005.61 docker container run -it --rm --entrypoint "" zenika/alpine-chrome chromium-browser --version
Image zenika/alpine-chrome@sha256:95bb5288e1895cbd4bf92c58dfa54aba9753841004dadc97527e539d610045da docker image inspect --format='{{index .RepoDigests 0}}' zenika/alpine-chrome
Docker Engine 20.10.17 docker version

Additional context
Cpu model :

Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           2
NUMA node(s):        2
Vendor ID:           ARM
Model:               1
Model name:          Neoverse-N1
Stepping:            r3p1
BogoMIPS:            50.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            512K
L3 cache:            32768K
NUMA node0 CPU(s):   0
NUMA node1 CPU(s):   1
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs

I'm seeing the same issue when attempting to run the following on an M1 Mac:

docker container run -it --platform linux/arm64 --rm --cap-add=SYS_ADMIN zenika/alpine-chrome
[0824/013038.961704:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[0824/013038.961771:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[0824/013038.962088:WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig.
[0824/013038.964579:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[0824/013038.965128:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none),(gl=egl-angle,angle=swiftshader)].
[0824/013038.968423:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0824/013038.973087:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none),(gl=egl-angle,angle=swiftshader)].
[0824/013038.974692:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0824/013038.999396:WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig.

Am I missing something?

Did you find a way?

Facing the same issue in M1 mac . Did anyone found a way or workaround ?

Hi, I am confirming that the issue is still present on Mac Air M1, starting up the container gets me this:

2024-06-18 13:23:31 clone: Invalid argument
2024-06-18 13:23:31 [0618/112331.296821:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Invalid argument (22)
2024-06-18 13:23:31 qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped

Does anyone have any kind of bypass or knows a way to run this on an ARM based CPU?

Any Solution here?