"Starting virtual machine" step fails due to SSH socket path being too long.
See original GitHub issueRancher Desktop shows the “Starting virtual machine” until timeout.
~/Library/Application\ Support/rancher-desktop/lima/0/ha.stderr.log
contains the following lines:
{"level":"debug","msg":"stdout=\"\", stderr=\"unix_listener: path \\\"/Users/od.andreas.zitzelsberger/Library/Application Support/rancher-desktop/lima/0/ssh.sock.Rcl2KoI2X03Sbknt\\\" too long for Unix domain socket\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"unix_listener: path \\\"/Users/XXXXXXXXXXXXXXXXXXXXXXXX/Library/Application Support/rancher-desktop/lima/0/ssh.sock.Rcl2KoI2X03Sbknt\\\" too long for Unix domain socket\\r\\n\": exit status 255","time":"2021-10-14T15:28:04+02:00"}
with XXXXXXXXXXXXXXXXXXXXXXXX
being my user name. Please note that the path /Users/XXXXXXXXXXXXXXXXXXXXXXXX/Library/Application Support/rancher-desktop/lima/0/ssh.sock.Rcl2KoI2X03Sbknt
has 109 characters. The path length for Unix Domain Sockets is limited to 108 characters (Linux) or 104 characters (Mac). Unfortunately, my user name is managed and cannot be changed. While the user name is long, I believe it’s length is not uncommon.
To Reproduce
- Start Rancher Desktop on a Mac with a user name that has 21 characters or more.
Result Rancher Desktop shows the “Starting virtual machine” until timeout.
Expected behaviour Rancher Desktop starts up properly.
Screenshots
Setup (please complete the following information):
- macOS 11.6
- Rancher Desktop 0.6.0
- Kubernetes 1.21.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
It should be possible to work around it now, even though it is not automatic.
I’ve just moved the lima home directory to
~/.rdlima
:Please try that and let me know if it fixes the issue for you!
Please keep the bug open though, because I think RD should do something like this automatically, but I don’t know when we will get around to it.
I am having the below issue with my rancher desktop on windows 11. Pls i need assistance to get it fixed
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:6443
2022-11-02T15:47:42.088Z: Registered distributions: wsl-vpnkit,rancher-desktop-data 2022-11-02T15:47:42.580Z: Registered distributions: wsl-vpnkit 2022-11-02T15:47:43.070Z: Registered distributions: wsl-vpnkit 2022-11-02T15:47:46.632Z: Registered distributions: wsl-vpnkit,rancher-desktop 2022-11-02T15:47:46.807Z: Registered distributions: wsl-vpnkit,rancher-desktop 2022-11-02T15:47:46.807Z: Creating initial data distribution… 2022-11-02T15:47:53.995Z: Did not find a valid mount, mounting /mnt/wsl/rancher-desktop/run/data 2022-11-02T15:47:58.346Z: WSL: executing: cat /root/.docker/config.json: Error: wsl.exe exited with code 1 2022-11-02T15:48:02.490Z: Installing C:\Users\cugwuegb\AppData\Local\Programs\Rancher Desktop\resources\resources\linux\internal\trivy as /mnt/c/Users/cugwuegb/AppData/Local/Programs/Rancher Desktop/resources/resources/linux/internal/trivy into /usr/local/bin/trivy …