I'm having trouble getting Rancher Desktop to run ...
# rancher-desktop
a
I'm having trouble getting Rancher Desktop to run on Windows Subsystem for Linux...
🧵 1
I had this running previously, but had to uninstall/reinstall WSL -- now I'm running into problems. Here is what I did: • Installed WSL on Windows 11 and the default distribution of Ubuntu 24.04. • Followed the instructions here for installing Rancher on Linux. The install appears to have run successfully and I can see the
rancher-desktop
directory in
/opt
. • Entered
rdctl start
to start Rancher. I see the this:
Copy code
jelslip@IBM-PW02WX4A:~$ rdctl start
Command 'rdctl' not found, did you mean:
  command 'wdctl' from deb util-linux (2.39.3-9ubuntu6.3)
  command 'grdctl' from deb gnome-remote-desktop (46.3-0ubuntu1)
  command 'ndctl' from deb ndctl (76-1ubuntu1)
Try: sudo apt install <deb name>
• When I try to run /opt/rancher-desktop/rancher-desktop, I see this. Any idea what the problem is?
Copy code
jelslip@IBM-PW02WX4A:~$ /opt/rancher-desktop/rancher-desktop
A JavaScript error occurred in the main process
Uncaught Exception:
Error: rdctl paths failed: {"status":2,"signal":null,"output":[null,"","panic: nil Context\n\ngoroutine 1 [running]:\nos/exec.CommandContext({0x0?, 0x0?}, {0x8d7102?, 0x508647?}, {0xc000187c98?, 0xc00011a410?, 0xc000187cd8?})\n\t/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/os/exec/exec.go:480 +0xf6\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.getLocalAppDataPath({0x0|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.getLocalAppDataPath({0x0>, 0x0})\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/pkg/config/config.go:146 +0x8c\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.wslifyConfigDir({0x0|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.wslifyConfigDir({0x0>, 0x0})\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/pkg/config/config.go:158 +0x27\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.DefineGlobalFlags(0xcb1d00)|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.DefineGlobalFlags(0xcb1d00)>\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/pkg/config/config.go:61 +0x4a\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/cmd.init.13()|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/cmd.init.13()>\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/cmd/root.go:56 +0xd7\n"],"pid":594,"stdout":"","stderr":"panic: nil Context\n\ngoroutine 1 [running]:\nos/exec.CommandContext({0x0?, 0x0?}, {0x8d7102?, 0x508647?}, {0xc000187c98?, 0xc00011a410?, 0xc000187cd8?})\n\t/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/os/exec/exec.go:480 +0xf6\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.getLocalAppDataPath({0x0|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.getLocalAppDataPath({0x0>, 0x0})\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/pkg/config/config.go:146 +0x8c\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.wslifyConfigDir({0x0|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.wslifyConfigDir({0x0>, 0x0})\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/pkg/config/config.go:158 +0x27\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.DefineGlobalFlags(0xcb1d00)|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/pkg/config.DefineGlobalFlags(0xcb1d00)>\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/pkg/config/config.go:61 +0x4a\<http://ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/cmd.init.13()|ngithub.com/rancher-sandbox/rancher-desktop/src/go/rdctl/cmd.init.13()>\n\t/home/runner/work/rancher-desktop/rancher-desktop/src/go/rdctl/cmd/root.go:56 +0xd7\n"}
    at file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:2:171551
    at 6416 (file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:2:171735)
    at x (file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:29:38368)
    at 8514 (file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:29:3787)
    at x (file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:29:38368)
    at 394 (file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:2:3767)
    at x (file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:29:38368)
    at file:///opt/rancher-desktop/resources/app.asar/dist/app/background.js:29:40256
    at ModuleJob.run (node:internal/modules/esm/module_job:329:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
[611:0902/160518.871188:ERROR:components/viz/service/main/viz_main_impl.cc:184] Exiting GPU process due to errors during initialization
f
You should install the Windows version of Rancher Desktop. You can then enable "WSL Integration" in the settings, to make it work inside the WSL distros. I don't think the Linux version will work inside a WSL distro (which technically is just a container in a shared VM).
👍 1
r
I’ve had issues as well getting Rancher desktop for Windows working. (Windows 11) Enabled WSL2 by doing wsl —install. Went to the msstore and downloaded Ubuntu 24.0.4.1 LTS (going from memory here) Able to run that distros no problem. Install rancher-desktop using winget This installs 1.20.0. Start Rancher Seems to chug along just fine until I get an error about not being able to cat wsl.init (I’ll get the exact error message.) I set rancher-desktop to use Moby. I try to run docker to create the hello world image and it fails. Basically saying that docker isn’t started Check my Ubuntu distro and it’s not there. Should the rancher-desktop and rancher-desktop-data distros be running in wsl?