12 Replies Latest reply on Nov 28, 2014 6:54 AM by tsykora

    brand new to RHQ - can't do the install step

    cotton.ben

      Hi,  I get stuck immediately trying to bring up RHQ.  Any help to get a newbie passed this first shot roadblock?  What is this remote://127.0.0.1:9999 Can't connect error?  What is it expecting?  I am trying to do the very first step of the install.  Thanks.

       

      u935903@lri4ld044> ./rhqctl install --storage-data-root-dir /home/u935903/rhq-saved-caches/

      16:32:41,128 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

      16:32:41,303 INFO  [org.rhq.server.control.command.Install] The RHQ Server must be started to complete its upgrade. Starting the

      RHQ server in preparation of running the server installer...

      16:32:41,317 INFO  [org.rhq.server.control.command.Install] Waiting for the RHQ Server to start in preparation of running the ser

      ver installer for upgrade...

      Trying to start the RHQ Server...

      RHQ Server                     (pid 7211   ) IS NOT running

      Failed to start - make sure the RHQ Server is fully configured properly

      16:32:46,980 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

      16:32:47,094 INFO  [org.rhq.enterprise.server.installer.InstallerServiceImpl] The server is preconfigured and ready for auto-install.

      16:32:47,168 INFO  [org.xnio] XNIO Version 3.0.7.GA

      16:32:47,176 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA

      16:32:47,185 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.14.GA

      16:32:57,453 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:1034) [rhq-installer-util-4.8.0.jar:4.8.0]

              at org.rhq.enterprise.server.installer.InstallerServiceImpl.preInstall(InstallerServiceImpl.java:197) [rhq-installer-util-4.8.0.jar:4.8.0]

              at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:122) [rhq-installer-util-4.8.0.jar:4.8.0]

              at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:89) [rhq-installer-util-4.8.0.jar:4.8.0]

              at org.rhq.enterprise.server.installer.Installer.main(Installer.java:56) [rhq-installer-util-4.8.0.jar:4.8.0]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_21]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_21]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]

              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.8.0.jar:4.8.0]

              at org.rhq.common.jbossas.client.controller.CoreJBossASClient.getSystemProperties(CoreJBossASClient.java:103) [rhq-jboss-as-dmr-client-4.8.0.jar:4.8.0]

              at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:985) [rhq-installer-util-4.8.0.jar:4.8.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

       

      16:32:57,488 ERROR [org.rhq.server.control.command.Install] An error occurred while starting the RHQ server: Process exited with an error: 2 (Exit value: 2)

      16:32:57,489 ERROR [org.rhq.server.control.RHQControl] An error occurred while executing the install command [Cause: org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2)]

      u935903@lri4ld044>

        • 1. Re: brand new to RHQ - can't do the install step
          pilhuhn

          Hey Ben,

           

          sorry that you are having trouble here, the command line you gave looks pretty ok to me.

           

          Could you perhaps try one thing and don't cd into bin/ before calling rhqctl, but call it from $rhq_server  as bin/rhqctl to see if that makes a difference.

           

          I that does not help, can you please check if port 9999 is in use, but on a different ip via  netstat -an |grep 9999

           

          If that is the case, can you please send the output of ifconfig and the respective lines from /etc/hosts?

           

          What OS (and java version) are you on?

          • 2. Re: brand new to RHQ - can't do the install step
            cotton.ben

            Thanks for the response Heiko. We have some big ambitions wrt what we think RHQ can do for us, including developing our our own RHQ plugins.  We will be very patient to get up an running, so thanks again for helping us.  Here are the infos you requested.

             

            u935903@lri4ld044> cd $RHQ_SERVER

            u935903@lri4ld044> pwd

            /home/u935903/RHQ/rhq-server-4.8.0

            u935903@lri4ld044> ./bin/rhqctl  install

            #exact same error log produced

             



            u935903@lri4ld044> netstat -an |grep 9999

            u935903@lri4ld044>

             

            u935903@lri4ld044> cat /etc/hosts

            # Do not remove the following line, or various programs

            # that require network functionality will fail.

            127.0.0.1                   localhost.localdomain      localhost

            169.124.172.130      lri4ld044.svr.us.jpmchase.net      lri4ld044

            10.198.182.60          lri4ld044-t1.bkup.us.jpmchase.net      lri4ld044-t1

            u935903@lri4ld044>

             

            u935903@lri4ld044> java  -version

            java version "1.7.0_21"

            Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

            Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

            u935903@lri4ld044>

             

            u935903@lri4ld044> cat /proc/version

            Linux version 2.6.18-308.4.1.el5 (mockbuild@hs20-bc2-4.build.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)) #1 SMP Wed Mar 28 01:54:56 EDT 2012

            u935903@lri4ld044>

            • 3. Re: brand new to RHQ - can't do the install step
              cotton.ben

              any insights guys?  pretty fundamental for me to have an expectation for this to work.

              • 4. Re: brand new to RHQ - can't do the install step
                jayshaughnessy

                Hi Ben,

                 

                I agree, it does seem like it should be more straightforward.  Going back to your initial post, it seems like you did the right things according to the installation wiki:

                 

                  https://docs.jboss.org/author/display/RHQ/RHQ+Server+Installation

                 

                1) unzip

                2) cd to rhq-install-dir/bin

                3) edit rhq-server.properties with your desired rdb settings and server info

                4) rhqctl install --storage-data-root-dir /home/u935903/rhq-saved-caches/

                 

                Did you actually execute an '> rhqctl install --storage' prior to what you posted?  Because it looks like the storage node was not installed before the rhq server component.  Or, was there a failure prior to the installation attempt you posted?

                • 5. Re: brand new to RHQ - can't do the install step
                  cotton.ben

                  there was no other failure reported.

                   

                  Here is output of command invoke you suggested:

                   

                  u935903@lri4ld044> bin/rhqctl install --storage

                  17:48:14,097 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                  17:48:14,258 INFO  [org.rhq.server.control.command.Install] The RHQ storage node is already installed in /home/u935903/RHQ/rhq-server-4.8.0/storage

                  17:48:14,259 INFO  [org.rhq.server.control.command.Install] Skipping storage node installation.

                  u935903@lri4ld044>

                  • 6. Re: brand new to RHQ - can't do the install step
                    jayshaughnessy

                    Well OK, it seems the storage node is installed.  Next, I guess would be to ensure it can run and is running.  You can try an 'rhqctl start --storage'.   Or, minimally, 'rhqctl status' shoul be able to tell you if it's running.  Also, check the logs/storage.log to see if it looks healthy.

                     

                    Once storage is running it should be safe to 'rhqctl install --server'.

                     

                    To install RHQ into the underlying AS server the AS server must be started, and then the RHQ installer will inject RHQ into it. The original problem would indicate that the vanilla AS server may have failed to start.  If you have the <rhq-install>/logs/server.log you may be able to see something in there to indicate the issue.

                    • 7. Re: brand new to RHQ - can't do the install step
                      cotton.ben

                      > To install RHQ into the underlying AS server the AS server must be started

                       

                      What does this mean?  Do I have to have an instance of an AS started before I can start RHQ?  Where is this documented?  In the ideal case, I don't want to install RHQ into an underlying AS server.

                       

                      If this is a pre-requesite to have a running AS server in place, please provide me a complete set of instructions on how to get this running - including the AS server prerequisite.

                       

                      Here is what happens when I follow your last set of instructions.

                       

                      u935903@lri4ld044> bin/rhqctl status

                      10:13:49,936 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      RHQ Storage Node               (pid 24974  ) IS running

                      RHQ Agent                      (pid 25152  ) IS NOT running

                      u935903@lri4ld044> bin/rhqctl install -server

                      10:14:17,688 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      10:14:17,864 INFO  [org.rhq.server.control.command.Install] The RHQ Server must be started to complete its upgrade. Starting the RHQ server in preparation of running the server installer...

                      10:14:17,902 INFO  [org.rhq.server.control.command.Install] Waiting for the RHQ Server to start in preparation of running the server installer for upgrade...

                      Trying to start the RHQ Server...

                      RHQ Server                     (pid 19619  ) IS NOT running

                      Failed to start - make sure the RHQ Server is fully configured properly

                      10:14:23,909 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      10:14:24,062 INFO  [org.rhq.enterprise.server.installer.InstallerServiceImpl] The server is preconfigured and ready for auto-install.

                      10:14:24,357 INFO  [org.xnio] XNIO Version 3.0.7.GA

                      10:14:24,380 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA

                      10:14:24,400 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.14.GA

                      10:14:34,967 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:1034) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.InstallerServiceImpl.preInstall(InstallerServiceImpl.java:197) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:122) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:89) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.Installer.main(Installer.java:56) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]

                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_21]

                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_21]

                              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]

                              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.8.0.jar:4.8.0]

                              at org.rhq.common.jbossas.client.controller.CoreJBossASClient.getSystemProperties(CoreJBossASClient.java:103) [rhq-jboss-as-dmr-client-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:985) [rhq-installer-util-4.8.0.jar:4.8.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

                       

                      10:14:35,001 ERROR [org.rhq.server.control.command.Install] An error occurred while starting the RHQ server: Process exited with an error: 2 (Exit value: 2)

                      10:14:35,002 ERROR [org.rhq.server.control.RHQControl] An error occurred while executing the install command [Cause: org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2)]

                      u935903@lri4ld044> bin/rhqctl start --storage

                      10:14:49,540 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      RHQ storage node (pid 24974) is running

                      u935903@lri4ld044> bin/rhqctl status

                      10:16:47,702 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      RHQ Storage Node               (pid 24974  ) IS running

                      RHQ Agent                      (pid 25152  ) IS NOT running

                      u935903@lri4ld044> bin/rhqctl install --server

                      10:18:13,812 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      10:18:13,981 INFO  [org.rhq.server.control.command.Install] The RHQ Server must be started to complete its upgrade. Starting the RHQ server in preparation of running the server installer...

                      10:18:13,994 INFO  [org.rhq.server.control.command.Install] Waiting for the RHQ Server to start in preparation of running the server installer for upgrade...

                      Trying to start the RHQ Server...

                      RHQ Server                     (pid 27221  ) IS NOT running

                      Failed to start - make sure the RHQ Server is fully configured properly

                      10:18:19,619 INFO  [org.jboss.modules] JBoss Modules version 1.2.0.CR1

                      10:18:19,760 INFO  [org.rhq.enterprise.server.installer.InstallerServiceImpl] The server is preconfigured and ready for auto-install.

                      10:18:19,836 INFO  [org.xnio] XNIO Version 3.0.7.GA

                      10:18:19,844 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA

                      10:18:19,853 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.14.GA

                      10:18:30,124 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:1034) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.InstallerServiceImpl.preInstall(InstallerServiceImpl.java:197) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.InstallerServiceImpl.test(InstallerServiceImpl.java:122) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:89) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.Installer.main(Installer.java:56) [rhq-installer-util-4.8.0.jar:4.8.0]

                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]

                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_21]

                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_21]

                              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]

                              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.8.0.jar:4.8.0]

                              at org.rhq.common.jbossas.client.controller.CoreJBossASClient.getSystemProperties(CoreJBossASClient.java:103) [rhq-jboss-as-dmr-client-4.8.0.jar:4.8.0]

                              at org.rhq.enterprise.server.installer.InstallerServiceImpl.testModelControllerClient(InstallerServiceImpl.java:985) [rhq-installer-util-4.8.0.jar:4.8.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

                       

                      10:18:30,156 ERROR [org.rhq.server.control.command.Install] An error occurred while starting the RHQ server: Process exited with an error: 2 (Exit value: 2)

                      10:18:30,157 ERROR [org.rhq.server.control.RHQControl] An error occurred while executing the install command [Cause: org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2)]

                      u935903@lri4ld044>

                      • 8. Re: brand new to RHQ - can't do the install step
                        cotton.ben

                        > If you have the <rhq-install>/logs/server.log you may be able to see something in there to indicate the issue.

                         

                        There is no $RHQ_HOME/logs/server.log  file of any kind.


                         


                        • 9. Re: brand new to RHQ - can't do the install step
                          kymsh2

                          Hi Ben,

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

                           

                          Thanks,

                          Ibrahim.

                          • 10. Re: brand new to RHQ - can't do the install step
                            kymsh2

                            Well. I figured out the problem and solved it.

                             

                            The server startup script didnot have the execute permission.

                             

                            .<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.

                             

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

                             

                            Regards,

                            Ibrahim.

                            • 11. Re: brand new to RHQ - can't do the install step
                              heidricha

                              Lucky you!

                               

                              I have installed RHQ several times, but now the firt time I have tried with Debian's "standard" openjdk.

                               

                              Is it possible, that it is not supported at all? The installation  lasts forever, the messages are:

                              16:41:03,871 INFO  [org.rhq.server.control.command.Install] Still waiting for server to start...

                              16:41:34,025 INFO  [org.rhq.server.control.command.Install] Still waiting for server to start...

                              16:42:04,214 INFO  [org.rhq.server.control.command.Install] It has been over [2] minutes - you may want to ensure your server startup is proceeding as expected. You can check the log at [/opt/rhq-server-4.9.0/logs/server.log].

                               

                              while in the server.log:

                              16:33:54,478 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:6990/management

                              16:33:54,478 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015954: Admin console is not enabled

                              16:33:54,478 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.1.0.Alpha1 (AS 7.2.0.Alpha1-redhat-4) started in 9295ms - Started 162 of 233 services (65 services are passive or on-demand)

                               

                              And nothing more!

                              • 12. Re: brand new to RHQ - can't do the install step
                                tsykora

                                Hello,

                                maybe not related but I want to share my experience. I've run into exactly the same problem while using JDK8. Switching JAVA_HOME to JDK7 helped and installation was successful.