0 Replies Latest reply: Feb 20, 2013 5:44 AM by 690951 RSS

    EM12c installation. Secure agent.... Failed

    690951
      11.2.0.3
      Solaris x64


      This monday i have faced next issue during EM12c installation:

      FROM INSTALLATION MAIN SCREEN LOG
      INFO: oracle.sysman.top.agent:Securing agent... Started.
      INFO: oracle.sysman.top.agent:
      Enter Agent Registration Password :
      Enter Agent Registration Password :
      Securing agent... Failed.
      Since this is test environment, i set following password - sys/sys (while DBCA), and for EM users i set - "q1w2e3r4"
      This passwords meet all recommendations from runInstaller.


      Installer asks recommends me to do next steps:
      INFO: oracle.sysman.top.agent:Follow the below steps to manually secure and add the host and agent targets:
      1. Execute the command: /cloud/esi/middle/agent/agent_inst/bin/emctl secure agent
      2. Start the agent by executing the command: /cloud/esi/middle/agent/agent_inst/bin/emctl start agent
      3. Add the targets by executing the command: /cloud/esi/middle/agent/agent_inst/bin/emctl config agent addinternaltargets
      SEVERE: oracle.sysman.top.agent:Agent configuration has failed
      But this returns same result:
      oracle@standby:/cloud/esi/middle/agent/agent_inst/sysman/log$ /cloud/esi/middle/agent/agent_inst/bin/emctl secure agent
      Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
      Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
      Agent is already stopped... Done.
      Securing agent... Started.
      Securing agent... Failed.
      Contents of +/cloud/esi/middle/agent/agent_inst/sysman/log/secure.log+

      -----
      +[20-02-2013 13:17:59] USERINFO ::Agent is already stopped... Done.+
      +[20-02-2013 13:17:59] USERINFO ::Securing agent... Started.+
      +2013-02-20 13:17:59,978 [main] INFO agent.SecureAgentCmd secureAgent.235 - Requesting an HTTPS Upload URL from the OMS+
      +2013-02-20 13:17:59,981 [main] INFO agent.SecureAgentCmd openPage.838 - Opening: https://standby:4899/empbs/genwallet+
      +2013-02-20 13:18:00,117 [main] ERROR agent.SecureAgentCmd main.212 - Failed to secure the Agent:+
      java.net.ConnectException: Connection refused
      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:4268)
      at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:708)
      at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5379)
      at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4254)
      +[20-02-2013 13:18:00] USERINFO ::Securing agent... Failed.+
      -----


      Full log of this step of installation:
      -----
      INFO: oracle.sysman.top.agent:About to execute plug-in Agent Configuration Assistant
      INFO: oracle.sysman.top.agent:The plug-in Agent Configuration Assistant is running
      INFO: oracle.sysman.top.agent:Internal PlugIn Class: oracle.sysman.agent.config.AgentConfiguration
      INFO: oracle.sysman.top.agent:Classpath = /cloud/esi/middle/agent/core/12.1.0.1.0/oui/jlib/srvm.jar:/cloud/esi/middle/agent/core/12.1.0.1.0/jlib/agentConfig.jar:/cloud/esi/middle/agent/core/12.1.0.1.0/jlib/emConfigInstall.jar:/cloud/esi/middle/agent/core/12.1.0.1.0/sysman/jlib/emagentSDK.jar:/cloud/esi/middle/agent/core/12.1.0.1.0/modules/oracle.http_client_11.1.1.jar:/cloud/esi/middle/agent/core/12.1.0.1.0/sysman/jlib/log4j-core.jar
      INFO: oracle.sysman.top.agent:AgentConfiguration:agent configuration has been started
      INFO: oracle.sysman.top.agent:Parametes passed to agent configuration are:
      +1.ORACLE_HOME=/cloud/esi/middle/agent/core/12.1.0.1.0+
      +2.AGENT_PORT=+ *<--- SHOULD IT BE EMPTY??*
      +3.ORACLE_HOSTNAME=standby+
      +4.b_doDiscovery=true+
      +5.AGENT_BASE_DIR=/cloud/esi/middle/agent+
      +6.AGENT_INSTANCE_HOME=+
      +7.s_hostname=standby+
      +8.OMS_HOST=standby+
      +9.b_startAgent=true+
      +10.b_secureAgent=true+
      +11.b_chainedInstall=true+
      +12.b_forceConfigure=false+
      +13.EM_UPLOAD_PORT=4899+
      +14.b_forceAgentDefaultPort=false+
      +15.s_staticPorts=+
      INFO: oracle.sysman.top.agent:Validating OMS_HOST and EM_UPLOAD_PORT
      INFO: oracle.sysman.top.agent:EM Protocol Switch determined: https
      INFO: oracle.sysman.top.agent:Performing free port detection..
      INFO: oracle.sysman.top.agent: The agent port is 1831
      INFO: oracle.sysman.top.agent:Paths after canonical format conversions are :
      +1. state_dir=/cloud/esi/middle/agent/agent_inst+
      +2. agentBaseDir=/cloud/esi/middle/agent+
      +3. oraHome=/cloud/esi/middle/agent/core/12.1.0.1.0+
      INFO: oracle.sysman.top.agent:Parent directory of agent instance home:/cloud/esi/middle/agent
      INFO: oracle.sysman.top.agent:AgentConfiguration:perform:AgentPortHandler for /cloud/esi/middle/agent/core/12.1.0.1.0 and hosts=standby returned Port to Use=1831
      INFO: oracle.sysman.top.agent:Instantiating emctl.template file #DEFAULT_EMSTATE# with /cloud/esi/middle/agent/agent_inst
      INFO: oracle.sysman.top.agent:Writing the following contents into /cloud/esi/middle/agent/core/12.1.0.1.0/install/oragchomelist
      INFO: oracle.sysman.top.agent:/cloud/esi/middle/agent/core/12.1.0.1.0:/cloud/esi/middle/agent/agent_inst
      INFO: oracle.sysman.top.agent:Both /etc/oragchomelist and /var/opt/oracle/oragchomelist does not exist.
      INFO: oracle.sysman.top.agent:Executing emctl deploy agent command...
      INFO: oracle.sysman.top.agent:AgentConfiguration: Executing emctl deploy agent command...
      INFO: oracle.sysman.top.agent:Executing the command: /cloud/esi/middle/agent/core/12.1.0.1.0/bin/emctl deploy agent -L -o standby:4899 -N /cloud/esi/middle/agent/agent_inst standby:1831 standby
      INFO: oracle.sysman.top.agent:Creating shared install...
      INFO: oracle.sysman.top.agent:Source location: /cloud/esi/middle/agent/core/12.1.0.1.0
      INFO: oracle.sysman.top.agent:Destination (shared install) : /cloud/esi/middle/agent/agent_inst
      INFO: oracle.sysman.top.agent:Secure Mode: No
      INFO: oracle.sysman.top.agent:DeployMode : agent
      INFO: oracle.sysman.top.agent:
      INFO: oracle.sysman.top.agent:Creating directories...
      INFO: oracle.sysman.top.agent:Creating private.properties...
      INFO: oracle.sysman.top.agent:Creating blackouts.xml...
      INFO: oracle.sysman.top.agent:Creating targets.xml...
      INFO: oracle.sysman.top.agent:Creating emctl control program...
      INFO: oracle.sysman.top.agent:Creating emtgtctl control program...
      INFO: oracle.sysman.top.agent:Agent will not be secured. *<--- IT CONFUSED ME A BIT*
      INFO: oracle.sysman.top.agent:Secure REPOSITORY_URL found. New agent should be configured for secure mode
      INFO: oracle.sysman.top.agent:Secure emdWalletSrcUrl found. New agent should be configured for secure mode
      INFO: oracle.sysman.top.agent:Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
      INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
      INFO: oracle.sysman.top.agent:Property 'agentTZRegion' is  missing from /cloud/esi/middle/agent/agent_inst/sysman/config/emd.properties. Updating it...
      INFO: oracle.sysman.top.agent:Default timezone for the system is:GMT04:00 which is not supported. Installing a default timesone of GMT+
      INFO: oracle.sysman.top.agent:An agentTZregion of 'GMT' is installed in /cloud/esi/middle/agent/agent_inst/sysman/config/emd.properties.
      INFO: oracle.sysman.top.agent:The command: /cloud/esi/middle/agent/core/12.1.0.1.0/bin/emctl deploy agent -L -o standby:4899 -N /cloud/esi/middle/agent/agent_inst standby:1831 standby completed with status=0
      INFO: oracle.sysman.top.agent:Executing the command: /cloud/esi/middle/agent/agent_inst/bin/emctl secure agent
      INFO: oracle.sysman.top.agent:Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
      INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2011 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:Enter Agent Registration Password :
      Enter Agent Registration Password :
      Securing agent...   Failed.
      INFO: oracle.sysman.top.agent:The command: /cloud/esi/middle/agent/agent_inst/bin/emctl secure agent  completed with status=1
      SEVERE: oracle.sysman.top.agent:emctl secure agent command has failed with status=1
      INFO: oracle.sysman.top.agent:Follow the below steps to manually secure and add the host and agent targets:
      +1. Execute the command: /cloud/esi/middle/agent/agent_inst/bin/emctl secure agent+
      +2. Start the agent by executing the command: /cloud/esi/middle/agent/agent_inst/bin/emctl start agent+
      +3. Add the targets by executing the command: /cloud/esi/middle/agent/agent_inst/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
      -----


      When it checked first pre-reqs, it told that my hostname not passed it.

      Entries of /etc/hosts looks suitable for it.

      -----
      root@standby:~# cat /etc/hosts
      +#+
      +# Copyright 2009 Sun Microsystems, Inc. All rights reserved.+
      +# Use is subject to license terms.+
      +#+
      +# Internet host table+
      +#+
      +::1 standby localhost+
      +127.0.0.1 standby standby.rnd.ivc.zkh+
      -----



      corresponding logfiles


      oracle@standby:/cloud/esi/middle/agent/agent_inst/sysman/log$ vi emdctlj.log
      -----
      +2013-02-20 13:17:59,076 [main] INFO - EmdCtl Timezone = GMT+04:00+
      +2013-02-20 13:17:59,203 [main] INFO - Command: status agent+
      +2013-02-20 13:17:59,305 [main] INFO - unable to connect to the agent at http://standby:1831/emd/lifecycle/main/ [Connection refused]+
      +oracle.sysman.emSDK.agent.comm.exception.ConnectException: unable to connect to the agent at http://standby:1831/emd/lifecycle/main/ [Connection refused]+
      at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.newConnectException(TMClientConnection.java:217)
      at oracle.sysman.gcagent.comm.http.ClientConnection.makeConnection(ClientConnection.java:815)
      at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.<init>(TMClientConnection.java:80)
      at oracle.sysman.gcagent.comm.oms.http.HTTPClientTerminus.connect(HTTPClientTerminus.java:217)
      at oracle.sysman.gcagent.oms.TMRemoteClientFactory.getCommunicatingClient(TMRemoteClientFactory.java:177)
      at oracle.sysman.gcagent.oms.TMRemoteClientFactory.createEmdCtlClient(TMRemoteClientFactory.java:76)
      at oracle.sysman.gcagent.clients.emdctlj.commands.EmdCtlAgentStatusCommand.execute(EmdCtlAgentStatusCommand.java:94)
      at oracle.sysman.gcagent.clients.emdctlj.EmdCtlParsedCommandHandler.executeCommand(EmdCtlParsedCommandHandler.java:88)
      at oracle.sysman.gcagent.clients.emdctlj.EmdCtl.parseAndExecute(EmdCtl.java:149)
      at oracle.sysman.gcagent.clients.emdctlj.EmdCtl.main(EmdCtl.java:414)
      Caused by: java.net.ConnectException: Connection refused
      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:4268)
      at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:708)
      at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5379)
      at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4254)
      +2013-02-20 13:17:59,351 [main] INFO - Disconnecting: client terminus+
      +2013-02-20 13:17:59,351 [main] INFO - stderr: Status agent Failure:unable to connect to the agent at http://standby:1831/emd/lifecycle/main/ [Connection refused]+
      +2013-02-20 13:17:59,351 [main] INFO - Exit Code: 1+
      -----


      */cloud/esi/middle/agent/agent_inst/sysman/log/gcagent.log*
      -----

      +2013-02-20 10:54:36,848 [1:main] ERROR - Unable to construct an HTTPS context for url https://standby:4899/empbs/upload/:+
      +java.io.IOException [Failed to open agent server wallet]+
      +java.io.FileNotFoundException [cloud/esi/middle/agent/agent_inst/sysman/config/server/repoconn.ora (No such file or directory)]+
      -----


      oracle@standby: ls -l /cloud/esi/middle/agent/agent_inst/sysman/config/server/repoconn.ora
      +/cloud/esi/middle/agent/agent_inst/sysman/config/server/repoconn.ora: No such file or directory+
      -----