Enterprise Manager Agent Install Fails With Warning That The Installation Base Directory Is Not Empty (Doc ID 2295493.1)

Last updated on AUGUST 14, 2017

Applies to:

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

Symptoms

Attempting to install an Enterprise Manager agent fails with a warning that the defined installation base directory is not empty.

The agent install log will show an error stack similar to the following:

2017-08-03_19-53-21:INFO:ls command /bin/ls -A /u01/app/oracle executed successfully
2017-08-03_19-53-21:INFO:/u01/app/oracle is not empty
2017-08-03_19-53-21: INFO: Jsch Validation Failed Problem: Verification of the base installation directory Recommendation: Ensure that the installation base directory is empty. You can see an ADATMP_ <timestamp> subdirectory in the installation base directory if a deployment session has failed in the past. In this case, delete the subdirectory and start a new deployment session or retry the failed session on the Add Host Results page.
2017-08-03_19-53-21:INFO:Breaking since the jsch validation has failed
2017-08-03_19-53-21:INFO:InvocationTargetException Exception
2017-08-03_19-53-21:INFO:Printing Exception :java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:2111)
at oracle.sysman.core.agentpush.ui.deployer.InitializationDeployer.deploy(InitializationDeployer.java:384)
at oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26)
at oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:311)
Caused by: oracle.sysman.core.agentpush.ui.exception.JschValidationException
at oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.doInstallBaseDirectoryWritableAndEmptyCheck(JschValidationOps.java:1424)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.sysman.core.agentpush.ui.deployer.InitializationDeployer.doSSHValidations(InitializationDeployer.java:135)
... 8 more
2017-08-03_19-53-21: INFO: Jsch Valdation Failed Problem: Verification Failures of the Base Recommendation Installation Directory: Ensure that the installation base directory is empty. You can see an ADATMP_ <timestamp> subdirectory in the installation base directory if a deployment session has failed in the past. In this case, delete the subdirectory and start a new deployment session or retry the failed session on the Add Host Results page.
2017-08-03_19-53-21: INFO: Updating Action SSHValidationswith Status FAILED and error Message: The installation directory "/ u01 / app / oracle" is not empty. And problem Verify that the installation directory is empty. You can see an ADATMP_ <timestamp> subdirectory in the installation base directory if a deployment session has failed in the past. In this case, delete the subdirectory and start a new deployment session or retry the failed session on the Add Host Results page.
2017-08-03_19-53-21: INFO: ================= action status is not empty FAILED

 

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