https://rancher.com/ logo
Title
m

miniature-vegetable-61663

01/05/2023, 5:22 PM
Hello all, I'm facing an issue when I try to start rancher desktop (I have just installed it). Here's the error:
Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1.
Last command run:
/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> start --tty=false /Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/_config/0.yaml
Context:
Starting virtual machine
Some recent <app://./index.html#|logfile> lines:
stderr: 'time="2023-01-05T18:21:58+01:00" level=fatal msg="open /Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/_config/0.yaml: no such file or directory"\n',
  code: 1,
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    'start',
    '--tty=false',
    '/Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
  ]
}
f

fast-garage-66093

01/05/2023, 5:59 PM
You are running into a limitation because of the length of your username:
$ echo /Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/0/ssh.sock.1234567890123456 | wc -c
     105
This length must be less than 104 for Rancher Desktop to work correctly. There is a workaround in https://github.com/rancher-sandbox/rancher-desktop/issues/797#issuecomment-996510877
m

miniature-vegetable-61663

01/05/2023, 6:00 PM
I ran into that issue but then executed this lines:
$ mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima
$ ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima
f

fast-garage-66093

01/05/2023, 6:00 PM
Ok, and now you are getting the error you have shown above?
m

miniature-vegetable-61663

01/05/2023, 6:00 PM
Yes
f

fast-garage-66093

01/05/2023, 6:02 PM
Did you get any error from the
ln
command? It looks like it didn't create the symlink. You can check with
ls -ld ~/Library/Application\ Support/rancher-desktop/lima
m

miniature-vegetable-61663

01/05/2023, 6:03 PM
This is what I get after running the above
lrwxr-xr-x  1 clara_israel_chocron  staff  35  5 Jan 17:38 /Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima -> /Users/clara_israel_chocron/.rdlima
is it fine?
f

fast-garage-66093

01/05/2023, 6:04 PM
Yes, that looks correct. Let me try to do the same thing on my machine
m

miniature-vegetable-61663

01/05/2023, 6:04 PM
Perfect. Thanks so much
f

fast-garage-66093

01/05/2023, 6:04 PM
Which version of RD are you using? Are you on 1.7?
(everything seems to be working fine for me)
m

miniature-vegetable-61663

01/05/2023, 6:05 PM
yes 1.7.0
Rancher.Desktop-1.7.0.x86_64.dmg - i downloaded this version
f

fast-garage-66093

01/05/2023, 6:08 PM
Did you stop RD before moving the directory? Can you show which files exist (
find ~/.rdlima
)?
m

miniature-vegetable-61663

01/05/2023, 6:08 PM
one of the issues I noticed was that the folder
limatcl
in the path
'/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>'
wasn't installed/isn't there
clara_israel_chocron@LOND-319440-C02FX0Q8MD6W ~ % find ~/.rdlima
/Users/clara_israel_chocron/.rdlima
/Users/clara_israel_chocron/.rdlima/lima
/Users/clara_israel_chocron/.rdlima/lima/.DS_Store
/Users/clara_israel_chocron/.rdlima/lima/_config
/Users/clara_israel_chocron/.rdlima/lima/_config/networks.yaml
/Users/clara_israel_chocron/.rdlima/.DS_Store
/Users/clara_israel_chocron/.rdlima/.rdlima
/Users/clara_israel_chocron/.rdlima/_config
/Users/clara_israel_chocron/.rdlima/_config/networks.yaml
f

fast-garage-66093

01/05/2023, 6:09 PM
This looks all wrong; did you run any
limactl
command manually?
m

miniature-vegetable-61663

01/05/2023, 6:09 PM
What do you mean by stop RD? I think it never started running
no
f

fast-garage-66093

01/05/2023, 6:10 PM
And you are saying this file doesn't exist:
$ ls -l '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>'
-rwxr-xr-x  1 jan  admin  13945136 22 Nov 10:57 /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>
m

miniature-vegetable-61663

01/05/2023, 6:11 PM
yes
sorry it does!
just checked
clara_israel_chocron@LOND-319440-C02FX0Q8MD6W ~ % ls -l '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>'
-rwxr-xr-x@ 1 clara_israel_chocron  admin  14073168 15 Dec 05:22 /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>
f

fast-garage-66093

01/05/2023, 6:12 PM
ok, good, because I wouldn't understand how you could get an error from
limactl
if the executable was not there...
m

miniature-vegetable-61663

01/05/2023, 6:12 PM
yes, exactly the executable isn't there
do you know how can i get it? should i uninstall?
f

fast-garage-66093

01/05/2023, 6:13 PM
Huh, you just showed me that it is there
m

miniature-vegetable-61663

01/05/2023, 6:13 PM
ahh but why doesn't it start?
f

fast-garage-66093

