Open az82 opened 2 years ago
Once https://github.com/lima-vm/lima/pull/335 is merged, and Lima in RD updated, it will be possible to replace the lima
directory with a symlink to a different location with a shorter path.
RD should detect this situation automatically, and create an alternate directory and the symlink, e.g. ~/.rd-lima
.
Once lima-vm/lima#335 is merged, and Lima in RD updated, it will be possible to replace the
lima
directory with a symlink to a different location with a shorter path.
lima in RD has been updated, so it will be possible to work around this limitation in RD 0.7.0.
RD should detect this situation automatically, and create an alternate directory and the symlink, e.g.
~/.rd-lima
.
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 :(
time="2021-12-17T08:40:51+01:00" level=debug msg="interpreting argument \"/Users/mario-leander.reimer/Library/Application Support/rancher-desktop/lima/_config/0.yaml\" as a file path for instance \"0\""
time="2021-12-17T08:40:51+01:00" level=fatal msg="instance name \"0\" too long: \"/Users/mario-leander.reimer/Library/Application Support/rancher-desktop/lima/0/ssh.sock.1234567890123456\" must be less than UNIX_PATH_MAX=104 characers, but is 104"
2021-12-17T07:40:51.618Z: + limactl --debug start --tty=false /Users/mario-leander.reimer/Library/Application Support/rancher-desktop/lima/_config/0.yaml
2021-12-17T07:40:51.619Z: Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
2021-12-17T07:40:51.619Z: Error starting lima: Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
at ChildProcess.<anonymous> (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:13:24844)
at ChildProcess.emit (events.js:315:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
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.
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:
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):