13 Replies Latest reply: Jan 9, 2012 9:10 PM by 862632 RSS

    avctl start_agent: Http Communication error: 404

    645962
      Hi Experts,

      I am encountering this error when starting the agent in the AV server:

      avctl start_agent -agentname avagent1
      *...*
      **Error executing task start_agent: Http Communication error: Http Communication error: 404**

      I made sure that oc4j is running in the av-client.

      I check the configuration of agent in the console and this is the entries;

      Name: avagent1
      host: msidr200
      port: 7011**
      user: DRDB1

      with regards to port, I am wondering if the the value 7011 is correct.

      My source database and my AV server database is listening both in port 1521.

      If I make the port value to 1521, this is the new error.

      **Error executing task start_agent: Http Communication error: Premature EOF encountered**


      This is the info of AV server and client:

      AV Server: Audit vault version 10.2.3.0 | RHEL 2.6.9-89ELsmp | 10.2.0.3 Database
      AV Client:  Audit vault version 10.2.3.0 | RHEL 2.6.9-89ELsmp | 10.2.0.4  Source* Database*



      Logs*****:*

      avca.log

      03/09/10 03:39:12 AVCTL started
      03/09/10 03:39:12 Starting agent...
      03/09/10 03:39:12 xml - /audit/u01/avoracle/product/10.2.3/avprod/oc4j/j2ee/OC4J_DBConsole_msisvr220.msi.com_av/config/av-web-site.xml
      03/09/10 03:39:12 xml URL - file:/audit/u01/avoracle/product/10.2.3/avprod/oc4j/j2ee/OC4J_DBConsole_msisvr220.msi.com_av/config/av-web-site.xml
      03/09/10 03:41:55 Error executing task start_agent: Http Communication error: Premature EOF encountered


      Thanks,

      Jay


      03/09/10 04:48:18 AVCTL started
      03/09/10 04:48:18 Starting agent...
      03/09/10 04:48:18 xml - /audit/u01/avoracle/product/10.2.3/avprod/oc4j/j2ee/OC4J_DBConsole_msisvr220.msi.com_av/config/av-web-site.xml
      03/09/10 04:48:18 xml URL - file:/audit/u01/avoracle/product/10.2.3/avprod/oc4j/j2ee/OC4J_DBConsole_msisvr220.msi.com_av/config/av-web-site.xml
      03/09/10 04:48:20 Error executing task start_agent: Http Communication error: Http Communication error: 404



      av_client-0.log

      Mar 9, 2010 9:05:30 AM Thread-11 FINE: HttpManagementAdaptor.getAgnetURL, connect to:http://msidr200.msi.com:7011
      Mar 9, 2010 9:05:30 AM Thread-11 FINE: HttpManagementAdaptor.getResponse, conn.Get, /AVAgent//collectorMetric.av[LHTTPClient.NVPair;@1d652
      Mar 9, 2010 9:05:30 AM Thread-11 FINE: HttpManagementAdaptor.getAgnetURL, connect to:http://msidr200.msi.com:7011
      Mar 9, 2010 9:05:30 AM Thread-11 FINE: HttpManagementAdaptor.getResponse, conn.Get, /AVAgent//collectorMetric.av[LHTTPClient.NVPair;@164804
      Mar 9, 2010 9:05:32 AM Thread-12 FINE: HttpManagementAdaptor.getAgnetURL, connect to:http://msidr200.msi.com:7011
      Mar 9, 2010 9:05:32 AM Thread-12 FINE: HttpManagementAdaptor.getResponse, conn.Get, /AVAgent//agentMetric.av[LHTTPClient.NVPair;@11d20d3
      Mar 9, 2010 9:05:33 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:33 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:33 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:34 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:35 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:35 AM Thread-11 FINE: url=jdbc:oracle:oci:@av
      Mar 9, 2010 9:05:35 AM Thread-11 FINE: HttpManagementAdaptor.getAgnetURL, connect to:http://msidr200:1521
      Mar 9, 2010 9:05:35 AM Thread-11 FINE: HttpManagementAdaptor.getResponse, conn.Get, /AVAgent//agentMetric.av[LHTTPClient.NVPair;@164bff9
      Mar 9, 2010 9:08:13 AM Thread-11 FINE: HttpManagementAdaptor.getAgnetURL, connect to:http://msidr200:1521
      Mar 9, 2010 9:08:13 AM Thread-11 FINE: HttpManagementAdaptor.getResponse, conn.Get, /AVAgent//agentMetric.av[LHTTPClient.NVPair;@61a7e6
      Mar 9, 2010 9:35:48 AM Thread-13 SEVERE: 8859_1
      Mar 9, 2010 9:35:48 AM Thread-13 SEVERE: 8859_1
      Mar 9, 2010 9:35:48 AM Thread-13 SEVERE: 8859_1
        • 1. Re: avctl start_agent: Http Communication error: 404
          683924
          Hi Jay,

          yes the problem seems to be with port no you should change the port no of source database to 1522. hope fully this will fix the problem.




          Regards
          Khurram
          • 2. Re: avctl start_agent: Http Communication error: 404
            645962
            Hi Khurram,

            Thanks.
            But listener port is 1521 for source database. And as I have said, if I corrected the port in the agents info, this is the error that I will encounter when starting the agent:

            Error executing task start_agent: Http Communication error: Premature EOF encountered


            Regards,
            jay a
            • 3. Re: avctl start_agent: Http Communication error: 404
              683924
              HI,

              Did you mean that you have different listener ports for both av server and source database?
              you have to make them different.


              Regards
              • 4. Re: avctl start_agent: Http Communication error: 404
                645962
                Hi,

                You are asking if the AV server and source database have the same Listenener port? Yes, they are the same.

                I changed the listener port of Source database to 1522, and when I try to start the agent, I got the same error.

                Error executing task start_agent: Http Communication error: Http Communication error: 404


                Regards,
                jay a
                • 5. Re: avctl start_agent: Http Communication error: 404
                  645962
                  Hi,

                  Mar 9, 2010 11:10:16 AM Thread-12 FINE: HttpManagementAdaptor.getAgnetURL, connect to:*http://msidr200:7011*
                  Mar 9, 2010 11:10:16 AM Thread-12 FINE: HttpManagementAdaptor.getResponse, conn.Get, /AVAgent//agentMetric.av[LHTTPClient.NVPair;@154ea79
                  Mar 9, 2010 11:10:16 AM Thread-12 SEVERE: Http Communication error: Http Communication error: 404
                  Http Communication error: Http Communication error: 404
                  at oracle.av.management.impl.HttpManagementAdaptor.getResponse(HttpManagementAdaptor.java:210)
                  at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:258)
                  at oracle.av.management.impl.HttpManagementAdaptor.collectAgentMetrics(HttpManagementAdaptor.java:352)
                  at oracle.av.management.impl.ManagementServiceImpl.isAgentAlive(ManagementServiceImpl.java:457)
                  at oracle.av.management.impl.ManagementServiceImpl.startAgent(ManagementServiceImpl.java:812)
                  at oracle.av.management.impl.ManagementServiceImpl.startAgent(ManagementServiceImpl.java:779)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at oracle.av.action.ActionContext$Invocation.invoke(ActionContext.java:430)
                  at oracle.av.action.ActionContext.next(ActionContext.java:121)
                  at oracle.av.action.ActionServlet.handleAction(ActionServlet.java:295)
                  at oracle.av.action.ActionServlet.doProcess(ActionServlet.java:132)
                  at oracle.av.action.ActionServlet.doPost(ActionServlet.java:194)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                  at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
                  at oracle.sysman.db.avauth.AVXSSFilter.doFilter(AVXSSFilter.java:54)
                  at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
                  at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269)
                  at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
                  at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
                  at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
                  at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
                  at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
                  at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
                  at java.lang.Thread.run(Thread.java:534)
                  Nested Exception:
                  Http Communication error: 404
                  at oracle.av.management.impl.HttpManagementAdaptor.getResponse(HttpManagementAdaptor.java:203)
                  at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:258)
                  at oracle.av.management.impl.HttpManagementAdaptor.collectAgentMetrics(HttpManagementAdaptor.java:352)
                  at oracle.av.management.impl.ManagementServiceImpl.isAgentAlive(ManagementServiceImpl.java:457)
                  at oracle.av.management.impl.ManagementServiceImpl.startAgent(ManagementServiceImpl.java:812)
                  at oracle.av.management.impl.ManagementServiceImpl.startAgent(ManagementServiceImpl.java:779)


                  regards,
                  jay a

                  Edited by: Jay A on Mar 9, 2010 3:11 AM
                  • 6. Re: avctl start_agent: Http Communication error: 404
                    683924
                    the problem is av server is unable to connect to the
                    source db , so on the source db please do , login to the source db and issue:

                    alter system register;

                    If it fails, check what are the services of the listener on your source db host,

                    in the AV environment we rely on automatic instance registration, so make sure the order
                    of starting up components is listener first and then the dbs, so they can properly register

                    also make sure that ping and tnsping are working mean from avserver just ping the source database and from source database ping the av server if it works the do same with tnsping.


                    regards.,
                    • 7. Re: avctl start_agent: Http Communication error: 404
                      645962
                      Hi,

                      I think it is not a port issue. My source database and AV server are both listening in port 1521 and they are both running fine now.

                      What I did is drop all collectors and agents, upgrade to 10.2.3.2.0 for AV server and client and created new collectors, agents and source database.

                      AV 10.2.3.2.0 is cooler and there are a lot of new features. Good thing that Email notification is already included in 10.2.3.2.0

                      Regards,
                      jay A
                      • 8. Re: avctl start_agent: Http Communication error: 404
                        645962
                        Upgraded to 10.2.3.2.0
                        • 9. Re: avctl start_agent: Http Communication error: 404
                          645962
                          I stand to be corrected.

                          It is really a port issue. I changed the listener port of my source database.

                          regards,
                          jay a
                          • 10. Re: avctl start_agent: Http Communication error: 404
                            587885
                            Hi Jay,

                            Are you still experiencing the issue or has it been resolved.
                            • 11. Re: avctl start_agent: Http Communication error: 404
                              Pat Huey-Oracle
                              Hi Jay,

                              Yes, let us know if you're still having a problem. This looks like a good troubleshooting item for the Audit Vault Admin Guide.

                              By the way, with regard to changing port numbers, you might find the following link helpful:

                              http://download.oracle.com/docs/cd/B19306_01/install.102/b15660/app_port.htm#sthref1236

                              This appendix is for the Linux x86 installation guide, but it appears for all the platforms, from release 10.2 and later.

                              HTH,
                              Pat

                              Edited by: user462144 on Mar 18, 2010 1:24 PM
                              • 12. Re: avctl start_agent: Http Communication error: 404
                                645962
                                Hi All,

                                Yes. I already solved the problem.
                                But I had the trouble of changing the listener port of my source application database. I did a lot of auto-config and updating port number for my EM DB control.

                                Hope the Audit Vault team will modify the installation process to allow specifying listening port during AV server installation.

                                Cheers,

                                Jay A
                                • 13. Re: avctl start_agent: Http Communication error: 404
                                  862632
                                  Hi Jay,

                                  I don't understand how you cleared this issue. I am facing the same issue when I started the collector.
                                  Can you explain me in a bit more clear what exactly you did ASAP?

                                  Thanks,
                                  Shri