My Oracle Support Banner

12c Agent のセキュア化が "java.net.ConnectException: Connection refused: connect" で失敗する (Doc ID 2430692.1)

Last updated on AUGUST 02, 2018

適用範囲:

Enterprise Manager Base Platform - バージョン 12.1.0.1.0 以降
この文書の内容はすべてのプラットフォームに適用されます。
本文書利用上のご注意
  本文書は英語の文書 <Document 2060464.1> (最終メジャー更新日: 2015年11月10日) の日本語翻訳版です。
  英語の文書のメジャー更新に応じて本文書を随時更新いたします。

現象

Agent のサイレントインストールの最後の Agent のセキュア化ステップが、<AGENT_HOME>/cfgtoollogs/cfgfw/CfmLogger_<timestamp>.log に以下のエラーを出力し失敗します: 

INFO: oracle.sysman.top.agent:The command: cmd /c set NEED_EXIT_CODE=1&&E:\Agent12c_base\bin\emctl.bat secure agent completed with status=1
SEVERE: oracle.sysman.top.agent:emctl secure agent command has failed with status=1 on attempt 1
INFO: oracle.sysman.top.agent:Follow the below steps to manually secure and add the host and agent targets:
1. Execute the command: cmd /c set NEED_EXIT_CODE=1&&E:\Agent12c_base\bin\emctl.bat secure agent
2. Start the agent by executing the command: E:\Agent12c_base\bin\emctl start agent
3. Add the targets by executing the command: E:\Agent12c_base\bin\emctl config agent addinternaltargets
INFO: oracle.sysman.top.agent:Executing the command: cmd /c set NEED_EXIT_CODE=1&&E:\Agent12c_base\bin\emctl.bat secure agent
INFO: oracle.sysman.top.agent:Oracle Enterprise Manager Cloud Control 12c Release 5
INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved.
INFO: oracle.sysman.top.agent:Agent is already stopped... Done.
INFO: oracle.sysman.top.agent:Securing agent... Started.
INFO: oracle.sysman.top.agent:
Securing agent... Failed.
INFO: oracle.sysman.top.agent:The command: cmd /c set NEED_EXIT_CODE=1&&E:\Agent12c_base\bin\emctl.bat secure agent completed with status=1
SEVERE: oracle.sysman.top.agent:emctl secure agent command has failed with status=1 on attempt 2
INFO: oracle.sysman.top.agent:Follow the below steps to manually secure and add the host and agent targets:
1. Execute the command: cmd /c set NEED_EXIT_CODE=1&&E:\Agent12c_base\bin\emctl.bat secure agent
2. Start the agent by executing the command: E:\Agent12c_base\bin\emctl start agent
3. Add the targets by executing the command: E:\Agent12c_base\bin\emctl config agent addinternaltargets
SEVERE: oracle.sysman.top.agent:Agent configuration has failed
INFO: oracle.sysman.top.agent:AgentConfiguration:agent configuration finished with status = false
INFO: oracle.sysman.top.agent:AgentConfiguration:agent configuration finished with status = false
INFO: oracle.sysman.top.agent:The plug-in Agent Configuration Assistant has failed its perform method
INFO: Cfm.save() was called
INFO: Cfm.save(): 2 aggregate instances saved
INFO: done waiting for Action from 10:01:28.945

 

手動の Agent のセキュア化も失敗します: 

<AGENT_INST>/sysman/log/secure.log は以下のエラーを出力します: 

2015-09-18 10:16:39,465 [main] INFO agent.SecureAgentCmd downloadFile.1046 - Download destination: E:/Agent12c_base/sysman/config/b64LocalCertificate.txt
2015-09-18 10:16:39,465 [main] INFO agent.SecureAgentCmd downloadFile.1074 - download pathAndQuery /empbs/wallets/agent.agenthost.domain/b64LocalCertificate.txt
2015-09-18 10:16:39,496 [main] INFO agent.SecureAgentCmd downloadFile.1077 - Response Status Code: 200
2015-09-18 10:16:39,496 [main] INFO agent.SecureAgentCmd secureAgentWithOMS.476 - Downloading from http://omshost.domain:4889/empbs/wallets/agent.agenthost.domain/b64InternetCertificate.txt to E:/Agent12c_base/sysman/config/b64InternetCertificate.txt
2015-09-18 10:16:39,496 [main] INFO agent.SecureAgentCmd downloadFile.1045 - Download URL source: http://omshost.domain:4889/empbs/wallets/agent.agenthost.domain/b64InternetCertificate.txt
2015-09-18 10:16:39,496 [main] INFO agent.SecureAgentCmd downloadFile.1046 - Download destination: E:/Agent12c_base/sysman/config/b64InternetCertificate.txt
2015-09-18 10:16:39,496 [main] INFO agent.SecureAgentCmd downloadFile.1074 - download pathAndQuery /empbs/wallets/agent.agenthost.domain/b64InternetCertificate.txt
2015-09-18 10:16:39,558 [main] INFO agent.SecureAgentCmd downloadFile.1077 - Response Status Code: 200
2015-09-18 10:16:39,558 [main] INFO agent.SecureAgentCmd secureAgent.329 - Finding CN in OMS cert to form UploadURL
2015-09-18 10:17:00,587 [main] ERROR agent.SecureAgentCmd main.260 - Failed to secure the Agent:
2015-09-18 11:11:54,786 [main] ERROR agent.SecureAgentCmd main.260 - Failed to secure the Agent:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:218)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:212)
at HTTPClient.HTTPConnection$EstablishConnection$2.run(HTTPConnection.java:4427)
at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:771)
at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5538)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4413) 

原因

To view full details, 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 a vibrant support community of peers and Oracle experts.