01/05/2023, 6:14 PM
Since you don't have anything stored in the VM yet, let's try to remove the directory and recreate it:
$ rm -rf ~/.rdlima
$ mkdir ~/.rdlima
m

miniature-vegetable-61663

01/05/2023, 6:14 PM
ls -l  '/Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
ls: /Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/_config/0.yaml: No such file or directory
f

fast-garage-66093

01/05/2023, 6:14 PM
Then try starting RD again
m

miniature-vegetable-61663

01/05/2023, 6:15 PM
okk, will do now
sorry managed to restart it - got into the limitation because of the length of my username
will run this again
$ mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima
$ ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima
f

fast-garage-66093

01/05/2023, 6:19 PM
The workaround should still have been in place; we only deleted the target of the symlink to have a nice clean directory
m

miniature-vegetable-61663

01/05/2023, 6:20 PM
oh i did factory reset, instead of just reset
I'm running into the exact same issue 😞
f

fast-garage-66093

01/05/2023, 6:21 PM
Can you zip up all the log files (in
~/Library/Logs/rancher-desktop
) and send them to me?
m

miniature-vegetable-61663

01/05/2023, 6:23 PM
Thank you so much
f

fast-garage-66093

01/05/2023, 6:28 PM
Those logs are from before you moved the lima directory to
~/.rdlima
. Can you please stop the app, run these commands and then start RD again:
rm -rf ~/Library/Application\ Support/rancher-desktop/lima
rm -rf ~/.rdlima
mkdir ~/.rdlima
ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima
Then when you run into the error again, collect the log files and send them to me
m

miniature-vegetable-61663

01/05/2023, 6:30 PM
sure, thanks, once sec
although I get this, after I ran the commands above . Does this look correct?
clara_israel_chocron@LOND-319440-C02FX0Q8MD6W ~ % find ~/.rdlima
/Users/clara_israel_chocron/.rdlima
f

fast-garage-66093

01/05/2023, 6:34 PM
Which macOS version are you running?
m

miniature-vegetable-61663

01/05/2023, 6:34 PM
Ventura 13.1
f

fast-garage-66093

01/05/2023, 6:34 PM
Thanks!
In
lima.log
I still see this error:
msg="instance name \\"0\\" too long: \\"/Users/clara_israel_chocron/Library/Application Support/rancher-desktop/lima/0/ssh.sock.1234567890123456\\" must be less than UNIX_PATH_MAX=104 characters, but is 104"\n'
m

miniature-vegetable-61663

01/05/2023, 6:38 PM
oh, the error log was from 19.29 so it looks like it wasnt fixed the issue?
although that error occured at
'time="2023-01-05T19:16:33+01:00" level=fatal
f

fast-garage-66093

01/05/2023, 6:43 PM
I guess I have to create a long username on a Ventura machine to see if I can reproduce this. I have a meeting coming up soon, so this will take a while before I can send another update
m

miniature-vegetable-61663

01/05/2023, 6:43 PM
Ok. No worries. Thank you so much!!
f

fast-garage-66093

01/05/2023, 6:55 PM
I created a user with your name and username, and it initially fails due to the username length, but works fine after moving the directory and creating the symlink, so this didn't help either. 😞
It must be something specific to your machine. Will look at the log files some more after my meetings
m

miniature-vegetable-61663

01/05/2023, 6:56 PM
oh 😞
thank you 🙂
should i uninstall RD and install RD again?
f

fast-garage-66093

01/05/2023, 6:58 PM
I don't expect it to make any difference, but maybe it is time for desperate action... Do a Factory Reset before you do that.
m

miniature-vegetable-61663

01/05/2023, 6:59 PM
Ok. will do. thanks!
I got the exact same issue after uninstalling and installing 😞
f

fast-garage-66093

01/05/2023, 7:49 PM
I didn't expect it to make a difference; unfortunately I still have no idea what is happening. Maybe you should create a Github issue for it; document all the commands you ran to work around the user name length issue, and then append the log files after restarting RD after making all these changes.
Yes, please create a Github issue with all the information, I can't find anything right now, although the info in
background.log
looks all wrong to me.
Sorry, this may take a while longer to figure out 😞
🥲 1
m

miniature-vegetable-61663

01/05/2023, 8:08 PM
Ok, thanks. Will do shortly
f

fast-garage-66093

01/05/2023, 8:09 PM
It's probably going to take until some time next week, when more people return from vacations...
Feel free to ping on Slack again when you don't get an update on the Github issue
k

kind-iron-72902

01/09/2023, 11:11 PM
I just posted a suggestion in the 3716 thread -- I couldn't repro with an account with your name on a macOS machine, but could repro a related problem with a different username.
m

miniature-vegetable-61663

01/10/2023, 8:52 AM
Thanks for answering, unfortunately it hasnt worked out 😞
I'll upload the log files shortly
I also attached them in the github issue