EM12c: Enterprise Manager 12c Cloud Control Agent Deployment Using sudo Configuration Fails with error no tty present and no askpass program specified

(Doc ID 1490407.1)

Last updated on AUGUST 27, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

Deploying the Agent from Enterprise Manager (EM) 12c Cloud Console fails with below error:

The installation is being done as "myuser" which does a "sudo" to "oracle" user.

<OMS instance base>/em/EMGC_OMS1/sysman/agentpush/logs/EMAgentPush<timestamp>.log:

2012-05-31_16-53-04:INFO: ACTION Execution of command /usr/bin/sudo -u oracle /bin/sh -c 'id' on host myhost.oracle.com
2012-05-31_16-53-04:INFO:User myuser does not have sudo privileges on host myhost.oracle.com
2012-05-31_16-53-04:INFO:oracle.sysman.prov.agentpush.sudoTtyMessage :you must have a tty to run sudo
2012-05-31_16-53-04:INFO:oracle.sysman.prov.agentpush.sudoNoTtyMessage :no tty present and no askpass program specified
2012-05-31_16-53-04:INFO: Jsch Validation Failed Problem :Privilege Delegation Setting check failed Recommendation: Enable the "visiblepw " flag in the sudoers file.
2012-05-31_16-53-04:INFO:Breaking since the jsch validation has failed
2012-05-31_16-53-04:INFO:InvocationTargetException Exception
2012-05-31_16-53-04:INFO:Printing Exception :java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

Caused by: oracle.sysman.core.agentpush.ui.exception.JschValidationException
at oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.doPDPSettingsCheck(JschValidationOps.java:965)

2012-05-31_16-53-04:INFO: Jsch Valdation Failed Problem :Privilege Delegation Setting check failed Recommendation: Enable the "visiblepw " flag in the sudoers file.
2012-05-31_16-53-04:INFO:Updating Action SSHValidationswith Status FAILED and error Message :The "visiblepw " is not set the sudoers file and as a result, the user will not be able to run sudo over ssh. and problem Privilege Delegation Setting check failed and recommendation Enable the "visiblepw " flag in the sudoers file.
2012-05-31_16-53-04:INFO:=================action status is not empty FAILED
2012-05-31_16-53-04:INFO:Breaking since the jsch validation has failed
2012-05-31_16-53-04:INFO:Skipping action CopyAgentImage since some previous step has failed
2012-05-31_16-53-04:INFO:The following action failedSSHValidations
2012-05-31_16-53-04:INFO:TIME TAKEN for Initialization on host myhost.oracle.com is 0: hrs 0: mins 15 sec
2012-05-31_16-53-04:INFO:PERF:HOSTNAME:myhost.oracle.com:InitializationDeployer_EXECUTION_TIME:15754

 

Sudo configuration on the target host:

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms