10 Replies Latest reply on May 23, 2017 8:28 AM by kulbhushanc Branched from an earlier discussion.

    Teiid Domain mode installation using CLI command

    kulbhushanc

      I am trying to execute cli command to install teiid in domain mode getting error

      Only one of '--file', '--commands' or '--command' can appear as the argument at a time.

      Press any key to continue . . .

       

      command : jboss-cli.bat --connect ip_address --file=scripts/teiid-domain-mode-install.cli

        • 1. Re: Teiid Domain mode installation using CLI command
          shawkins

          What version are you using?

          • 2. Re: Teiid Domain mode installation using CLI command
            rareddy

            try just

             

            jboss-cli.bat --file=scripts/teiid-domain-mode-install.cli

            • 3. Re: Teiid Domain mode installation using CLI command
              kulbhushanc

              I am using teiid 9.1.3 and wildfly 10.0.0

              • 4. Re: Teiid Domain mode installation using CLI command
                kulbhushanc

                @ Ramesh

                On execution of command "jboss-cli.bat --file=scripts/teiid-domain-mode-install.cli" throws error

                 

                C:\temp___\teiid-9.1.3-wildfly-server\teiid-9.1.3\bin>jboss-cli.bat --file=scripts/teiid-domain-mode-install.cli

                The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://localhost:9990. The connection f

                ailed: WFLYPRT0053: Could not connect to http-remoting://localhost:9990. The connection failed: Connection refused: no further information

                Press any key to continue . . .

                • 5. Re: Teiid Domain mode installation using CLI command
                  shawkins

                  Did you first start the master in domain mode using the domain.bat script?

                  • 6. Re: Teiid Domain mode installation using CLI command
                    kulbhushanc

                    yes.

                    • 7. Re: Teiid Domain mode installation using CLI command
                      shawkins

                      And your master is running on the same machine as where you are running the cli?

                       

                      If so this implies that it bound the admin port to something other than localhost or did not start successfully.    Can you provide the startup log from your master?

                      • 8. Re: Teiid Domain mode installation using CLI command
                        kulbhushanc

                        logs from host-controller.log file:

                         

                        2017-05-19 12:38:48,340 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final

                        2017-05-19 12:38:49,406 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final

                        2017-05-19 12:38:49,579 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting

                        2017-05-19 12:38:51,738 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0003: Creating http management service using network interface (management) port (9990) securePort (-1)

                        2017-05-19 12:38:51,769 INFO  [org.xnio] (MSC service thread 1-4) XNIO version 3.3.4.Final

                        2017-05-19 12:38:51,802 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.3.4.Final

                        2017-05-19 12:38:52,342 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 4.0.18.Final

                        2017-05-19 12:38:52,398 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) WFLYRMT0001: Listening on 192.168.1.110:9999

                        2017-05-19 12:38:57,242 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0023: Starting server server-one

                        2017-05-19 12:39:01,201 INFO  [org.jboss.as.host.controller] (management task-4) WFLYHC0021: Server [Server:server-one] connected using connection [Channel ID 37cd3b9c (inbound) of Remoting connection 6d4e20a9 to /192.168.1.110:63100]

                        2017-05-19 12:39:01,283 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) WFLYHC0020: Registering server server-one

                        2017-05-19 12:39:01,291 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0023: Starting server server-two

                        2017-05-19 12:39:05,845 INFO  [org.jboss.as.host.controller] (management task-8) WFLYHC0021: Server [Server:server-two] connected using connection [Channel ID 565d75c5 (inbound) of Remoting connection 40658b4a to /192.168.1.110:63109]

                        2017-05-19 12:39:05,881 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) WFLYHC0020: Registering server server-two

                        2017-05-19 12:39:06,123 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://192.168.1.110:9990/management

                        2017-05-19 12:39:06,124 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://192.168.1.110:9990

                        2017-05-19 12:39:06,124 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) (Host Controller) started in 19596ms - Started 51 of 53 services (16 services are lazy, passive or on-demand)

                        • 9. Re: Teiid Domain mode installation using CLI command
                          shawkins

                          Note that your admin interface is bound to 192.168.1.110 and not localhost.  You'll need to the controller option to specify the ip address - Command Line Interface - Latest WildFly Documentation - Project Documentation Editor

                          • 10. Re: Teiid Domain mode installation using CLI command
                            kulbhushanc

                            Thanks Steven...

                             

                            command :

                            jboss-cli.sh/bat --connect --controller=192.168.1.110:9990 --file=scripts/teiid-domain-mode-install.cli

                             

                            worked for me.