最近在部署EM 12c的Agent是报了一个莫名其妙的错误:
ERROR: Agent Configuration Failed SEVERE: Agent port passed by user is busy and cannot proceed with the configuration. Pass a free port and retry the configuration. (由用户传递的代理端口正忙, 无法继续配置)
使用命令“netstat -na|grep 3872”检查没问题,3872端口确实是空闲的。最后在Metalink上找到了原因。原来真正的原因是/etc/hosts配置有问题,和端口无关。Oracle已经把它列为Bug 13652664。
以下是Metalink上的相关文章[ID 1489279.1]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
EM 12c: Agent Deployment Fails With Error: "Agent port passed by user is busy " [ID 1489279.1]
In this Document
Applies to:
Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.
Symptoms
EM 12c Agent installation fails with following error in /sysman/prov/agentpush//logs//install.log:
Performing the agent configuration...
Executing command: /oracle/BW2/OEM_12c/core/12.1.0.1.0/oui/bin/runConfig.sh ORACLE_HOME=/oracle/BW2/OEM_12c/core/12.1.0.1.0 RESPONSE_FILE=/oracle/BW2/OEM_12c/core/12.1.0.1.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Configuration Log Location:/oracle/BW2/OEM_12c/core/12.1.0.1.0/cfgtoollogs/cf**/CfmLogger.log
ERROR: Agent Configuration Failed SEVERE: Agent port passed by user is busy and cannot proceed with the configuration. Pass a free port and retry the configuration.
Cause
Command "netstat -na|grep 3872" shows the port is not being used.
The above issue is due to IP address for the server in file /etc/hosts is incorrect. But the error message is misleading. An enhancement request has been logged to validate the /etc/hosts file in the prereq phase itself. This code is added for PS1.
Enhancement Request : Bug 13652664 - AGENT DEPLOY FAILS WITH AGENT PORT PASSED BY USER IS BUSY
Solution
1. Need to verify the if etc/hosts file is configured properly
2. Document 1473185.1 has few more use cases where this issue occur
3. Misleading error messages will no longer appear in PS1 as the validation of the /etc/hosts file is done in prereq phase itself
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13885898/viewspace-1651545/
,如需转载,请注明出处,否则将追究法律责任。