question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Starting virtual machine" step fails due to SSH socket path being too long.

See original GitHub issue

Rancher 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 grafik

Setup (please complete the following information):

  • macOS 11.6
  • Rancher Desktop 0.6.0
  • Kubernetes 1.21.5

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

30reactions
janduboiscommented, Dec 17, 2021

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:

$ mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima
$ ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima

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.

0reactions
ChivemarcTechnologiescommented, Nov 2, 2022

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 …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting SSH errors - Compute Engine - Google Cloud
This document describes common errors that you may run into when connecting to virtual machine (VM) instances using SSH, ways to resolve errors, ......
Read more >
Cannot start machine with podman version 4.1.0 in M1 Mac
This problem is caused due to qemu 7.0.0 startup latency (3-5s) that occour in every first qemu execution after Mac Machine machine boots....
Read more >
Troubleshoot SSH connection issues to an Azure VM
How to troubleshoot issues such as 'SSH connection failed' or 'SSH connection refused' for an Azure VM running Linux.
Read more >
A.19. Common libvirt Errors and Troubleshooting
A guest virtual machine starts successfully, but is then either unable to acquire an IP address from DHCP or boot using the PXE...
Read more >
why ssh connection timed out in vscode? - Stack Overflow
open your vscode Command Palette (via keyboard shortcut or from the View menu). · search for the Remote-SSH: Settings. · scroll till you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found