Peer not authenticated – OEM error
Posted by Kamran Agayev A. on August 14th, 2013
Some days ago I was requested to deploy 9i database to 10g Grid Control. According to compatibility matrix (check metalink note – Oracle Enterprise Manager Grid Control Certification Checker (Doc ID 412431.1)) you can install 10g agent on 9i database and deploy it
So I downloaded 10.2.0.2 agent from this link and installed it on 9i machine
Before getting the installation screen, I got the following error :
Unable to convert from “UTF-8” to “ISO8859-1” for NLS!
After struggling a little bit, I set the DISPLAY environment variable and was able to get the installation screen. Installation went smooth and agent deployed successfully. However, when trying to reach to that database over OEM Grid Control, I got “peer not authenticated” error:
I checked OEM and agent logs and didn’t get much information about this error. The output from OEM log was as follows:
2013-08-13 11:19:13,950 [EMUI_11_19_13_/console/database/config] ERROR perf.sitemap logStackTrace.2401 – oracle.sysman.emSDK.emd.comm.CommException: peer not authenticated
at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1680)
at oracle.sysman.emSDK.emd.comm.EMDClient.getTarget(EMDClient.java:1214)
at oracle.sysman.db.conf.DBConfigObject.getTargetInstance(DBConfigObject.java:463)
at oracle.sysman.db.conf.DBConfigObject.initPropertiesFromRepository(DBConfigObject.java:634)
at oracle.sysman.db.conf.DBConfigObject.initialize(DBConfigObject.java:434)
at oracle.sysman.db.conf.DBConfigUI.initialize(DBConfigUI.java:271)
Then I tried to compare targets.xml file on both 9i and on 10g machine where agent was working properly and found that the main two lines were missing from 9i targets.xml file:
<Property NAME=”UserName” VALUE=”emuser”/>
<Property NAME=”password” VALUE=”bae2342769a2fac163dfdf256813e716″ ENCRYPTED=”TRUE”/>
I added both lines to the 9i targets.xml file, created “emuser” and changed VALUE parameter of the password field and set ENCRYPTED to “FALSE”
Then I performed the following steps in order to delete all files that should be uploaded and start the agent again in non-secure mode :
$AGENT_HOME/bin/emctl stop agent
rm -rf $AGENT_HOME/sysman/emd/recv
rm -rf $AGENT_HOME/sysman/emd/collection
rm -rf $AGENT_HOME/sysman/emd/state
rm -rf $AGENT_HOME/sysman/emd/upload
rm -rf $AGENT_HOME/sysman/emd/lastupld.xml
$AGENT_HOME/bin/emctl clearstaete agent
$AGENT_HOME/bin/emctl start agent
After some minutes I was able to manage the database from OEM and the error disappeared.