https://rancher.com/ logo
Title
e

echoing-rainbow-51831

02/02/2023, 4:54 AM
I'm trying to run Rancher Desktop 1.7.0 on Mac 12.6.2(Monterey) and when I open UI, I see error below. I tried to resolve by granting permissions on the dir but issue is not resolved. Is there a solution?
'time="2023-02-01T18:35:37+05:30" level=fatal msg="failed to run [sudo --user root --group wheel --non-interactive /bin/mkdir -m 775 -p /private/var/run]: stdout=\\"\\", stderr=\\"sudo: a password is required\\\\n\\": exit status 1"\n',
  code: 1,
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    'start',
    '--tty=false',
    '/Users/xxx.xxx/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
  ]
}
Thread in #general
f

fast-garage-66093

02/02/2023, 5:29 PM
I suspect you have some local configuration that breaks the way Rancher Desktop configures certain commands to be executable by
sudo
without a password. This is needed to give Rancher Desktop and externally routable IP address, and to create a symlink to
/var/run/docker.sock
if you are using the moby engine. You can use
docker context use rancher-desktop
instead of using the socket in the system default location. So if you don't need an external address for your cluster, you can simply disable "admin access" in the settings, and the error should be avoided.
e

echoing-rainbow-51831

02/06/2023, 10:10 AM
@fast-garage-66093 I don't have any local configuration and I selected containerd (default) engine. I tried disabling "admin access" but that didn't help to resolve the error
f

fast-garage-66093

02/06/2023, 4:56 PM
This code should not be executed at all when you have disabled admin access (and maybe restarted Rancher Desktop). Can you run
rdctl list-settings
while Rancher Desktop is up (if in non-working mode) and verify:
$ ~/.rd/bin/rdctl list-settings | grep -i sudo
    "suppressSudo": true,