My Oracle Support Banner

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 FEBRUARY 16, 2019

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 "<LOGIN_USER>" which does a "sudo" to "<LOCKED_USER>" user.

<EM_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 <AGENT_HOSTNAME>
2012-05-31_16-53-04:INFO:User LOGIN_USER does not have sudo privileges on host <AGENT_HOSTNAME>
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 <AGENT_HOSTNAME> is 0: hrs 0: mins 15 sec
2012-05-31_16-53-04:INFO:PERF:HOSTNAME:<AGENT_HOSTNAME>:InitializationDeployer_EXECUTION_TIME:15754

 

Sudo configuration on the target host:

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.