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

Unable start chrome on ubuntu 22 #96

Open
amosnothing opened this issue Dec 28, 2023 · 3 comments
Open

Unable start chrome on ubuntu 22 #96

amosnothing opened this issue Dec 28, 2023 · 3 comments

Comments

@amosnothing
Copy link

npx @puppeteer/browsers install chrome@stable

$ uname -a
Linux selenium-grid-v4-node-fs-playwright-one-fbq9g 4.9.0-141-custom #19 SMP Wed Nov 28 20:32:27 CST 2018 x86_64 x86_64 x86_64 GNU/Linux

$ ./chrome --no-sandbox -headless www.google.com
[1228/101038.544283:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1228/101038.562282:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1228/101038.562415:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1228/101038.565151:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 759: Permission denied (13)
[1228/101038.573577:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 762: Permission denied (13)
[1228/101038.574756:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[1228/101038.761156:WARNING:sandbox_linux.cc(400)] InitializeSandbox() called with multiple threads in process gpu-process.
[1228/101038.767216:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

@amosnothing amosnothing changed the title unable start chrome in ubuntu 22 Unable start chrome on ubuntu 22 Dec 28, 2023
@markixy
Copy link

markixy commented Jan 3, 2024

Have you solved it?

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
$ uname -a
Linux 07e5ecaf290a 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ npx --version
7.21.1

Install
npx @puppeteer/browsers install chrome@stable

Test
/chrome/linux-122.0.6223.0/chrome-linux64/chrome --version
/chrome/linux-122.0.6223.0/chrome-linux64/chrome: error while loading shared libraries: libdrm.so.2: cannot open shared object file: No such file or directory
/chrome/linux-122.0.6223.0/chrome-linux64/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory

apt install libgbm-dev

/chrome/linux-122.0.6223.0/chrome-linux64/chrome --version
Google Chrome for Testing 122.0.6223.0

Error
/chrome/linux-120.0.6099.109/chrome-linux64/chrome --no-sandbox --headless bing.com
[0103/070426.867312:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[0103/070426.878181:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[0103/070426.878492:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[0103/070426.945377:WARNING:sandbox_linux.cc(400)] InitializeSandbox() called with multiple threads in process gpu-process.
[0103/070426.970544:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.

@markixy
Copy link

markixy commented Jan 3, 2024

I try to solve it.

apt install dbus-x11
sudo /etc/init.d/dbus start

/chrome/linux-120.0.6099.109/chrome-linux64/chrome --no-sandbox --headless --disable-gpu bing.com
[0103/071640.327423:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[0103/071640.360775:WARNING:sandbox_linux.cc(400)] InitializeSandbox() called with multiple threads in process gpu-process.

I'm not sure what impact the warning log will have. but it seem work.

@amosnothing
Copy link
Author

I try to solve it.

apt install dbus-x11 sudo /etc/init.d/dbus start

/chrome/linux-120.0.6099.109/chrome-linux64/chrome --no-sandbox --headless --disable-gpu bing.com [0103/071640.327423:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. [0103/071640.360775:WARNING:sandbox_linux.cc(400)] InitializeSandbox() called with multiple threads in process gpu-process.

I'm not sure what impact the warning log will have. but it seem work.

Thank you.

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