rancher-desktop: Kubernetes was unable to start: did not receive an event with the \\"running\\" status
Actual Behavior
The Kubernetes instance does not start
Steps to Reproduce
Just start Rancher Desktop.
I tried to factory reset and changing container runtimes. Neither helped.
I recently migrated from an Intel to M1 chip mac. On the first run, Rancher Desktop kindly notified me that I need the aarch64 version. I uninstalled the old version and installed the aarch64 version. I did the migration using the built-in migration wizard.
Result
backend log tails:
2022-09-07T18:18:16.624Z: mainEvents settings-update: {"version":4,"kubernetes":{"version":"1.24.4","memoryInGB":6,"numberCPUs":2,"port":6443,"containerEngine":"moby","checkForExistingKimBuilder":false,"enabled":true,"WSLIntegrations":{},"options":{"traefik":false,"flannel":true},"suppressSudo":false,"experimentalHostResolver":false,"hostResolver":true},"portForwarding":{"includeKubernetesServices":false},"images":{"showAll":true,"namespace":"k8s.io"},"telemetry":true,"updater":true,"debug":false,"pathManagementStrategy":"rcfiles"}
2022-09-07T18:28:21.935Z: Kubernetes was unable to start: 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:17:142946)
at ChildProcess.emit (node:events:390:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
stdout: '',
stderr: 'time="2022-09-07T20:18:21+02:00" level=info msg="Using the existing instance \\"0\\""\n' +
'time="2022-09-07T20:18:21+02:00" level=info msg="Starting switch daemon for \\"rancher-desktop-bridged_en0\\" network"\n' +
'time="2022-09-07T20:18:21+02:00" level=info msg="Starting vmnet daemon for \\"rancher-desktop-bridged_en0\\" network"\n' +
'time="2022-09-07T20:18:21+02:00" level=info msg="Starting vmnet daemon for \\"rancher-desktop-shared\\" network"\n' +
'time="2022-09-07T20:18:22+02:00" level=warning msg="[hostagent] field `firmware.legacyBIOS` is not supported for architecture \\"aarch64\\", ignoring"\n' +
'time="2022-09-07T20:18:22+02:00" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \\"/Users/nagyviktor/Library/Application Support/rancher-desktop/lima/0/serial.log\\")"\n' +
'time="2022-09-07T20:18:22+02:00" level=info msg="SSH Local Port: 65521"\n' +
'time="2022-09-07T20:18:22+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:19:58+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:21:30+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:23:03+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:24:35+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:26:07+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:27:39+02:00" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \\"ssh\\""\n' +
'time="2022-09-07T20:28:21+02:00" level=fatal msg="did not receive an event with the \\"running\\" status"\n',
code: 1,
command: [
'/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl',
'start',
'--tty=false',
'0'
]
}
Expected Behavior
The Kubernetes instance starts
Additional Information
From the issue tracker, this seems to be similar to https://github.com/rancher-sandbox/rancher-desktop/issues/2535
My logs are as they are expected to be:
ls -l ~/Library/Logs/rancher-desktop
total 64
-rw------- 1 nagyviktor staff 3092 Sze 7 20:28 background.log
-rw------- 1 nagyviktor staff 0 Sze 7 20:18 images.log
-rw------- 1 nagyviktor staff 0 Sze 7 20:18 integrations.log
-rw------- 1 nagyviktor staff 422 Sze 7 20:18 k8s.log
lrwxr-xr-x 1 nagyviktor staff 62 Feb 13 2022 lima.ha.stderr.log -> ../../Application Support/rancher-desktop/lima/0/ha.stderr.log
lrwxr-xr-x 1 nagyviktor staff 62 Feb 13 2022 lima.ha.stdout.log -> ../../Application Support/rancher-desktop/lima/0/ha.stdout.log
-rw------- 1 nagyviktor staff 6600 Sze 7 20:28 lima.log
lrwxr-xr-x 1 nagyviktor staff 59 Feb 13 2022 lima.serial.log -> ../../Application Support/rancher-desktop/lima/0/serial.log
-rw------- 1 nagyviktor staff 0 Sze 7 20:18 mock.log
-rw------- 1 nagyviktor staff 6625 Sze 7 20:18 networking.log
-rw------- 1 nagyviktor staff 110 Sze 7 20:18 server.log
-rw------- 1 nagyviktor staff 0 Sze 7 20:28 settings.log
-rw------- 1 nagyviktor staff 0 Sze 7 20:18 steve.log
-rw------- 1 nagyviktor staff 165 Sze 7 20:18 update.log
-rw------- 1 nagyviktor staff 0 Sze 7 20:18 wsl.log
Rancher Desktop Version
1.5.1
Rancher Desktop K8s Version
1.24.3
Which container engine are you using?
containerd (nerdctl)
What operating system are you using?
macOS
Operating System / Build Version
12.5.1
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17 (6 by maintainers)
Same issue with a fresh installation of 1.12.2 on a brand new M3 Mac. Lima stuck “Waiting for the essential requirement 1 of 5” until timeout.
Had to install 1.8 for successful initialization.
me too, on rancher desktop 1.9.1 up to 1.11, migrated from a timemachine backup. multiple factory resets, downgrades and reboots later… the firewall seems to be turned off.
i cant pinpoint the source of the problem.
has anyone had success getting this to work?
i had to go back to version 1.8 for it to work it worked upgrading from 1.8 to 1.9. but i couldnt get 1.9 to work from the installer.
these might be related. https://github.com/docker/compose/issues/8191
the error i get after installing
brew install socket_vmnetseems to be something wrong with the ssh settings. i gave rancher desktop administrative privileges and full disk access. still had to regress like 5 versions
it seems a similar issue to what occurs here is the case: https://github.com/rancher-sandbox/rancher-desktop/issues/2072
the ssh.sock file is not created within
~/Library/Application\ Support/rancher-desktop/lima/0/i did try export lima homeNo, it isn’t, and you would have to set
LIMA_HOMEcorrectly before it would work. Ideally you should never run it manually.From
lima.serial.logI can see that qemu can’t boot the VM at all, which indicates that thebasediskis not working at all. It should be a copy of the ISO image:I suspect that something got broken during your migration and would recommend to do another Factory Reset, then remove Rancher Desktop and install it again.
If it still fails, attach the new logs (including symlinked ones) and show the content of the 2 directories above.