我已经在服务器(myoemhost)上安装了Oracle Enterprise Manager 12c,但是当我尝试手动添加目标时,会产生以下消息: -
Shell路径不正确或未定义。:C:/ cygwin / bin / sh.exe(SH_PATH), - c(SH_ARGS)在主机上mydbhost.mycompany.co.uk
我使用正确的密码添加了cyg_server的授权凭证,并且没有运行/作为privs(因为当我这样做时它不会让我申请)。
日志文件产生以下结果
2014-01-15_15-42-13:INFO:=================================== ===初始化START ====================================
2014-01-15_15-42-13:INFO:为hostnamemydbhost.mycompany.co.uk创建ClusterBase Ops实例
2014-01-15_15-42-13:INFO:设置安全contextSYSMAN
2014-01-15_15-42-13:信息:在BaseDeployerOps中设置区域设置成功
2014-01-15_15-42-13:INFO:[action name = SSHValidations,action Description = Remote Validations,order = 100,skip = false,executeAlways = false,status = null,
2014-01-15_15-42-13:INFO:[action name = SSHSetup,action Description = SSH Setup,order = 200,skip = false,executeAlways = false,status = null,
2014-01-15_15-42-13:INFO:跳过ssh设置,因为它的jsch插件
2014-01-15_15-42-13:INFO:根据输入跳过动作SSHSetup
2014-01-15_15-42-13:INFO:[action name = CopyAgentImage,action Description =将代理软件转移到目标主机,order = 300,skip = false,executeAlways = false,status = null,
2014-01-15_15-42-13:INFO:ACTIONS:SSHValidations
2014-01-15_15-42-13:INFO:ACTIONS:CopyAgentImage
2014-01-15_15-42-13:INFO:============为密钥创建部署Vo:初始化和设置状态为NOT_EXECUTED
2014-01-15_15-42-13:INFO:=====为actionSSHValidations创建Action Vo
2014-01-15_15-42-13:INFO:=====为actionCopyAgentImage创建动作Vo
2014-01-15_15-42-13:INFO:deploymentVo现在状态为:NOT_EXECUTED
2014-01-15_15-42-14:INFO:重试计数5睡眠间隔250
2014-01-15_15-42-14:INFO:== SUDO EXISTS false SUDO PRIV false
2014-01-15_15-42-14:INFO:====致电ACTIONdoSSHValidations
2014-01-15_15-42-14:INFO:使用密钥更新状态IN_PROGRESS以获取操作名称SSHValidations:SSHValidations
2014-01-15_15-42-14:信息:动作:NodesAliveperform:真
2014-01-15_15-42-14:INFO:=== VALIDATION ===:检查节点是否活着
2014-01-15_15-42-14:INFO:RESULT 0
2014-01-15_15-42-14:INFO:====呼吁ACTIONdoNodesAlive
2014-01-15_15-42-14:信息:动作:RemotePasswordCheckperform:真
2014-01-15_15-42-14:INFO:=== VALIDATION ===:检查目标节点上的密码有效性
2014-01-15_15-42-14:INFO:NODES = mydbhost.mycompany.co.uk重试次数5
2014-01-15_15-42-14:INFO:重试次数:1
2014-01-15_15-42-14:INFO:在节点mydbhost.mycompany.co.uk上运行cmd C:/cygwin/bin/true.exe
2014-01-15_15-42-14:INFO:ssh connect timeout 60000
2014-01-15_15-42-16:INFO:退出代码:1
2014-01-15_15-42-16:INFO:错误:
2014-01-15_15-42-16:信息:输出:
2014-01-15_15-42-16:INFO:检查目标节点上的密码有效性:PASSED
2014-01-15_15-42-16:INFO:RESULT 0
2014-01-15_15-42-16:INFO:====致电ACTIONdoRemotePasswordCheck
2014-01-15_15-42-16:信息:动作:ShPathCheckperform:真
2014-01-15_15-42-16:INFO:=== VALIDATION ===:检查目标节点上的SH_PATH
2014-01-15_15-42-16:INFO:isWrongShPath:remotePathPropertiesLoc:E:/ Oracle / Middleware / oms / oui / prov / resources平台ID:233
2014-01-15_15-42-16:INFO:NODES = mydbhost.mycompany.co.uk
2014-01-15_15-42-16:INFO:在节点mydbhost.mycompany.co.uk上运行cmd C:/cygwin/bin/sh.exe -c C:/cygwin/bin/true.exe
2014-01-15_15-42-16:INFO:操作说明在主机mydbhost.mycompany.co上执行命令C:/cygwin/bin/sh.exe -c C:/cygwin/bin/true.exe。英国
2014-01-15_15-42-16:信息:尝试:1 pty需要false而没有输入
2014-01-15_15-42-17:INFO:C:/cygwin/bin/sh.exe -c C:主机mydbhost.mycompany.co.uk上的/cygwin/bin/true.exe执行失败
2014-01-15_15-42-17:INFO:OUT null
2014-01-15_15-42-17:INFO:ERR null
2014-01-15_15-42-17:INFO:EXIT CODE1
2014-01-15_15-42-17:INFO:ACTION在主机mydbhost.mycompany.co.uk上执行命令C:/cygwin/bin/sh.exe -c C:/cygwin/bin/true.exe
2014-01-15_15-42-17:INFO:SH_PATH错误消息:主机mydbhost.mycompany.co.uk上的C:/cygwin/bin/sh.exe(SH_PATH), - c(SH_ARGS)
2014-01-15_15-42-17:INFO:Jsch验证失败问题:Shell路径验证失败建议:按以下顺序检查以下文件中的属性值:ssPaths_< plat> .properties或sPaths.properties或Paths .properties,in" E:/ Oracle / Middleware / oms / oui / prov / resources"目录。如果属性值正确,则确保为远程登录启用了登录用户帐户。有关更多详细信息,请参阅“Oracle Enterprise Manager基本安装指南”。
2014-01-15_15-42-17:INFO:自jsch验证失败以来突破
2014-01-15_15-42-17:INFO:InvocationTargetException异常
2014-01-15_15-42-17:INFO:打印异常: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) 在java.lang.reflect.Method.invoke(Method.java:597) 在oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:1862) at oracle.sysman.core.agentpush.ui.deployer.InitializationDeployer.deploy(InitializationDeployer.java:421) 在oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26) at oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:311) 引起:oracle.sysman.core.agentpush.ui.exception.JschValidationException at oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.doShPathCheck(JschValidationOps.java:466) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597) at oracle.sysman.core.agentpush.ui.deployer.InitializationDeployer.doSSHValidations(InitializationDeployer.java:137) ......还有8个 2014-01-15_15-42-17:信息:Jsch Valdation失败问题:Shell路径验证失败建议:按顺序检查以下文件中的属性值,ssPaths_< plat> .properties或sPaths.properties或Paths.properties,在" E:/ Oracle / Middleware / oms / oui / prov / resources"目录。如果属性值正确,则确保为远程登录启用了登录用户帐户。有关更多详细信息,请参阅“Oracle Enterprise Manager基本安装指南”。
2014-01-15_15-42-17:INFO:更新操作SSHValidationswith状态FAILED和错误消息:Shell路径不正确或未定义。:C:/cygwin / bin / sh.exe(SH_PATH), - c( SH_ARGS)主机mydbhost.mycompany.co.uk和问题Shell路径验证失败,建议按顺序检查以下文件中的属性值,ssPaths_< plat> .properties或sPaths.properties或Paths.properties,&#34 ; E:/甲骨文/中间件/ OMS / OUI /省/资源"目录。如果属性值正确,则确保为远程登录启用了登录用户帐户。有关更多详细信息,请参阅“Oracle Enterprise Manager基本安装指南”。
2014-01-15_15-42-17:INFO:=================动作状态不为空FAILED
2014-01-15_15-42-17:INFO:自jsch验证失败以来突破
2014-01-15_15-42-17:INFO:跳过操作CopyAgentImage,因为上一步失败了
2014-01-15_15-42-17:INFO:以下操作失败:SHValidations
2014-01-15_15-42-17:INFO:在主机mydbhost.mycompany.co.uk上进行初始化的时间为0:小时0:分钟4秒
2014-01-15_15-42-17:信息:PERF:主机名:mydbhost.mycompany.co.uk:InitializationDeployer_EXECUTION_TIME:4018
2014-01-15_15-42-17:信息:HOST:mydbhost.mycompany.co.uk
2014-01-15_15-42-17:INFO:销毁记录器
2014-01-15_15-42-17:INFO:=================================== ===初始化END ====================================
2014-01-15_15-42-17:INFO:清除BaseDeployerOps中的EMSecurityContext EMExecutionContext
现在我承认我不是ssh或cygwin的专家,甚至不是Oracle12c,而是读取的部分
2014-01-15_15-42-14:INFO:=== VALIDATION ===:检查节点是否活着
2014-01-15_15-42-14:INFO:RESULT 0
2014-01-15_15-42-14:INFO:====呼吁ACTIONdoNodesAlive
2014-01-15_15-42-14:信息:动作:RemotePasswordCheckperform:真
2014-01-15_15-42-14:INFO:=== VALIDATION ===:检查目标节点上的密码有效性
2014-01-15_15-42-14:INFO:NODES = mydbhost.mycompany.co.uk重试次数5
2014-01-15_15-42-14:INFO:重试次数:1
2014-01-15_15-42-14:INFO:在节点mydbhost.mycompany.co.uk上运行cmd C:/cygwin/bin/true.exe
2014-01-15_15-42-14:INFO:ssh connect timeout 60000
2014-01-15_15-42-16:INFO:退出代码:1
2014-01-15_15-42-16:INFO:错误:
2014-01-15_15-42-16:信息:输出:
2014-01-15_15-42-16:INFO:检查目标节点上的密码有效性:PASSED
2014-01-15_15-42-16:INFO:RESULT 0
建议它可以使用我提供的用户名和密码(cyg_server)联系远程主机(mydbhost.mycompany.co.uk),这表明ssh正在运行。
然而下一部分
2014-01-15_15-42-16:INFO:====致电ACTIONdoRemotePasswordCheck
2014-01-15_15-42-16:信息:动作:ShPathCheckperform:真
2014-01-15_15-42-16:INFO:=== VALIDATION ===:检查目标节点上的SH_PATH
2014-01-15_15-42-16:INFO:isWrongShPath:remotePathPropertiesLoc:E:/ Oracle / Middleware / oms / oui / prov / resources平台ID:233
2014-01-15_15-42-16:INFO:NODES = mydbhost.mycompany.co.uk
2014-01-15_15-42-16:INFO:在节点mydbhost.mycompany.co.uk上运行cmd C:/cygwin/bin/sh.exe -c C:/cygwin/bin/true.exe
2014-01-15_15-42-16:INFO:操作说明在主机mydbhost.mycompany.co上执行命令C:/cygwin/bin/sh.exe -c C:/cygwin/bin/true.exe。英国
2014-01-15_15-42-16:信息:尝试:1 pty需要false而没有输入
2014-01-15_15-42-17:INFO:C:/cygwin/bin/sh.exe -c C:主机mydbhost.mycompany.co.uk上的/cygwin/bin/true.exe执行失败
2014-01-15_15-42-17:INFO:OUT null
2014-01-15_15-42-17:INFO:ERR null
2014-01-15_15-42-17:INFO:EXIT CODE1
2014-01-15_15-42-17:INFO:ACTION在主机mydbhost.mycompany.co.uk上执行命令C:/cygwin/bin/sh.exe -c C:/cygwin/bin/true.exe
2014-01-15_15-42-17:INFO:SH_PATH错误消息:主机mydbhost.mycompany.co.uk上的C:/cygwin/bin/sh.exe(SH_PATH), - c(SH_ARGS)
2014-01-15_15-42-17:INFO:Jsch验证失败问题:Shell路径验证失败建议:按以下顺序检查以下文件中的属性值:ssPaths_< plat> .properties或sPaths.properties或Paths .properties,in" E:/ Oracle / Middleware / oms / oui / prov / resources"目录。如果属性值正确,则确保为远程登录启用了登录用户帐户。有关更多详细信息,请参阅“Oracle Enterprise Manager基本安装指南”。
表明它不是,因为我知道路径(c:\ cygwin \ bin \ sh.exe)是正确的,并且cyg_server可以访问该文件(据我所知)。
任何人都可以指出我应该进入的方向,因为我真的不知道这有什么问题:)
感谢。
答案 0 :(得分:0)
根据原始海报:
原来这是由密码错误引起的 - 我安装CYGWIN服务器时所遵循的说明错过了一个关键步骤,涉及在/ etc / passwd中重新创建cyg_server用户的密码,结果导致了以上错误(根本没有提到密码!)