-
Notifications
You must be signed in to change notification settings - Fork 304
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
"Starting virtual machine" step fails due to SSH socket path being too long. #797
Comments
Once lima-vm/lima#335 is merged, and Lima in RD updated, it will be possible to replace the RD should detect this situation automatically, and create an alternate directory and the symlink, e.g. |
lima in RD has been updated, so it will be possible to work around this limitation in RD 0.7.0.
I want to keep this bug report open because I think this should be handled automatically and not require intervention by the user. |
Just tried with 0.7.0 Release. Unfortunately still not working :(
|
It should be possible to work around it now, even though it is not automatic. I've just moved the lima home directory to $ 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. |
I can confirm that the work around works for me. Thanks! |
Updated to 0.7.1 to today. Tried the workaround. Unfortunately, it did not work for me. Crashed straight away, the relevant log files are empty. |
Just as a report:
Had the same issue at 1.0.0-beta.1, workaround from @jandubois fixed that. Thank you! |
I can confirm that I had the same issue that @AndreiChenchik with the 1.0.0-beta.1, but with the solution given by @jandubois all it's working now.! Thanks ! |
I have now also updated and tried the 1.0.0-beta.1 and can also confirm that the described solution / workaround works. Thanks! |
Just ran into this and can confirm the symlink solution posted above works! |
Fixes rancher-sandbox#797 Signed-off-by: Josh Soref <[email protected]>
I already tried the workaround and also as @anthonyrea described, but it still does not work. And I also reproduced the same issue on another company laptop (both MacOS). Would be glad, if it was possible to have a deeper look and integrate a fix into rancher. But its strage that at the end there is like a 1234567890123456 String. If you could remove that some people would already have access to it |
Possible zero-config solution in branch 797-handle-alternative-limapath |
This is still occurring in intel macos w/ rancher dektop v1.9.1. Before the "fix": nonsense length error caused by inclusion of a 16 character string "1234567890123456". AFAICT no file lima.yaml is created by Rancher Desktop in my local whether I create symlink directories before installing rancher, after installing rancher but before runtime, or after runtime. downgrading to earlier version 1.6.2 & attempting the same fix from #3716 results in the same error. |
Hi, |
Still occurs on 1.10.0. |
Yes it's really a Awesome solution, its worked for me thank you ### @jandubois |
I'm still experiencing the same issue on Mac Intel today, this solution worked for me #797 (comment). Will leave a comment here to see if there are any updates to this issue. |
The link name (found in the source) is lima-rd, not rdlima |
I had some trouble with #797 (comment), so I post here all my steps. I hope this will help you. Reset Rancher Desktop: "Troubleshooting / Factory Reset", close Rancher Desktop or run the following steps before you
Restart Rancher Desktop
Restart Rancher Desktop
Docker default context can be set by export environment variable reopen shell So have fun |
this fixed my issue today running on M3 rancher Version 1.14.2, thank you!! |
not gonna lie, the fact that this issue still persists is kinda rough.
But the workaround still works just fine |
Two and a half years later and users still have to find this thread and then apply the manual fix in order to get Rancher Desktop running on their machine if their username is longer than 21 characters. In my org, everyone's username is |
Following an upgrade to Rancher 1.14.1, I encountered a similar issue. The workaround to move lima did not resolve. Resetting k8s (and deleting the containers) worked. I'm not currently using k8s so this was okay for me, but might be a show-stopper for anyone who does? My username is 3 characters, so I think that my problem might be different (I was not seeing the error about the Unix path limit). |
Unfortunately true. 😞 The problem is that we have a huge number of open issues, so problems with a simple workaround don't get prioritized. |
@sinewalker Please create a new issue with sufficient details to investigate rather than commenting on an unrelated issue! Thanks! |
Unfortunately I also have a long name, and I'm struggling with this issue for 2 days already. The fix that @jandubois posted works at first, but after I change the k8s resources, I'm getting an error once it tries to restart:
Do you maybe have any tips for this one? I would like to avoid changing my name because of this 😅 using: Version 1.14.2 (1.14.2) |
so apparently the issue for me was because the value of the ram was too high, 64GB, I now allocated 48GB and works 🤯 |
I had to keep the rancher-desktop open and in terminal run both the mentioned commands. then open RD and Troubleshooting then click on reset Kubernetes. Ta-da! |
Rancher Desktop shows the "Starting virtual machine" until timeout.
~/Library/Application\ Support/rancher-desktop/lima/0/ha.stderr.log
contains the following lines: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
Result
Rancher Desktop shows the "Starting virtual machine" until timeout.
Expected behaviour
Rancher Desktop starts up properly.
Screenshots
Setup (please complete the following information):
The text was updated successfully, but these errors were encountered: