This message was deleted.
# rancher-desktop
a
This message was deleted.
m
Copy code
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
Copy code
Context:
Starting virtual machine
Some recent <app://./index.html#|logfile> lines:
Copy code
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
You are running into a limitation because of the length of your username:
Copy code
$ 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
I ran into that issue but then executed this lines:
Copy code
$ mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima
$ ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima
f
Ok, and now you are getting the error you have shown above?
m
Yes
f
Did you get any error from the
ln
command? It looks like it didn't create the symlink. You can check with
Copy code
ls -ld ~/Library/Application\ Support/rancher-desktop/lima
m
This is what I get after running the above
Copy code
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
Yes, that looks correct. Let me try to do the same thing on my machine
m
Perfect. Thanks so much
f
Which version of RD are you using? Are you on 1.7?
(everything seems to be working fine for me)
m
yes 1.7.0
Rancher.Desktop-1.7.0.x86_64.dmg - i downloaded this version
f
Did you stop RD before moving the directory? Can you show which files exist (
find ~/.rdlima
)?
m
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
Copy code
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
This looks all wrong; did you run any
limactl
command manually?
m
What do you mean by stop RD? I think it never started running
no
f
And you are saying this file doesn't exist:
Copy code
$ 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
yes
sorry it does!
just checked
Copy code
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
ok, good, because I wouldn't understand how you could get an error from
limactl
if the executable was not there...
m
yes, exactly the executable isn't there
do you know how can i get it? should i uninstall?
f
Huh, you just showed me that it is there
m
ahh but why doesn't it start?
f
Since you don't have anything stored in the VM yet, let's try to remove the directory and recreate it:
Copy code
$ rm -rf ~/.rdlima
$ mkdir ~/.rdlima
m
Copy code
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
Then try starting RD again
m
okk, will do now
sorry managed to restart it - got into the limitation because of the length of my username
will run this again
Copy code
$ mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima
$ ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima
f
The workaround should still have been in place; we only deleted the target of the symlink to have a nice clean directory
m
oh i did factory reset, instead of just reset
I'm running into the exact same issue 😞
f
Can you zip up all the log files (in
~/Library/Logs/rancher-desktop
) and send them to me?
m
Thank you so much
f
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:
Copy code
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
sure, thanks, once sec
although I get this, after I ran the commands above . Does this look correct?
Copy code
clara_israel_chocron@LOND-319440-C02FX0Q8MD6W ~ % find ~/.rdlima
/Users/clara_israel_chocron/.rdlima
f
Which macOS version are you running?
m
Ventura 13.1
f
Thanks!
In
lima.log
I still see this error:
Copy code
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
oh, the error log was from 19.29 so it looks like it wasnt fixed the issue?
although that error occured at
Copy code
'time="2023-01-05T19:16:33+01:00" level=fatal
f
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
Ok. No worries. Thank you so much!!
f
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
oh 😞
thank you 🙂
should i uninstall RD and install RD again?
f
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
Ok. will do. thanks!
this is the first issue i get...
I got the exact same issue after uninstalling and installing 😞
f
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
Ok, thanks. Will do shortly
f
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
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
Thanks for answering, unfortunately it hasnt worked out 😞
I'll upload the log files shortly
I also attached them in the github issue
h
Hi All , am also this type of error in my mac-tty=false', '/Users/prathikantamroopesh.bhat/Library/Application Support/rancher-desktop/lima/_config/0.yaml' ], stdout: '', stderr: 'time="2024-02-24T19:02:05+05:30" level=info msg="Terminal is not available, proceeding without opening an editor"\n' + 'time="2024-02-24T19:02:05+05:30" level=fatal msg="instance name \\"0\\" too long: \\"/Users/prathikantamroopesh.bhat/Library/Application Support/rancher-desktop/lima/0/ssh.sock.1234567890123456\\" must be less than UNIX_PATH_MAX=104 characters, but is 108"\n', code: 1, [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura start --tty=false /Users/prathikantamroopesh.bhat/Library/Application Support/rancher-desktop/lima/_config/0.yaml' }. can you please help
1242 Views