What do the logs say?just updated due to your last post. Now the script wont start.
Try with sudo.doPerms.sh returns command not found.
That's to be expected if the script is not running. The controller is still doing it's jobRefreshing device list returns. Error while receiving device configuration: