rancher-sandbox / rancher-desktop

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

reinstalling rancher fails on macOS M1 sonoma 14.6.1 #7432

Closed ydekel6 closed 2 months ago

ydekel6 commented 2 months ago

Laptop info: Macbook pro M1 Sonoma 14.6.1 Rancher desktop version 1.15.1

I've tried to scale down the resources back what what they were and I tried to delete and reinstall (both through the dmg file and through brew). All I get is a bad docker socket and the following error:

Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura exited with code 1

The full error report:

image

the last error in the report:

'0:/tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl'
  ],
  stdout: '',
  stderr: '/usr/bin/scp: write remote "/tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl": Failure\r\n' +
    '/usr/bin/scp: failed to upload file /var/folders/jg/m7mgybc91w19rqh_t2_l4x740000gn/T/rd-nerdctl-EpAMhNRjef1B/nerdctl to /tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl\r\n',
  code: 1,
  [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura copy /var/folders/jg/m7mgybc91w19rqh_t2_l4x740000gn/T/rd-nerdctl-EpAMhNRjef1B/nerdctl 0:/tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl'
}
2024-09-09T06:58:45.424Z: > /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura shell --workdir=. 0 sudo rm -f /tmp/rd-nginx.conf-MAC86HUbTP4j.nginx.conf

adding all the rancher logs: rancher-logs.zip


Is there a way to purge rancher desktop so I can have a clean install? Do I need to delete or reset anything else?

ydekel6 commented 2 months ago

Now I see that the error is about k8s, but my k8s is set to disabled.

also, when I try any docker command, I get this error:

docker run -ti --rm alpine sh
docker: error during connect: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": EOF.
mook-as commented 2 months ago

The dialog title (Kubernetes Error) is a red herring, left over from when Rancher Desktop always started Kubernetes. The actual error is that limactl.ventura is crashing. It seems to start part way though:

time="2024-09-09T09:58:44+03:00" level=info msg="[hostagent] The final requirement 1 of 1 is satisfied"
time="2024-09-09T09:58:44+03:00" level=info msg="READY. Run `limactl shell 0` to open the shell."
⋮
2024-09-09T06:58:45.380Z: > limactl copy /var/folders/jg/m7mgybc91w19rqh_t2_l4x740000gn/T/rd-nerdctl-EpAMhNRjef1B/nerdctl 0:/tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl
$ c [Error]: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura exited with code 1
⋮
  stderr: '/usr/bin/scp: write remote "/tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl": Failure\r\n' +
    '/usr/bin/scp: failed to upload file /var/folders/jg/m7mgybc91w19rqh_t2_l4x740000gn/T/rd-nerdctl-EpAMhNRjef1B/nerdctl to /tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl\r\n',
  code: 1,
  [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura copy /var/folders/jg/m7mgybc91w19rqh_t2_l4x740000gn/T/rd-nerdctl-EpAMhNRjef1B/nerdctl 0:/tmp/rd-nerdctl-EpAMhNRjef1B.nerdctl'

Unfortunately, the error log is missing why the upload failed.

There are a few files in the logs directory that are symbolic links (lima.ha.stderr.log, etc.); would you be able to upload those as well?

ydekel6 commented 2 months ago

Added the lima logs from ~/Library/Application\ Support/rancher-desktop/lima/0 (the symlinks). I checked that folder and I don't have the other 3 files (lima.serial.log, lima.serialp.log, lima.serialv.log)

lima-logs.zip

mook-as commented 2 months ago

Hi! Would I be correct in thinking that those logs are not matched up to the previous ones (that is, Rancher Desktop was run between the points the logs were collected)?

I'm still trying to figure out what has gone wrong; but I do see that:

ydekel6 commented 2 months ago

yes, I went ahead and deleted everything I could find regarding docker/kube/rancher with the help of this article, specifically the part going through the different system folders (even though it's sponsored ). then, I tried to reinstall it through brew.

I saw another error when it started that seemed the same, but now I restarted rancher again and it seems to be fixed.

jandubois commented 2 months ago

I restarted rancher again and it seems to be fixed.

I assume this means this issue can be closed. Feel free to re-open with additional information if the problem comes back!