Hello!
This error occurs because Defaults requiretty is configured incorrectly in the '/etc/sudoers' file.
Solution
This error message is displayed because Defaults requiretty in the /etc/sudoers file on the current node is incorrectly configured.
Run the vi /etc/sudoers command to edit the /etc/sudoers file. Delete Defaults requiretty.
NOTE:
If the cluster is installed by user omm, change the Defaults requiretty to Defaults:omm !requiretty.