Rancher Desktop fails to start on MacOS 12.3
See original GitHub issueNoticed Rancher Desktop (1.1.1) now fails to start after the MacOS update to 12.3
Steps to Reproduce
- Update MacOS to 12.3
- Open/Start Rancher Desktop
- Authorize privilege access
Result
Kubernetes Error
Error Starting Kubernetes
Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
Last command Run:
limactl start --tty=false 0
Context:
Starting virtual machine
Some recent logfile lines:
time="2022-03-15T04:59:58-07:00" level=info msg="Using the existing instance \"0\""
time="2022-03-15T04:59:58-07:00" level=info msg="Starting switch daemon for \"shared\" network"
time="2022-03-15T04:59:58-07:00" level=fatal msg="\"/private/var/run/rancher-desktop-lima\" doesn't seem to be writable by the daemon (gid:1) group"
2022-03-15T11:59:58.940Z: + limactl start --tty=false 0
2022-03-15T11:59:58.940Z: Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
2022-03-15T11:59:58.940Z: Error starting lima: Error: /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl exited with code 1
at ChildProcess.<anonymous> (/Applications/Rancher Desktop.app/Contents/Resources/app.asar/dist/app/background.js:1:8692)
at ChildProcess.emit (node:events:394:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:46
- Comments:22 (6 by maintainers)
Top Results From Across the Web
Memory error when running Elasticsearch on Docker (macOS ...
The problem was not in MacOS I was using Rancher Desktop. After switching to Docker Desktop everything is working fine. Thank you.
Read more >Troubleshooting Tips - Rancher Desktop Docs
A: The cause is hard to determine without additional information. Navigate to the Troubleshooting tab and use the button to access the logs....
Read more >Matt Farina on Twitter: "Rancher Desktop 1.1.0 is out and with ...
I am using macOS 12.3 beta which keeps resetting permissions on this file path ... Permission error on macOS · Issue #1441 ·...
Read more >Upgraded to macOS Monterey 12.3.1 and `playwright + ...
This might be related to the node issue on Monterey 12.3.1 that it is already running on the default port 5000.
Read more >m1 MacOS panic testing lima with qemu HEAD/7.0.0 - GitLab
I created a VM with 8GiB memory, and got a panic. lima version: ⎈ |rancher-desktop:default) ~ ❯❯❯ limactl --version ✘ 1 limactl version ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We have determined the root cause of this issue:
Rancher Desktop has always erroneously created
/private/var/run/rancher-desktop-lima
with file mode555
.We didn’t notice this because it was silently fixed by lima when it made sure the directory existed:
Now, this is actually a bug:
mkdir -m 755 -p ...
is not supposed to change the permission bits if the directory already existed. But it did, so it covered up the bug in Rancher Desktop.This bug has been fixed in the Monterey 12.3 release (but not in e.g. the Catalina security update).
The best workaround for now is to run this command after each reboot (
/var/run
is deleted on reboot), before you invoke Rancher Desktop the first time:We are planning to make a new Rancher Desktop release next week that addresses this issue.
The permissions on the
/private/var/run/rancher-desktop-lima
directory were reset to555
.Workaround is resetting it to
775
.