-
Notifications
You must be signed in to change notification settings - Fork 840
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
wsl 2 - Getting “Failed to connect to the bus: Could not parse server address” error when launching google chrome or any electron app #7915
Comments
Note chrome and electron apps do start but they give the above errors |
@mwoodpatrick - are you using WSLg or a third party xserver on Windows? |
wslg, xdpyinfo shows name of display: :0 |
starting dbus using sudo service dbus start did not help |
That error is making our GHA workflows hard to debug as there are tons of it. If anyone know a workaround for it it would be great. |
Likewise I'm seeing a lot of these errors, when running test on our Electron based app. The cyrpress test tool makes reference to it in http://www.apimirror.com/cypress/guides/guides/debugging, I would hope that the new WSLg will help here; or use multipass rather WSL. |
I am getting these error with Cypress + Github Actions. Any solution for this? |
any updates? |
also interesting |
Would also appreciate some help with this - im running into the same issue |
Same error with a fresh WSL install.
I tried distros : Ubuntu22, Ubuntu20, Debian. The same. |
Here are steps to get
This will fix Sample run on
This can be added to When lauching
And if you install
|
I am trying to launch vs code installed on wsl ubuntu installed on windows machine .Getting the same error and vs code is unable to start
|
I am trying to launch cypress from my wsl project :
|
Launching chromium from void linux causes the same behaviour.
|
I had this issue and it turned out that SELinux was causing chrome not to be able to access certain things through dbus. (errors were seen in the dbus log noting the selinux/chrome connection) Solutions are to either, add the appropriate selinux permissions to chrome or to disable selinux. |
@Jester3141 - Ill give this a try |
Cypress now launches correctly after migrating to Windows 11 (which adds WSLg). |
Is line 4 a typo, i.e., should it be |
This seems to help, but does not work completely, I now got errors like:
... and the webpage crashes. Has someone solved this? I am running google-chrome in Docker in WSL through xserver. |
I have a similar problem. I am running cypress via wsl2 with GUI. It actually opens but after running couple of tests, it become really slow and eventually does not respond at all. When I check the wsl2 console I see this message |
How can you start dbus without systemd? |
@SirLouen if you type |
|
@SirLouen you could just look at the unit file in
|
Not exactly there
|
I tried
then I can launch chrome window in my win11. And using xrdp and xfce4 seems a reliable solution if you want a full desktop of your wsl2 . |
Thanks you so much @wwjll !! It also makes the microsoft-edge works in my win11! |
Worked for me too, thank you, you saved my day. |
open vs code, or code-oss using kali linux give us this error
|
I fixed it by following this : https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps and then: sudo apt-get install dbus-x11 |
Windows 11 - Ubuntu - WSL 2 - Clean Install wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb I'm just do this: sudo apt install upower |
Just restart your PC. |
Thanks! On Windows 11 (OS Build 22631.2861) + Ubuntu 22.04.3 I only needed to start the dbus user session to resolve the errors. The environment variables are already set out of the box. And the dbus service was already started (checked with
I do still get 2 Vulkan errors but those seems to be ignorable. |
any solution to the problem? |
Any news? I am still facing this same error message on Centos Stream 9. |
|
sudo service dbus start
This worked for me . |
@Juulaps seems you had small typo: sudo service dbus start
export XDG_RUNTIME_DIR=/run/user/$(id -u)
-sudo mkdir $XDG_RUNTIME_USER
+sudo mkdir $XDG_RUNTIME_DIR
sudo chmod 700 $XDG_RUNTIME_DIR
sudo chown $(id -un):$(id -gn) $XDG_RUNTIME_DIR
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only & but it solved by errors. Thanks! |
Version
Windows version: 10.0.22000.376
WSL Version
Kernel Version
5.10.74.3
Distro Version
20.04.3 LTS (Focal Fossa)
Other Software
electron 16.0.6 or Google chrome Version 97.0.4692.71 (Official Build) (64-bit)
Repro Steps
Install and start google chrome on wsl2 and start
Expected Behavior
browser should come up without error
Actual Behavior
google-chrome
[8405:8442:0110/140553.266744:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8405:8441:0110/140553.276538:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8405:8441:0110/140553.277982:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8405:8441:0110/140553.329491:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8405:8441:0110/140553.329632:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8405:8476:0110/140553.499766:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8405:8476:0110/140553.499863:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8405:8476:0110/140553.500048:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8405:8476:0110/140553.500124:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8405:8476:0110/140553.500170:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8448:8448:0110/140555.058357:ERROR:sandbox_linux.cc(378)] InitializeSandbox() called with multiple threads in process gpu-process.
[8405:8441:0110/140636.457250:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8405:8441:0110/140636.457371:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8405:9002:0110/140641.065898:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: