https://rancher.com/ logo
Title
w

worried-king-20319

05/31/2022, 5:13 PM
Hey all, I am seeing some issues setting up Rancher Desktop on an M1 Macbook Pro with the M1 Pro chip. Below are the errors that I am recieving: Error: spawn /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl EACCES Some recent logfile lines: ‘shell’, ‘--workdir=.’, ‘0’, ‘sudo’, ‘mv’, ‘./trivy’, ‘/usr/local/bin/trivy’ ] } Iam not sure how best to troubleshoot this, any assistance would be much appreciated.
w

wide-mechanic-33041

05/31/2022, 7:15 PM
how did you install RD? almost sounds like an install as a different user than the one you are running as so the perms are off
w

worried-king-20319

05/31/2022, 7:17 PM
thats exactly what happened! I restrict brew to my admin user thats used to set up these machines. So Rancher Desktop is running on a standard users account
w

wide-mechanic-33041

05/31/2022, 7:19 PM
ahh yeah that could get a bit messy since the ownership of the folder is wrong.
w

worried-king-20319

05/31/2022, 7:19 PM
what folders would the user need to own?
w

wide-mechanic-33041

05/31/2022, 7:20 PM
its going to need access to the App so make sure that looks clean
w

worried-king-20319

05/31/2022, 7:21 PM
I am checking now
w

wide-mechanic-33041

05/31/2022, 7:21 PM
brew also really doesn’t like running as a different user
thats why it will toss an error if you try and install as root
and are you rolling 1.3 or 1.2?
w

worried-king-20319

05/31/2022, 7:22 PM
@polite-mouse-38756 FYSA
we are running 1.3 right now
👍 1
w

wide-mechanic-33041

05/31/2022, 7:23 PM
i thought 1.3 was getting away from using /usr/local/bin so you don’t have to chown it, but could be misremembering
w

worried-king-20319

05/31/2022, 7:23 PM
regarding this command
ls -la /Applications/Rancher\ <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin|Desktop.app/Contents/Resources/resources/darwin/lima/bin>
everything seems to be owned by my logged in user
w

wide-mechanic-33041

05/31/2022, 7:24 PM
cool how about /usr/local/bin?
w

worried-king-20319

05/31/2022, 7:25 PM
/usr/local/bin
is all owned by root
w

wide-mechanic-33041

05/31/2022, 7:25 PM
you are on an M1 so the homebrew bits should be in /opt so chowning /usr/local/bin shouldn’t be too disruptive
w

worried-king-20319

05/31/2022, 7:26 PM
so would each standard user need to own
/usr/local/bin
??
w

wide-mechanic-33041

05/31/2022, 7:27 PM
it needs to be writable based on that err. there can only be one owner
trying to track down where the RD folks were shifting away from usr/local/bin to a dedicated folder
w

worried-king-20319

05/31/2022, 7:29 PM
understood on that, I don’t need my admin to own it. I will say, giving my standard user ownership over
/usr/local/bin
doesn’t seem to have changed anything 😢
so you still have a write permission issue for RD after giving the user ownership over /usr/local/bin?
w

worried-king-20319

05/31/2022, 7:37 PM
I noticed that when searching through your issues. Yeah, attaching a screenshot here
w

wide-mechanic-33041

05/31/2022, 7:38 PM
so did you own the contents of bin or the directory itself?
w

worried-king-20319

05/31/2022, 7:40 PM
I own all of the children of
/usr/local/bin
and of the directory
/usr/local/bin
w

wide-mechanic-33041

05/31/2022, 7:42 PM
so rancher is running as sheldon.mcclung and sheldon.mcclung can’t write to that path even though they own it. thats a head scratcher to me 🤔. may need the real Rancher team to step in
i think you are in a similar situation as https://github.com/rancher-sandbox/rancher-desktop/issues/1560
w

worried-king-20319

05/31/2022, 9:14 PM
Sorry I had to step away from this for a bit with customer demands. I will look into that issue. In the meantime, please let me know how I can assist in troubleshooting. I haven’t been able to find any good path forward towards getting this to work consistently.
so regardless, given that I have a fully automated workstation setup, Rancher Desktop is going to be installed by either root or root su’ing into an admin user. Either way I think I might run into the problem stated above