3 Replies Latest reply on Oct 3, 2013 9:56 PM by kymsh2

    RHQ 4.7 Installation doubt ?

    Arun Raj Expert

      Hi Developers,

       

          I am new to Linux environment. I am struck up while configuring rhq-server4.7 in fedora Os. While I am testing rhq installer script, I have got the following error log. Please help me to debug it. As per my knowledge I have figured out the issue with postgresq. But having no idea, Where I have made the mistake. Please guide me to solve the issue.

       

       

      [root@localhost bin]# /bin/sh rhq-installer.sh --test
      15:27:47,750 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1
      15:27:47,819 INFO  [org.rhq.enterprise.server.installer.InstallerServiceImpl] The server is preconfigured and ready for auto-install.
      15:27:47,864 INFO  [org.xnio] XNIO Version 3.0.7.GA
      15:27:47,868 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA
      15:27:47,873 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.14.GA
      15:27:58,054 ERROR [org.rhq.enterprise.server.installer.Installer] An error occurred: java.lang.Exception: Cannot obtain client connection to the RHQ app server!!
          at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:986) [rhq-installer-util-4.7.0.jar:4.7.0]
          at org.rhq.enterprise.server.installer.InstallerServiceImpl.preInstall(InstallerServiceImpl.java:195) [rhq-installer-util-4.7.0.jar:4.7.0]
          at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:120) [rhq-installer-util-4.7.0.jar:4.7.0]
          at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:89) [rhq-installer-util-4.7.0.jar:4.7.0]
          at org.rhq.enterprise.server.installer.Installer.main(Installer.java:56) [rhq-installer-util-4.7.0.jar:4.7.0]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
          at org.jboss.modules.Module.run(Module.java:262) [jboss-modules.jar:1.2.0.CR1]
          at org.jboss.modules.Main.main(Main.java:329) [jboss-modules.jar:1.2.0.CR1]
      Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9999. The connection timed out
          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:81) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.rhq.common.jbossas.client.controller.JBossASClient.execute(JBossASClient.java:263) [rhq-jboss-as-dmr-client-4.7.0.jar:4.7.0]
          at org.rhq.common.jbossas.client.controller.CoreJBossASClient.getSystemProperties(CoreJBossASClient.java:82) [rhq-jboss-as-dmr-client-4.7.0.jar:4.7.0]
          at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:937) [rhq-installer-util-4.7.0.jar:4.7.0]
          ... 10 more
      Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9999. The connection timed out
          at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:130) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:176) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:144) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.controller.client.impl.RemotingModelControllerClient$1.getChannel(RemotingModelControllerClient.java:65) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:115) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:98) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
          ... 14 more
      

       

      Regards,

      ArunRaj

        • 1. Re: RHQ 4.7 Installation doubt ?
          Arun Raj Expert

          Hi Developers,

           

              I have removed the installed postgresql package. Installed it again with yum installer. Started the rhq server and started the installer script. Installer scripts producing following error. I feel environment error with my installation. Can anyone help me out to install it properly.

           

           

          Arun Raj wrote:

           

          Hi Developers,

           

              I am new to Linux environment. I am struck up while configuring rhq-server4.7 in fedora Os. While I am testing rhq installer script, I have got the following error log. Please help me to debug it. As per my knowledge I have figured out the issue with postgresq. But having no idea, Where I have made the mistake. Please guide me to solve the issue.

           

          [root@localhost bin]# /bin/sh rhq-installer.sh --test
          15:27:47,750 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1
          15:27:47,819 INFO  [org.rhq.enterprise.server.installer.InstallerServiceImpl] The server is preconfigured and ready for auto-install.
          15:27:47,864 INFO  [org.xnio] XNIO Version 3.0.7.GA
          15:27:47,868 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA
          15:27:47,873 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.14.GA
          15:27:58,054 ERROR [org.rhq.enterprise.server.installer.Installer] An error occurred: java.lang.Exception: Cannot obtain client connection to the RHQ app server!!
              at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:986) [rhq-installer-util-4.7.0.jar:4.7.0]
              at org.rhq.enterprise.server.installer.InstallerServiceImpl.preInstall(InstallerServiceImpl.java:195) [rhq-installer-util-4.7.0.jar:4.7.0]
              at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:120) [rhq-installer-util-4.7.0.jar:4.7.0]
              at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:89) [rhq-installer-util-4.7.0.jar:4.7.0]
              at org.rhq.enterprise.server.installer.Installer.main(Installer.java:56) [rhq-installer-util-4.7.0.jar:4.7.0]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
              at org.jboss.modules.Module.run(Module.java:262) [jboss-modules.jar:1.2.0.CR1]
              at org.jboss.modules.Main.main(Main.java:329) [jboss-modules.jar:1.2.0.CR1]
          Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9999. The connection timed out
              at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:81) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.rhq.common.jbossas.client.controller.JBossASClient.execute(JBossASClient.java:263) [rhq-jboss-as-dmr-client-4.7.0.jar:4.7.0]
              at org.rhq.common.jbossas.client.controller.CoreJBossASClient.getSystemProperties(CoreJBossASClient.java:82) [rhq-jboss-as-dmr-client-4.7.0.jar:4.7.0]
              at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:937) [rhq-installer-util-4.7.0.jar:4.7.0]
              ... 10 more
          Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9999. The connection timed out
              at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:130) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:176) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:144) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.controller.client.impl.RemotingModelControllerClient$1.getChannel(RemotingModelControllerClient.java:65) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:115) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:98) [jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127) [jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
              ... 14 more
          

           

          Regards,

          ArunRaj

          • 2. Re: RHQ 4.7 Installation doubt ?
            kymsh2 Newbie

            Hi Arun,

             

            I am having exactly the same problem when trying to install RHQ. Did you find any solution to this problem ?

             

            Any help would be greatly appreciated.

             

            Thanks,

            Ibrahim.

            • 3. Re: RHQ 4.7 Installation doubt ?
              kymsh2 Newbie

              Well. I figured out the problem and solved it.

               

              The server startup script didnot have the execute permission.

               

              > ls -l <RHQ-SERVER-IDR>/jbossas/bin/standalone.sh

              -rw--r--. 1 root root 8517 Feb 12  2013 standalone.sh

               

               

              Provided the execution permission using "chmod u+x standalone.sh"  and the executed the "rhqctl install" again. RHQ server installed successfully.

              Check the permissions of any other .sh file as well.

               

              Hope this ll be helpful for anyone who bump into the same problem.

               

               

              Regards,

              Ibrahim.