https://rancher.com/ logo
Title
c

clever-agency-43752

04/06/2023, 2:12 PM
Hi Everyone! I’m having issues with the startup of Kubernetes using Rancher. The concrete error is the following:
Error Starting Kubernetes
Error: Command failed: /bin/sh -xec 'cp "/var/folders/2k/cdjg6vvj0glb1zzz7n0x15d80000gn/T/rd-sudoers19106489.txt" /private/etc/sudoers.d/zzzzz-rancher-desktop-lima && rm -f "/var/folders/2k/cdjg6vvj0glb1zzz7n0x15d80000gn/T/rd-sudoers19106489.txt"'
+ cp /var/folders/2k/cdjg6vvj0glb1zzz7n0x15d80000gn/T/rd-sudoers19106489.txt /private/etc/sudoers.d/zzzzz-rancher-desktop-lima
cp: /private/etc/sudoers.d/zzzzz-rancher-desktop-lima: No such file or directory
Can anyone help me there? I tried a Kubernetes reset and a factory reset, in both cases it still requires the administrative network config. Once I approve that, it leads to this error.
c

calm-sugar-3169

04/06/2023, 5:35 PM
It looks like for some reason it fails to copy thing over to
/private/etc/sudoers.d/zzzzz-rancher-desktop-lima
. Can you confirm if the following path does exist?
/private/etc/sudoers.d/
c

clever-agency-43752

04/06/2023, 5:47 PM
Thanks! It does not exist:
ls -al /private/etc/sudo
sudo_lecture  sudoers
Any idea what I should fix? I assume just creating is not the best idea, there must be a reason why it does not exist yet. @calm-sugar-3169
c

calm-sugar-3169

04/06/2023, 5:53 PM
is you account a non-admin (non sudoer) account?
c

clever-agency-43752

04/06/2023, 5:54 PM
I’m on Mac, this is the only account here. I can execute sudo commands after I enter my password.
c

calm-sugar-3169

04/06/2023, 5:56 PM
ok, I’m not 100% sure why your account is not part of sudoers but maybe you can try this? https://zwbetz.com/add-your-account-as-a-sudoer-on-mac/
they should create you the path that does not currently exist
c

clever-agency-43752

04/06/2023, 5:57 PM
If I am using
su nielskorschinsky
, it does work. Therefore I am a admin account.
I will also investigate why
sudoers.d
does not exist.
👍 1
I created the dir myself. I will try to restart rancher
It seems to have worked, thanks for your help!
(still starting)
🤞 1
Everything good now 👍
c

calm-sugar-3169

04/06/2023, 6:09 PM
Awesome, enjoy 🙂
s

salmon-guitar-13341

04/06/2023, 10:09 PM
I've seen same thing. Fixed with sudo mkdir /private/etc/sudoers.d. I've found some mac admins talking about a change in 13.3 where it no longer has that sudoers.d dir.
c

calm-sugar-3169

04/06/2023, 10:15 PM
@salmon-guitar-13341 That’s interesting that the
/private/etc/sudoers.d
doesn’t exist on ventura, @clever-agency-43752 can you confirm if you are also using ventura too?
@rapid-eye-50641 should this be documented?
in either case, I will go ahead and create an issue, we can either fix it or document it.
c

calm-sugar-3169

04/06/2023, 10:19 PM
sorry the link won’t open 😐
s

salmon-guitar-13341

04/06/2023, 10:19 PM
bad link, but let me show contents...
🙌 1
slack-mac-nosudoersd-dir1.jpg
I believe the fix would go in
pkg/rancher-desktop/backend/lima.ts
c

calm-sugar-3169

04/06/2023, 10:24 PM
I went ahead and created https://github.com/rancher-sandbox/rancher-desktop/issues/4377 feel free to add anything that I may have missed. Thanks
🙏 1
c

clever-agency-43752

04/11/2023, 8:45 AM
Hi, sorry for my late reply. It is working now and I am on MacOs 13.3 Ventura