podman-desktop-companion icon indicating copy to clipboard operation
podman-desktop-companion copied to clipboard

Windows 11 - WSL2 - Ubuntu 22

Open mtcolman opened this issue 2 years ago • 1 comments

Hi,

I've just installed this on Windows 11 WSL2 running Ubuntu 22. Here are the steps I followed:

# In Powershell
wsl --update
wsl --shutdown

# In WSL2 Ubuntu
sudo apt update && sudo apt install -y libnotify4 libxss1 libsecret-1-0 libgbm1 libasound2
sudo apt --fix-broken install -y
sudo dpkg -i podman-desktop-companion-amd64-4.1.0-rc.28.deb
podman-desktop-companion

The GUI runs, however, just for the record, I receive these errors on the CLI:

$ podman-desktop-companion
[22:0802/101731.004294:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[22:0802/101731.004379:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[22:0802/101731.013508: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")
[22:0802/101731.013557: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")
[22:0802/101731.229477: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")
[55:0802/101731.264404:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[55:0802/101731.279252:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

I've found a way to resolve the dbus errors:

# as per: https://github.com/microsoft/WSL/issues/7915 and https://github.com/microsoft/WSL/issues/2941
sudo service dbus start
export XDG_RUNTIME_DIR=/run/user/$(id -u)
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 &

Then run podman-desktop-companion and I'm left with these two errors:

$ podman-desktop-companion
[1276:0802/104001.129417:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[1276:0802/104001.133675:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

I shall continue to have a look around...

mtcolman avatar Aug 02 '22 09:08 mtcolman

Thanks for linking the issues, seems like an electron issue in WSL, I see cypress test runner has it too

  • https://github.com/microsoft/WSL/issues/7915
  • https://github.com/microsoft/WSL/issues/2941

iongion avatar Aug 02 '22 09:08 iongion