Closed vasilejianu closed 3 years ago
Thanks for opening this up !
I'm preparing a patch to properly catch PermissionError
for sub-process calls that might raise it.
For your case, I'd rather prefer we debug it completely beforehand though.
Could you run strace brew
under your regular user so we definitely understand what is going on here ?
Thanks for your time :bow:
vas@apex-main> strace brew ~ strace: Can't stat 'brew': No such file or directory
as i said i never had brew installed only mention was in the oh my bash files had had some reference to a plugin but that plugin wasn't installed either
So I can't see why you keep getting PermissionError
then.
I've noticed you are connected through SSH, have you tried under another session ? I really fear there is a remaining symbol exported in your environment by the (now uninstalled) BASH plugin.
that fixed it , i ran a connection to the user instead of root and using su user and it worked Thanks :)
Perfect, I think we properly narrowed this down, I'll publish the patch I was talking about and make it point to this issue. No problem, thanks to you :bow:
From https://aur.archlinux.org/packages/archey4/?O=10&PP=10#comment-825146.
getting this when trying to upgrade or clean install the latest build, any help ? thanks
Hi @vasilejianu, thanks for your feedback. Have you got brew installed on your system ? Can you run brew --cellar manually ? I don't get why it would raise
PermissionError
exception, but we can catch it upstream in the future if needed... Bye, waiting for your input.i don't have brew its weird is doing that its a minimal arch install Linux apex-main 5.13.13-arch1-1 #1 all i have is nginx,mariadb,php,named
@vasilejianu : so I've tried with
yay
myself against an Arch container, and thecheck()
part is really doing well... I think something is to blamed on your system (noexec
(?),yay
configuration(?), somehowbrew
is available underPATH
on yourvas
regular user(?), ...). If you find out, please let me know. If something is definitely wrong upstream, let me know too. Good luckthis is interesting i have run the test manually under user priv it fails , under root privs it passes
@vasilejianu : could you try to run
which brew
under your regular user ? You can also use a (broad)find
if nothing comes out; I'm pretty sure you got a brew (apparently not executable) somewhere. Almost there !@vasilejianu : good one. Although I'm confused about catching
PermissionError
in this case, as all the other sub-process calls across the code base do not, whereas the same problem could occur. What do you think about that ? Do you think this exception should be caught elsewhere ?idk although that was the only ref to brew in the system i have uninstalled oh my bash and still getting the error i have tried under a diff user too
@vasilejianu : have you tried under another BASH session without
brew
symbol exported by your previous plugin ? [...]yeah i have installed zsh, was previously using bash i have removed the user and added it again with a new zsh shell