11 Replies Latest reply on Oct 19, 2015 4:16 AM by mayerw01

    CLI command to start server group hangs

    anmk28

      Need help on the below issue. We are trying to restart a server group through CLI command line. The problem is after the execution it gets hung over there and doesn’t come out until we use control+c or enter.

       

        Below is the command we are trying after connecting to domain controller.


      (jboss)-> $JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=xxx  controller=localhost:9990

      [domain@localhost:9990 /] /server-group=ABC-server-group:start-servers

      .

      .

      After use control+c

      Communication error: java.util.concurrent.ExecutionException: Operation failed: Operation failed: Channel closed

       

      Back end The process was running, but it would never start successfully (not much in the logs either; it appears they have them dialed back).

      can you please help me

      Thanks

      Mahesh

        • 1. Re: CLI command to start server group hangs
          mayerw01

          Which WildFly, Java and OS version are you using?

          What means "not much in the log either"? Does the log show that the command had been accepted by the AS?

          Do you get the same problem when starting the servers via web console?

          • 2. Re: CLI command to start server group hangs
            anmk28

            1: Which WildFly, Java and OS version are you using?

            Jboss Version :- Jboss 7.2

            OS

            --> /bin/uname -an

            Linux localhost  2.6.18-406.el5 #1 SMP Fri May 1 10:37:57 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

            Java version

            jdk1.6.0_101-64

            2: What means "not much in the log either"? Does the log show that the command had been accepted by the AS?

            as command is accepted but it not stopping

            in logs i can see below update after that It's not updated anything

            Server:test] 04:19:42,673 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015899: JBoss AS 7.2.0.Final "Janus" starting

            [Server:test] 04:19:42,762 INFO  [org.xnio] (MSC service thread 1-2) XNIO Version 3.0.7.GA

            [Server:test] 04:19:42,771 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.0.7.GA

            [Server:test] 04:19:42,780 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 3.2.14.GA

            [Host Controller] 04:19:43,444 INFO  [org.jboss.as.domain.controller.mgmt] (Remoting "localhost:MANAGEMENT" task-4) JBAS010920: Server [Server:ABC] registered using connection [Channel ID 72778597 (inbound) of Remoting connection 0b297f91 to /167.143.77.51:40227]

             

            3: Do you get the same problem when starting the servers via web console?

            Via consloe i can start the server group

             

            Thanks

            Mahesh

            • 3. Re: CLI command to start server group hangs
              mayerw01

              It looks like this is a bug in jboss-as-7.2.0.Final (which is actually the same as EAP 6.1.0.Alpha http://www.openlogic.com/resources/enterprise-blog/archive/where-is-jboss-7-2-0-final)

              This problem should not come up on jboss-as-7.1.1.Final. You may therefore decide do downgrade to JBoss 7.1.1 or upgrade to WildFly

              • 4. Re: CLI command to start server group hangs
                tomekadamski

                Hi Mahesh,

                Can you please paste the content of $WFLY_HOME/domain/log/host-controller.log?

                 

                Regards,
                Tomek

                • 5. Re: CLI command to start server group hangs
                  anmk28

                  below the host controller error

                   

                  07:29:33,973 INFO  [org.jboss.as.host.controller] (management-handler-thread - 14) JBAS010922: Starting server ABC

                  07:29:37,845 INFO  [org.jboss.as.domain.controller.mgmt] (Remoting "wuvra00a0004:MANAGEMENT" task-4) JBAS010920: Server [Server:ABC] registered using connection [Channel ID 046f4cb8 (inbound) of Remoting connection 5103c049 to /192.168.10.10:39489]

                  .

                  .

                  .

                  After +c

                   

                  07:33:32,921 WARN  [org.jboss.as.controller] (Remoting "wuvra00a0004:MANAGEMENT" read-1) JBAS014618: Graceful shutdown of the handler used for native management requests did not complete within [15000] ms but shutdown of the underlying communication channel is proceeding

                  07:33:33,012 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) JBAS010919: Registering server ABC

                  • 6. Re: CLI command to start server group hangs
                    anmk28

                    below the host controller error

                     

                    07:29:33,973 INFO  [org.jboss.as.host.controller] (management-handler-thread - 14) JBAS010922: Starting server ABC

                    07:29:37,845 INFO  [org.jboss.as.domain.controller.mgmt] (Remoting "wuvra00a0004:MANAGEMENT" task-4) JBAS010920: Server [Server:ABC] registered using connection [Channel ID 046f4cb8 (inbound) of Remoting connection 5103c049 to /192.168.10.10:39489]

                    • 7. Re: CLI command to start server group hangs
                      tomekadamski

                      As Wolfgang already mentioned this was the bug in 7.2.0.Final. You can find more information here: [WFLY-4] Unable to restart server group in domain mode - JBoss Issue Tracker

                      • 8. Re: CLI command to start server group hangs
                        anmk28

                        Thanks for the update is there any way to we can fix the issues because my all application are migrated from Jboss 5 to 7.2. all working fine if it's bug i need to go fro 8.0. all double works.

                        it there any patch are released for this? .


                        Thanks

                        Mahesh

                        • 9. Re: CLI command to start server group hangs
                          mayerw01

                          I would not suggest to try to fix just this bug but to go for the latest WildFly version instead (which includes all the fixes).

                          The migration from JBoss 7.2 to WildFly should also not be very complicate.

                          But if you do so you might run into the next problem with your Java version. It should be at least SE7 

                          • 10. Re: CLI command to start server group hangs
                            anmk28

                            Thanks for update WildFly 8.x is not support  jdk1.6.0_1011 version ?

                            • 11. Re: CLI command to start server group hangs
                              mayerw01

                              Please check Getting Started Guide - WildFly 8 - Project Documentation Editor

                              In the "Requirements" section it is stated "Java SE 7 or later (we recommend that you use the latest update available)"