https://rancher.com/ logo
Title
b

busy-mechanic-89648

08/11/2022, 5:06 PM
hi, when I first install rancher-desktop on my intel mac, there is a problem after click “Accept”
more logs : Error Starting Kubernetes
TypeError: Cannot read properties of undefined (reading 'clusters')
Context: Installing trivy & CA certs Some recent logfile lines:
at KubeConfig.loadFromFile (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/node_modules/@kubernetes/client-node/dist/config.js:77:14|Desktop.app/Contents/Resources/app.asar/node_modules/@kubernetes/client-node/dist/config.js:77:14>)
    at KubeConfig.loadFromDefault (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/node_modules/@kubernetes/client-node/dist/config.js:237:22|Desktop.app/Contents/Resources/app.asar/node_modules/@kubernetes/client-node/dist/config.js:237:22>)
    at bi.updateContexts (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:54882|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:54882>)
    at bi.updateMenu (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:53860|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:53860>)
    at bi.k8sStateChanged (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:53288|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:53288>)
    at g.<anonymous> (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:52540|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:52540>)
    at g.emit (node:events:402:35)
    at Br.<anonymous> (/Applications/Rancher <http://Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:79560|Desktop.app/Contents/Resources/app.asar/dist/app/background.js:29:79560>)
    at Br.emit (node:events:390:28)
I tried factory rest, but problem again.
I have uninstall docker before install.
I tried recheck the k8s to install k3s, then disable k8s again, the error is disappeared. I don’t know why .
w

witty-librarian-14389

08/11/2022, 5:38 PM
try resetting kubectl config - I had a similar issue and it turned out to be bad config in kubectl
(stuff in the
~/.kube/
directory)
b

busy-mechanic-89648

08/11/2022, 5:48 PM
You are right. I tried again according to your suggesting, it starts up normally.
👍 1