5 Replies Latest reply on Nov 13, 2006 3:58 AM by 114927

    unable to start agent ...

    114927
      Hi,
      When i try to start the agent, i get the following error:

      ./emctl start agent
      Oracle Enterprise Manager 10g Release 10.2.0.2.0.
      Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
      Starting agent ....... failed.
      Failed to start HTTP listener.

      My emagent.trc file contain the following messages:

      2006-11-08 12:07:28 Thread-4136875712 ERROR util.files: ERROR: nmeufis_new: failed in lfiopn on file: /u01/app/oracle/agent10g/sysman/emd/agntstmp.txt. error = 2 (No such file or directory)
      2006-11-08 12:07:28 Thread-4136875712 ERROR http: snmehl_allocateListenerPort: failed to bind socket: Address already in use (errno=98)
      2006-11-08 12:07:28 Thread-4136875712 ERROR http: nmehl_startHttpListener: failed to listen to HTTP port for http://db02.adm.ausregistry.net:3872/emd/main/
      2006-11-08 12:07:28 Thread-4136875712 ERROR main: nmehl_startHttpListener failed starting http listener.
      2006-11-08 12:13:51 Thread-4136875712 ERROR : sched_setaffinity failed, errno 22
      2

      Does any body know how to resolve this error

      Regards
      Shimak
        • 1. Re: unable to start agent ...
          bazzza
          looks like a port conflict.
          • 2. Re: unable to start agent ...
            114927
            I have changed the port from 3872 to 3871 in emd.properties file and tried to stop and start the agent again but failed and got the same error.
            • 3. Re: unable to start agent ...
              mnazim-Oracle
              Please change port to 3873 and let me know the result
              • 4. Re: unable to start agent ...
                277993
                Check that there is no hanging processes using the ports. I would suggest you do Do a clean stop and restart of the Agent.

                Before you make the port changes, check that you are using a range that is available on your system
                • 5. Re: unable to start agent ...
                  114927
                  I have used 3873 and some other available ports but got the same error.

                  Below is the output of the netstat:
                  netstat -an |grep 3872
                  tcp 0 0 127.0.0.1:53872 127.0.0.1:6100 TIME_WAIT
                  tcp 0 0 127.0.0.1:63872 127.0.0.1:6100 TIME_WAIT
                  tcp 0 0 127.0.0.1:38724 127.0.0.1:6100 TIME_WAIT
                  tcp 0 0 127.0.0.1:38725 127.0.0.1:6100 TIME_WAIT

                  Now let me tell you our environenment and the scenerio.

                  We have installled OEM 10g Grid Console on machine A.
                  We have different databases running on machine B,machine C and D and so forth.
                  We want to monitor all databases running on machine B,C and D from OEM Grid Control running on machine A.

                  For that purpose i have installed Oracle 10g Agent on machine B,C and D in order to communicate them with the Grid machine A.
                  Machine B and C are working fine and are communicating with Grid. Now we can monitor databases running on machine B and C from Grid machine.
                  But i am getting this HTTP listener problem with the machine D.

                  So this is how i have setup the environment.

                  Now any guesses for the problem.