rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.8k stars 272 forks source link

Kubernetes Error Rancher Desktop 1.6.0 - darwin (x64) Error Starting Kubernetes #3137

Closed mingdaoy closed 1 year ago

mingdaoy commented 1 year ago

Actual Behavior

image

image

Steps to Reproduce

  1. Install Rancher Desktop and it runs for a while, then quit by itself.
  2. Click the icon in the Dock to relaunch

Result

Kubernetes Error Rancher Desktop 1.6.0 - darwin (x64) Error Starting Kubernetes Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1 Last command run: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl start --tty=false 0

Context: Starting virtual machine

Some recent logfile lines:

'time="2022-10-13T00:44:02+08:00" level=fatal msg="errors inspecting instance: [failed to get Info from \\"/Users/<user_name>/Library/Application Support/rancher-desktop/lima/0/ha.sock\\": Get \\"http://lima-hostagent/v1/info\\": context deadline exceeded]"\n',

code: 1, command: [ '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl', 'start', '--tty=false', '0' ] }

Expected Behavior

Start running.

Additional Information

No response

Rancher Desktop Version

Rancher Desktop 1.6.0 - darwin (x64)

Rancher Desktop K8s Version

1.24.6

Which container engine are you using?

containerd (nerdctl)

What operating system are you using?

macOS

Operating System / Build Version

macOS Monterey12.6

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

No response

Windows User Only

No response

mingdaoy commented 1 year ago

Cannot even start again in the first few hours

jandubois commented 1 year ago

Please attach full logs.

mingdaoy commented 1 year ago

It's in the "Result" section above, which was shown in the popup

mingdaoy commented 1 year ago

@jandubois are you referring to

image
mattfarina commented 1 year ago

I am experiencing the same error under pop!_os (ubuntu based) with the deb packaged version when I upgraded to 1.6.0. It's the same error message the the original poster but with Linux based system locations.

The specific error I see is...

Error starting lima: Error: /opt/rancher-desktop/resources/resources/linux/lima/bin/limactl exited with code 1
    at ChildProcess.<anonymous> (/opt/rancher-desktop/resources/app.asar/dist/app/background.js:1:7750)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
  stdout: '',
  stderr: 'time="2022-10-12T13:42:55-04:00" level=info msg="Using the existing instance \\"0\\""\n' +
    'time="2022-10-12T13:42:55-04:00" level=fatal msg="errors inspecting instance: [failed to get Info from \\"/home/mfarina/.local/share/rancher-desktop/lima/0/ha.sock\\": Get \\"http://lima-hostagent/v1/info\\": dial unix /home/mfarina/.local/share/rancher-desktop/lima/0/ha.sock: connect: connection refused]"\n',
  code: 1,
  command: [
    '/opt/rancher-desktop/resources/resources/linux/lima/bin/limactl',
    'start',
    '--tty=false',
    '0'
  ]
}

Note, this instance was docker/moby WITHOUT a running Kubernetes.

On Intel Mac the upgrade had no issues. That setup was docker/moby without a running Kubernetes as well.

My log files can be downloaded from https://1drv.ms/u/s!At6-pjJ-bCdxoERe8pHm0RsPPIRS?e=hjaCn7

mattfarina commented 1 year ago

Starting it up again (there was a reboot in between) and it just started

miguelsmuller commented 1 year ago

Has anyone managed to find a workaround for this problem?

jandubois commented 1 year ago

Has anyone managed to find a workaround for this problem?

We have not been able to reproduce it, and for Matt the issue was gone once he restarted his machine, so not really clear what can be done about it. Is it more persistent for you?

miguelsmuller commented 1 year ago

yes... my first attempt at a solution was to restart... I updated to Ventura 13.1 but I don't know if it was related. and kubernetes was always disabled. apparently this error happens on kubernets startup when rancher starts Captura de Tela 2022-12-13 às 14 08 59 Captura de Tela 2022-12-13 às 17 27 37

miguelsmuller commented 1 year ago

I solved my problem by reinstalling rancher desktop

frankcis-sh commented 1 year ago

i solved my problem by enlarge memory allocate

torressam333 commented 1 year ago

I solved this issue by resetting Kubernetes in the Troubleshooting section:

image
jandubois commented 1 year ago

I'm going to close this as not-reproducible. I don't see anything we can do unless we have a repro case.

mkarpicki commented 10 months ago

I am facing same problem on Ubuntu, this is "random". Starting my machine and sometimes it happens - only way to work this around is to restart laptop. Restarting Rancher, or using reset Kubernates in Troubleshooting section did not help. Occurs maybe each second day. Which log file would be best to provide?

mkarpicki commented 10 months ago

ok.. I followed mentioned above thread .. Factory reset fixed this issue (for now at least)

mkarpicki commented 10 months ago

.. only for couple of restarts ... problem came back. Something seems not stable enough. Probably reset to Factory settings is good short term workaround to use.

julian-alarcon commented 5 months ago

I had this issue today after turning off and on my laptop. It seems that some files were not deleted after shutting down my Ubuntu OS.

Just deleting manually the *.sock and .pid files (qemu.pid, serialv.sock, ha.sock, ga.sock and similars ) from the ~/.local/share/rancher-desktop/lima/0 directory was enough.

xadamxk commented 4 months ago

I had this issue today after turning off and on my laptop. It seems that some files were not deleted after shutting down my Ubuntu OS.

Just deleting manually the *.sock and .pid files (qemu.pid, serialv.sock, ha.sock, ga.sock and similars ) from the ~/.local/share/rancher-desktop/lima/0 directory was enough.

Confirming that this fixed the issue for me as well (Ubuntu 22.04), thank you :raised_hands: