Running raspi commands, within a rule fails

Try searching the forum, there has been a lot written about it already:

Sorry can’t help you directly as I am not using the exec binding or try to run sudo commands
And

Yes, most likely, OH2 is openhab as user and has no sudo rights as far as I remember; also you may always need the full path to your commands;