question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rancher Desktop fails to start on MacOS 12.3

See original GitHub issue

Noticed Rancher Desktop (1.1.1) now fails to start after the MacOS update to 12.3

Steps to Reproduce

  1. Update MacOS to 12.3
  2. Open/Start Rancher Desktop
  3. 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:closed
  • Created 2 years ago
  • Reactions:46
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

73reactions
janduboiscommented, Mar 15, 2022

We have determined the root cause of this issue:

Rancher Desktop has always erroneously created /private/var/run/rancher-desktop-lima with file mode 555.

We didn’t notice this because it was silently fixed by lima when it made sure the directory existed:

# head -1 /etc/sudoers.d/zzzzz-rancher-desktop-lima
%everyone ALL=(root:wheel) NOPASSWD:NOSETENV: /bin/mkdir -m 775 -p /private/var/run/rancher-desktop-lima

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:

sudo mkdir -m 775 /private/var/run/rancher-desktop-lima

We are planning to make a new Rancher Desktop release next week that addresses this issue.

27reactions
alexdepalexcommented, Mar 15, 2022

The permissions on the /private/var/run/rancher-desktop-lima directory were reset to 555.

dr-xr-xr-x  2 root  daemon   64 15 mrt 13:34 /private/var/run/rancher-desktop-lima

Workaround is resetting it to 775.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found