6 Replies Latest reply: Oct 29, 2013 9:39 PM by Basu-Em-Oracle RSS

    Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error

    user13475271

      Hello,

       

      I am trying to create an agent on a linux server using Oracle Enterprise Manager 12.1.0.3. The user is created with root privilege on the server, by change /etc/sudoers entry username the same as the root entry. After that I tried to add host target by clicking Setup->Add Target->Add target Manually->Add Host Targets in the Oracle Enterprise Manager.

       

      In the Add Target view: I clicked on add, then I entry host and platform information. After that I click next. Then I provided the Linux x86-64 : Installation Details for
      Installation Base Directory,

       

      Add Host Status view: stages Initialization and Remote Prerequisite Check successfully passed, but in the stage Agent Deployment, it failed in the Installation and Configuration phrase of the Agent Deployment stage.


      The log content is shown below. There are numerous SEVERE Errors. But I don't have much experience in dealing with these type of problems. I thank you in advance for all the helps.


      lf

       

      WARNING: Validation of XML schema is disabled because AggregateDescriptions.xsd could not be found

      INFO: Creating new CFM connection

      INFO: Creating a new logger for oracle.sysman.top.agent

      INFO: Unmarshalling /users/ncgf/em_agent/core/12.1.0.3.0/inventory/ContentsXML/ConfigXML/oracle.sysman.top.agent.12_1_0_3_0.xml

      INFO: Creating a new logger for OuiConfigVariables

      INFO: Unmarshalling /users/ncgf/em_agent/core/12.1.0.3.0/inventory/ContentsXML/ConfigXML/OuiConfigVariables.1_0_0_0_0.xml

      INFO: Aggregate Description oracle.sysman.top.agent:12.1.0.3.0:common successfully loaded

      INFO: Aggregate Description OuiConfigVariables:1.0.0.0.0:common successfully loaded

      INFO: Successfully returning from CfmFactory.connect()

      INFO: Cfm.save() was called

      INFO: Cfm.save(): 2 aggregate instances saved

      INFO: oracle.sysman.top.agent:IAction.perform() was called on {Action state:configuration in CfmAggregateInstance: oracle.sysman.top.agent:12.1.0.3.0:common:family=CFM:oh=/users/ncgf/em_agent/core/12.1.0.3.0:label=1}

      INFO: Framework waiting for Action to complete at 15:08:10.272

      INFO: CfwProgressMonitor:actionProgress:About to perform Action=configuration Status=is running with ActionStep=0 stepIndex=0 microStep=0

      WARNING: Skipping environment variable line: "}": oracle.sysman.emCfg.common.CfwException: A non-empty environment line must contain "=": }

      WARNING: Failed to read environment variable file /users/ncgf/em_agent/core/12.1.0.3.0/install/envVars.properties: java.io.FileNotFoundException: /users/ncgf/em_agent/core/12.1.0.3.0/install/envVars.properties (No such file or directory)

      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 = /users/ncgf/em_agent/core/12.1.0.3.0/oui/jlib/srvm.jar:/users/ncgf/em_agent/core/12.1.0.3.0/jlib/agentConfig.jar:/users/ncgf/em_agent/core/12.1.0.3.0/jlib/emConfigInstall.jar:/users/ncgf/em_agent/core/12.1.0.3.0/sysman/jlib/emagentSDK.jar:/users/ncgf/em_agent/core/12.1.0.3.0/modules/oracle.http_client_11.1.1.jar:/users/ncgf/em_agent/core/12.1.0.3.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=/users/ncgf/em_agent/core/12.1.0.3.0

      2.AGENT_PORT=3872

      3.ORACLE_HOSTNAME=nsn175-89.us.oracle.com

      4.b_doDiscovery=false

      5.AGENT_BASE_DIR=/users/ncgf/em_agent

      6.AGENT_INSTANCE_HOME=/users/ncgf/em_agent/agent_inst

      7.s_hostname=nsn175-89.us.oracle.com

      8.OMS_HOST=nsn175-105.us.oracle.com

      9.b_startAgent=false

      10.b_secureAgent=true

      11.b_chainedInstall=false

      12.b_forceConfigure=false

      13.EM_UPLOAD_PORT=4904

      14.b_forceAgentDefaultPort=false

      15.s_staticPorts=

      16.PROPERTIES_FILE=

      b_skipValidation=false

      INFO: oracle.sysman.top.agent:Validating OMS_HOST and EM_UPLOAD_PORT

      INFO: oracle.sysman.top.agent:Validating with http protocol ...

      INFO: oracle.sysman.top.agent:URL framed is:http://nsn175-105.us.oracle.com:4904/empbs/genwallet

      SEVERE: oracle.sysman.top.agent:Connection refusedUnexpected end of file from server

      INFO: oracle.sysman.top.agent:Validating with https protocol ...

      INFO: oracle.sysman.top.agent:URL framed is:https://nsn175-105.us.oracle.com:4904/empbs/genwallet

      SEVERE: oracle.sysman.top.agent:The EM_UPLOAD_PORT passed is a secure port. Hence AGENT_REGISTRATION_PASSWORD or s_encrSecurePwd should be passed

      INFO: oracle.sysman.top.agent:EM Protocol Switch determined: https

      INFO: oracle.sysman.top.agent:Performing free port detection..

      INFO: oracle.sysman.top.agent:Trying for host : nsn175-89/10.134.175.89 and port : 3872

      INFO: oracle.sysman.top.agent: Trying for host : /127.0.0.1 and port : 3872

      INFO: oracle.sysman.top.agent:** Agent Port Check completed successfully.**

      INFO: oracle.sysman.top.agent:Agent Port from User Passed Port3872

      INFO: oracle.sysman.top.agent:Paths after canonical format conversions are :

      1. state_dir=/users/ncgf/em_agent/agent_inst

      2. agentBaseDir=/users/ncgf/em_agent

      3. oraHome=/users/ncgf/em_agent/core/12.1.0.3.0

      INFO: oracle.sysman.top.agent:Parent directory of agent instance home:/users/ncgf/em_agent

      INFO: oracle.sysman.top.agent:AgentConfiguration:perform:AgentPortHandler for /users/ncgf/em_agent/core/12.1.0.3.0 and hosts=nsn175-89.us.oracle.com returned Port to Use=3872

      INFO: oracle.sysman.top.agent:Instantiating emctl.template file #DEFAULT_EMSTATE# with /users/ncgf/em_agent/agent_inst

      INFO: oracle.sysman.top.agent:Writing the following contents into /users/ncgf/em_agent/core/12.1.0.3.0/install/oragchomelist

      INFO: oracle.sysman.top.agent:/users/ncgf/em_agent/core/12.1.0.3.0:/users/ncgf/em_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: /users/ncgf/em_agent/core/12.1.0.3.0/bin/emctl deploy agent -L -o nsn175-105.us.oracle.com:4904 -N /users/ncgf/em_agent/agent_inst nsn175-89.us.oracle.com:3872 nsn175-89.us.oracle.com

      INFO: oracle.sysman.top.agent:Creating shared install...

      INFO: oracle.sysman.top.agent:Source location: /users/ncgf/em_agent/core/12.1.0.3.0

      INFO: oracle.sysman.top.agent:Destination (shared install) : /users/ncgf/em_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.

      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 Cloud Control 12c Release 3

      INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.

      INFO: oracle.sysman.top.agent:Property 'agentTZRegion' is  missing from /users/ncgf/em_agent/agent_inst/sysman/config/emd.properties. Updating it...

      INFO: oracle.sysman.top.agent:An agentTZregion of 'US/Pacific' is installed in /users/ncgf/em_agent/agent_inst/sysman/config/emd.properties.

      INFO: oracle.sysman.top.agent:The command: /users/ncgf/em_agent/core/12.1.0.3.0/bin/emctl deploy agent -L -o nsn175-105.us.oracle.com:4904 -N /users/ncgf/em_agent/agent_inst nsn175-89.us.oracle.com:3872 nsn175-89.us.oracle.com completed with status=0

      SEVERE: oracle.sysman.top.agent:Securing of agent step will be skipped because of the following reasons:

      1. Agent Registration Password was not passed.

      2. b_secureAgent was passed as false

      3. The flag -forceConfigure was assed from agentDeploy.sh

      INFO: oracle.sysman.top.agent:Plugin File:/users/ncgf/em_agent/plugins.txt

      INFO: oracle.sysman.top.agent:Plugin Homes found.

      INFO: oracle.sysman.top.agent:Executing command :/users/ncgf/em_agent/core/12.1.0.3.0/perl/bin/perl /users/ncgf/em_agent/core/12.1.0.3.0/bin/AgentPluginDeploy.pl -oracleHome /users/ncgf/em_agent/core/12.1.0.3.0 -agentDir /users/ncgf/em_agent -pluginIdsInfoFile /users/ncgf/em_agent/plugins.txt -action configure -emStateDir /users/ncgf/em_agent/agent_inst

      INFO: oracle.sysman.top.agent:

      INFO: oracle.sysman.top.agent:

      INFO: oracle.sysman.top.agent:The Agent emStateDir location passed is /users/ncgf/em_agent/agent_inst

      INFO: oracle.sysman.top.agent: The log file is /users/ncgf/em_agent/agent_inst/install/logs/agentplugindeploy_2013_10_16_15_08_11.log

      INFO: oracle.sysman.top.agent: The temp file created to check R/W permissions in Oraclehome: /users/ncgf/em_agent/core/12.1.0.3.0 is /users/ncgf/em_agent/core/12.1.0.3.0/rwFile

      INFO: oracle.sysman.top.agent:Plugin command completed with status=0

      INFO: oracle.sysman.top.agent:Executing command :/users/ncgf/em_agent/agent_inst/bin/emctl listplugins agent -type all

      INFO: oracle.sysman.top.agent:Oracle Enterprise Manager Cloud Control 12c Release 3

      INFO: oracle.sysman.top.agent:Oracle Enterprise Manager Cloud Control 12c Release 3

      INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.

      INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.

      INFO: oracle.sysman.top.agent:---------------------------------------------------------------

      INFO: oracle.sysman.top.agent:---------------------------------------------------------------

      SEVERE: oracle.sysman.top.agent:ERROR: The Management Agent configuration failed. The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed, or this plug-in may not be present in the Management Agent software. Ensure that the Management Agent software has the oracle.sysman.oh monitoring plug-in, if not then retry the operation. If the agent software has the oracle.sysman.oh monitoring plug-in, view the plug-in deployment log /users/ncgf/em_agent/agent_inst/install/logs to check if the plug-in configuration for the oracle.sysman.oh monitoring plug-in failed.

      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 15:08:10.272

       

      Thank you for your help AkankshaSheoranKaler. I have executed the following command based on your request. If there is any issue, please let me know. Thanks!

       

      "Can you run this command to make sure that the agents bits were downloaded correctly : oms home /bin /emcli verify_updates

      Share the output of the command. I am suspecting this is a know issue (Bug 17300008) but i will wait for your output.  Also if you can open an SR with oracle support to track this issue and its resolution. "

       

      [ncgf@nsn175-105 bin]$ ./emcli setup -url=https://nsn175-105.us.oracle.com:7803/em -u sername=SYSMAN

      Oracle Enterprise Manager 12c 3.

      Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserve d.

       

      The configuration directory "/users/ncgf" may not be local. See the "dir" option in t he help for the setup command.

      Do you want to continue using this directory? [yes/no] yes

      Enter password

       

      Emcli setup successful

      [ncgf@nsn175-105 bin]$ ./emcli verify_updates

       

      Verifying updates. Starting validation...

       

       

      -----

      Type       : Plug-in

      Description: Demo Hostsample Test Plugin

      Attributes

              Version: 1201000100

              Revision: 0

              OS Platform: Generic Platform

              Plug-in Name: Demo Host Sample Plugin

       

      Archives are missing from the Software Library. Unable to determine the URL for downloading the update. The update might not have come from Oracle Enterprise Manager Store.

      -----

       

      For each update with missing archives, emcli import_update can be used with a -force option to re-upload the archives to the Software Library.

        • 1. Re: Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error
          Akanksha Sheoran Kaler

          Can you run this command to make sure that the agents bits were downloaded correctly : oms home /bin /emcli verify_updates

          Share the output of the command. I am suspecting this is a know issue (Bug 17300008) but i will wait for your output.  Also if you can open an SR with oracle support to track this issue and its resolution.

           

          • 2. Re: Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error
            user13475271

            [ncgf@nsn175-105 bin]$ ./emcli setup -url=https://nsn175-105.us.oracle.com:7803/em -u sername=SYSMAN

            Oracle Enterprise Manager 12c 3.

            Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserve d.

             

            The configuration directory "/users/ncgf" may not be local. See the "dir" option in t he help for the setup command.

            Do you want to continue using this directory? [yes/no] yes

            Enter password

             

            Emcli setup successful

            [ncgf@nsn175-105 bin]$ ./emcli verify_updates

             

            Verifying updates. Starting validation...

             

             

            -----

            Type       : Plug-in

            Description: Demo Hostsample Test Plugin

            Attributes

                    Version: 1201000100

                    Revision: 0

                    OS Platform: Generic Platform

                    Plug-in Name: Demo Host Sample Plugin

             

            Archives are missing from the Software Library. Unable to determine the URL for downloading the update. The update might not have come from Oracle Enterprise Manager Store.

            -----

             

            For each update with missing archives, emcli import_update can be used with a -force option to re-upload the archives to the Software Library

            • 3. Re: Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error
              Akanksha Sheoran Kaler

              This  happen if the software library is not accessible, readable or unmounted (if it is in shared file system). You can fix the software library or you can download the agent bits in offline mode. Try downloading the bits again and run the same verify command. Verfiy command has to be successful for a proper bits download 

              • 4. Re: Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error
                user13475271

                   Hello

                This  happen if the software library is not accessible, readable or unmounted (if it is in shared file system).”

                On Enterprise Manager server [nsn175-105], we did the following:

                1. we modified /etc/exports to include this line: /export *(rw,no_root_squash,sync)

                1. we start nfs service by executing command “service nfs start”.  
                2. On Management Agent server (nsn175-89), we verified that we are able to mount /export directory of EM server.
                3. On Management Agent server, we started firefox browser and were able to run successfully https://nsn175-105.us.oracle.com:4904/empbs/genwallet


                After making this change, we ran agent deployment again. We encountered the same error as shown above.


                You can fix the software library or you can download the agent bits in offline mode.”

                For fixing the software library, select Setup->Provision and Patching->Offline Patching, then select Offline Patching radio button, download: https://updates.oracle.com/download/em_catalog.zip. Next upload this zip file.


                Try downloading the bits again”

                We are not sure what agent bits are. Would you please explain this and provide procedure how we can download this?


                (Here I have attempted to fix the software library, but I am new to Enterprise Manager and not sure how to interpret this).

                • 5. Re: Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error
                  user13475271

                  AkankshaSheoranKaler,

                   

                  Thank you for your suggestion. We mounted the directories. And now it is working.

                   

                  1. Set up sharing directory on server B.

                  Create an /etc/exports file and add the following line:

                  directory_name_to export  permission

                  Ex: /aa *(rw,no_root_squash,sync)

                   

                  2. Start nfs service on server B.

                  service nfs stop

                  service nfs start

                   

                  3. On server A, create directory to map (e.g /bb) and run mount command

                  like this:

                   

                  mount Bserver_hostname:/aa     /bb

                  • 6. Re: Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error
                    Basu-Em-Oracle

                    yes,

                    adding more details to prev update :

                     

                    1) on B server : have entry in /etc/exports

                          /aa  *(rw,no_root_squash,sync)
                       :wq!
                      #service portmap restart
                      #service nfs restart
                      #exportfs
                      #showmount -e

                    you should see that exported path :

                     

                    Ex:

                    # showmount -e

                    Export list for xxxxx.oracle.com:

                    /u01                    *

                    /u02                    *

                     

                    1.1) Ensure that iptables are stopped

                         #/etc/init.d/iptables status

                     

                      #/etc/init.d/iptables stop

                      #chkconfig iptables --list

                      #chkconfig iptables off


                    2) On A server , mount

                      2.1 you can verify the exported folder

                                  #showmount -e <B servername>

                    2.2 mount the exported path

                        # mount -t nfs  <B-servername>:/aa /<path on server A>

                        #mount

                    should be able to see that exported path in A server.

                     

                    HTH.

                     

                    Best Regards

                    Basu