1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[解決] Rancher Desktopのエラー:Error Starting Kubernetes

Last updated at Posted at 2023-08-24

はじめに

突然MacでRancher Desktopが起動できなくなりました。

image.png

エラー内容

'--tty=false',
'0'
],
stdout: '',
stderr: 'time="2023-08-14T14:08:35+09:00" level=info msg="Using the existing instance \\"0\\""\n' +
'time="2023-08-14T14:08:35+09:00" level=fatal msg="networks.yaml field `paths.sudoers` error: dir \\"/private/etc\\" is world-writable"\n',
code: 1,
[Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl.ventura start --tty=false 0'
}

解決方法

原因はマシンの/private/etcディレクトリのアクセス権が全ユーザ読み出し/書き込みOKになっていたためです。
wheeleveryoneを読み出しのみにすれば無事起動できました。
何かの作業で/private/etc/hostsを編集した際にアクセス権を変更して戻し忘れていました。

Rancher Desktopを入れ直したりなど色々試しましたが解決できず、
最悪minikubeに変えようかなと考えてましたが、
ちゃんとエラーメッセージを見ればerror: dir \\"/private/etc\\" is world-writable"\n'て書いてました。反省。

おそらくこれが原因で起動に失敗する方は少ないと思いますので、
他の原因の場合の対処法について書かれている記事を載せておきます。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?