-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rancher Desktop Intermittently Hangs on Ventura 13.1 #3777
Comments
Attached are the logs we captured when we re-produced the issue. |
I can't reproduce this on macOS 13.1 on M1 either). I've done a factory reset, rebooted the host, did another factory reset, and the command always worked fine. I've looked at the logs, and can't spot anything in there either. On the "reproducible laptop" does this also happen after a factory reset? Or after rebooting the host? Are there any errors in any of the networking logs at |
I am getting our IT team to send me an M1 Macbook so I can try to reproduce this issue. Another dev reported the same issue this morning. Not sure what they were doing to cause it though. On the "reproducible laptop" it happens even after a factory reset, reboot, and fresh re-install. The dev with the reproducible laptop needs to get some work done so they have uninstalled it for now. |
Thank you so much; this will be really helpful, as I've been unable to repro this myself. Maybe also take a look at any anti-malware technology installed on your machines; maybe that is interfering with the virtualization code? |
I have the same problem. My colleagues who have the same anti-virus software installed did not have the problem. |
Hi I 'm able to reproduce this frequently on my M1 running Monterrey 12.6.1/RD 1.7.0/k8s 1.25.4/Traefik disabled. What logs can I provide from Tried quitting Rancher desktop and restarting a couple of times but same problem. I could restart the laptop and the problem might go away. I may need to do that to not be blocked with my work and/or look to minikube (which doesn't have a nice UI). But happy to provide logs and keep the laptop in this reproducible state for the next 24 hours or so if it helps. |
tailed logs from the time it started to the time it stopped working. 1. steve.log
|
2. k3s.log
|
Note we have been able to avoid this hanging issue by switching to the |
@ryancurrah how do you enable
But wasn't able to find the specific on how to enable it. |
I have the same problem. In detail, I and co-worker had upgraded the macOS to 13.0 but become producing it. Finally, I had recovered by switching mountType to the |
Docker container had run normally with pure Lima that installed by homebrew. |
@lakamsani edit this file and add entry the |
I ran into the same issue too, when doing a "pnpm install" in a docker container after mounting a custom workdir into lima, on my macOS 13.1(intel). So I think this is not related to intel or M1. For me, it seems "hang" only occures when using default mountType(should be null, from ~/Library/Application Support/rancher-desktop/lima/0/lima.yaml), and run some npm install commadn inside a docker container with -v custom volmue mount. |
After upgrading to Ventura 13.2 coming from 12.x. I never ran into this problem on 12.x I'm running into the same issue. I'm doing a massive amount of file activity along with network inside a container. The IO get's hung, which then
On restart, qemu looks like it comes up properly, but the docker socket is unresponsive still. A second quit and restart works fine. I guess I'll try the 9p thing. I don't have an override.yaml, so I'm assuming it should look like:
|
Answered my own question:
ps auxww |grep rancher | grep ssh shows nothing now while using disk io |
Hello, experiencing same issue, but on intel CPU and macOS Ventura....FYI |
I should have clarified that, I’m on intel as well. The 9p made a huge difference. |
Unfortunately for me the 9p caused other issues so it's unusable for me. |
update: upgraded to Ventura 13.2 and don't have the "freezing" problem anymore without any override... |
Meet the same hang problem on 13.2 on Intel mac, docker freezing, can't quick rancher-desktop. |
Likewise, Rancher Desktop randomly freezes for me, more often-than-not after I leave it running without use for a while, and most nerdctl nor rdctl commands will respond until I restart the application (tearing down the VM, etc.). I'm currently on Rancher Desktop 1.9.1 & on macOS Ventura 13.5.1, running on Apple silicon (M2 Pro). I don't have Kubernetes enabled, and I'm using the containerd runtime, with VZ emulation (Rosetta support enabled) & virtiofs mounting (I did have other types of problems before when using 9p, mostly related to user mappings & permissions, so I'd like to avoid going back to that, and reverse-sshfs was unbearably slow!). Let me know if you'd like me to gather any information when RD hangs, for debugging purposes. Thanks! |
Same issue here. Exactly same environment as @juanpalaciosascend (but M1 pro) |
Same for me, factory reset did fix it for me though. |
Factory reset fixes because it probably sets back to QEMU, reverse-sshfs, ... but if you try to apply those settings mentioned (VZ, virtiofs, ...) back, probably problem will come back. |
I've seen most of the problems I've been experiencing go away... I want to say entirely, but it might be still a little bit too early for that, when switching back to the dockerd (moby) runtime, away from containerd. All other settings (e.g. VZ framework, Rosetta support enabled, virtiofs volumes, Kubernetes disabled, etc.) remain the same, so that leads me to believe the problem that's causing Rancher Desktop to freeze revolves around the use of containerd. |
Same here Rancher 1.10.0 |
same issue (1.10.0 / 13.5.2 / M1 Pro) |
same issue here 1.10.0/ m1 pro/ sonoma 14.0 |
same issue 1.10.0/ 13.5.1 / m1 pro |
same issue Ventura 13.6 / M1 Pro / 1.10.0 / VZ. However I issued the same problems in lima/colima, so the problem is not in Rancher itself |
same isssue 13.4.1 / M1 Pro / 1.11.0 |
same issue with Ventura 13.5.2 |
rancher desktop 1.11.1, M1 Ventura 13.6.3 process kill suggested in #3777 (comment) helps so a newly started rancher desktop does not hang for some time (a few days). After the rancher desktop start this is the disk usage, so the hang is probably not due to some limits exceeded.
It seems like tracing docker with dtruss is not feasible without disabling SIP (system integrity protection) https://www.deepanseeralan.com/tech/fun-with-dtruss-macOS/
Maybe someone manages to trace docker to get some more information about the hang, |
I've had Rancher Desktop 1.12.0 installed since yesterday and haven't encountered the issue again (on MacOS Ventura 13.6.3). With 1.11.1, I was encountering this issue pretty much immediately when using VSCode dev containers and the only "fix" was setting the mountType to 9p, which broke dev containers in other ways and made them equally unusable. |
I'm experiencing the hanging issue with 1.12.1. |
Still an issue with rancher-desktop 1.12.2. An additional information may be that hanging happens possibly more often when emulating amd64 using |
Rancher 1.12.3, macOs Sonoma 14.3.1 and this is still hanging. I already tried several configurations such as Emulation VZ enabling Rosetta support and Volume virtiofs, but no luck... |
Any luck on this? Experienced it in Sonoma. |
I am experiencing this as well. |
@vaniiiiiiii 's fix worked for me as well. |
|
Let's keep this issue open for a little longer; if it doesn't work with QEMU then it is still a bug. |
I still experience this, though more intermittently due to my attempted workarounds. It feels like a memory issue because the repro is hard to predict. After a fresh restart of Rancher (i.e. Rancher 1.15.1 I regularly pull multi-layer images like https://hub.docker.com/r/rstudio/rstudio-workbench with the Repro:I wrote this script to pull several images and then prune them.
(If this script succeeds, try waiting several hours before re-running. I had to wait a day for it to repro.) Result:When the script fails, it will display the following: To recover Rancher, run |
The above On my side, I've not experienced hanging since March (with QEMU), and realized I'm still using rancher desktop 1.12.3, with regularly up to date MacOS Sonoma (now 14.6.1). There were other problems with docker build, like Debian amd64 emulation being being very slow (next build taking 20 minutes compared to less than a minute on native aarch64), which made me eventually increase Since then, the hanging has not reappeared yet, and the build takes only a few minutes. I kept other options as before, 4 CPUs, |
I posted in the slack channel but I am seeing some thing similar using VZ with rosetta enabled, and virtiofs. We have the exact same configuration for a number of users, but just one user is having this problem. Seems to happen during an image pull |
Actual Behavior
When running a docker command it will hang forever. Any subsequent commands to docker in another shell hang as well. Rebooting the laptop is required as Rancher Desktop becomes unusable.
Steps to Reproduce
One dev on a M1 Mac, running Ventura 13.1 can reproduce this issue consistently by building a
Dockerfile
in docker. We however are unable to reproduce the same issue on our laptops consistently. One of our team members reproducing it is using a M1 Mac as well.Create a Dockerfile
Build Dockerfile in docker
Result
The terminal just hangs.
Expected Behavior
Docker commands not to hang.
Additional Information
We have had our developers start using Rancher Desktop in November 2022. It was working good, no hanging issues reported. Once people started updating to Ventura at the beginning of the month (January) they started reporting these issues. We have one developer who is able to consistently reproduce the issue, some of us can only reproduce it intermittently. Seems to be most reproducible on M1 Mac though. We were also able to reproduce it with our security tools disabled.
We enabled debug logging from the Rancher Desktop Troubleshooting page and looked at all the logs,
lima
and rancher and did not see any glaring errors or warnings.If there is anything else we can provide to help this let me know.
Rancher Desktop Version
1.7.0
Rancher Desktop K8s Version
Disabled
Which container engine are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
Ventura 13.1
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: