https://rancher.com/ logo
Title
s

shy-eye-35765

06/22/2022, 6:06 PM
Hi. I am trying to install racher (1.4.1) on my Mac (Intel chip with OS version; 11.3.1). And getting below error
time="2022-06-22T23:11:14+05:30" level=debug msg="interpreting argument \"0\" as an instance name"
time="2022-06-22T23:11:14+05:30" level=info msg="Using the existing instance \"0\""
time="2022-06-22T23:11:14+05:30" level=debug msg="Make sure \"rancher-desktop-bridged_en0\" network is running"
time="2022-06-22T23:11:14+05:30" level=fatal msg="networks.yaml field `paths.vdeSwitch` error: dir \"/opt\" is world-writable"
2022-06-22T17:41:14.020Z: + limactl --debug start --tty=false 0
2022-06-22T17:41:14.020Z: Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1
2022-06-22T17:41:14.021Z: Error starting lima: Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1
    at ChildProcess.<anonymous> (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:17:141990|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:17:141990>)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    '--debug',
    'start',
    '--tty=false',
    '0'
  ]
}

==> background.log <==
2022-06-22T17:41:14.026Z: Kubernetes was unable to start: Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1
    at ChildProcess.<anonymous> (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:17:141990|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:17:141990>)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    '--debug',
    'start',
    '--tty=false',
    '0'
  ]
}
I tried following https://github.com/rancher-sandbox/rancher-desktop/issues/1815. But in my case there was nothing at this path.
/private/var/run/rancher-desktop-lima
Hence I ran
sudo mkdir -m 775 /private/var/run/rancher-desktop-lima
But still getting same error.
f

fast-garage-66093

06/22/2022, 7:30 PM
Your problem is with the
/opt
directory being world-writable; try
sudo chmod 755 /opt
and see if that helps. Also verify that
/opt
is owned by
root
and not your own user.