SUDO Error During Deployment Procedure Execution

Issue

A SUDO error occurs while performing a deployment.

Description

While performing a deployment, all root-related operations are performed over SUDO. To improve security, production environments tend to fortify SUDO. Therefore, you may encounter errors related to SUDO.

Solution

Make the following changes in your Sudoer's file:
  1. Remove entry Default requiretty, if it exists in your Sudoer's file.
  2. If the Sudoers file contains the Default env_reset parameter, add the following entries after it:
    Defaults env_keep="JRE_HOME PERL5LIB EMDROOT"