Get error by command `chromium-browser --no-sandbox`

Question:

I want to run chromium-browser.

But, got error by command : chromium-browser --no-sandbox

error message is belowing :

[410:458:0307/095747.810070:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

How to solve error?

Hello there,

  1. Check if the D-Bus service is running by running the command:
service dbus status

If the service is not running, start it by running:

service dbus start
  1. Set the DBUS_SESSION_BUS_ADDRESS environment variable by running:
export $(dbus-launch)

This will start a new D-Bus session and set the DBUS_SESSION_BUS_ADDRESS variable to the correct value for your system.
3. Finally, try running Chromium again with the --no-sandbox flag:

chromium-browser --no-sandbox

These steps should help you solve the error and run Chromium successfully on Replit without the need for sudo.

1 Like

Thanks for your reply, @Osoft !
I’ll try it soon.