6 Replies Latest reply on Feb 10, 2016 6:49 AM by grgrzybek

    First ever fabric:create for Fuse on Windows 7

    fatmark

      Hey Everyone,

       

      First post, hope someone can help. I'm having trouble getting fabric:create to work on a windows 7 box.

       

      I've installed jboss-fuse-6.2.1.redhat-084 Fuse on a windows 7 box.

      I've been following the instructions on https://www.jboss.org/products/fuse/get-started/. Everything works until I do a fabric:create.

       

      I'm logged in as admin (The shell says JBossFuse:admin@root ) when I do a fabric:create I receive the following

      Error executing command: Cannot obtain service: io.fabric8.api.FabricComplete

       

      I have also tried

      fabric:create --resolver manualip --manual-ip 127.0.0.1 --wait-for-provisioning

      And still receive

      Error executing command: Cannot obtain service: io.fabric8.api.FabricComplete

       

      Is there anything I need to be aware of that not in the instructions? Does fuse download extra stuff, does it need network access or firewall ports open?

       

      Here's what's in fuse.log

      11:59:06,974 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | auth success /127.0.0.1:60482

      11:59:07,067 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Got user-level KeeperException when processing sessionid:0x15278a6da230000 type:create cxid:0x2 zxid:0x2 txntype:-1 reqpath:n/a Error Path:/fabric/registry/containers/provision/root/extender/blueprint/bundle Error:KeeperErrorCode = NoNode for /fabric/registry/containers/provision/root/extender/blueprint/bundle

      11:59:07,099 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Got user-level KeeperException when processing sessionid:0x15278a6da230000 type:create cxid:0x6 zxid:0x4 txntype:-1 reqpath:n/a Error Path:/fabric Error:KeeperErrorCode = NodeExists for /fabric

      11:59:07,099 | INFO  | MCF-1-thread-1   | GitDataStoreImpl                 | 140 - io.fabric8.fabric-git - 1.2.0.redhat-621084 | Starting up GitDataStore io.fabric8.git.internal.GitDataStoreImpl@41dd177f

      11:59:07,130 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Got user-level KeeperException when processing sessionid:0x15278a6da230000 type:create cxid:0xc zxid:0x6 txntype:-1 reqpath:n/a Error Path:/fabric/registry Error:KeeperErrorCode = NodeExists for /fabric/registry

      11:59:09,064 | INFO  | MCF-1-thread-1   | CuratorFrameworkImpl             | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Starting

      11:59:09,064 | INFO  | MCF-1-thread-1   | ZooKeeper                        | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@38be19bd

      11:59:09,064 | INFO  | (127.0.0.1:2181) | ClientCnxn                       | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Opening socket connection to server 127.0.0.1/127.0.0.1:2181

      11:59:09,064 | INFO  | ry:/0.0.0.0:2181 | NIOServerCnxnFactory             | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Accepted socket connection from /127.0.0.1:60485

      11:59:09,064 | INFO  | (127.0.0.1:2181) | ClientCnxn                       | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session

      11:59:09,064 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Client attempting to establish new session at /127.0.0.1:60485

      11:59:09,111 | INFO  | SyncThread:0     | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Established session 0x15278a6da230001 with negotiated timeout 40000 for client /127.0.0.1:60485

      11:59:09,111 | INFO  | (127.0.0.1:2181) | ClientCnxn                       | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x15278a6da230001, negotiated timeout = 40000

      11:59:09,111 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | got auth packet /127.0.0.1:60485

      11:59:09,111 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | auth success /127.0.0.1:60485

      11:59:09,111 | INFO  | ad-1-EventThread | ConnectionStateManager           | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | State change: CONNECTED

      11:59:09,111 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | got auth packet /127.0.0.1:60485

      11:59:09,111 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | auth success /127.0.0.1:60485

      11:59:09,267 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 145 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621084 | Got user-level KeeperException when processing sessionid:0x15278a6da230000 type:create cxid:0x9b zxid:0x59 txntype:-1 reqpath:n/a Error Path:/fabric/configs/versions Error:KeeperErrorCode = NoNode for /fabric/configs/versions

      11:59:09,454 | INFO  | MCF-1-thread-1   | GitDataStoreImpl                 | 140 - io.fabric8.fabric-git - 1.2.0.redhat-621084 | Importing C:\servers\jboss-fuse-6.2.1.redhat-084\fabric\import\fabric as version 1.0

      12:01:06,769 | ERROR | Thread-53        | Console                          | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-621084 | Exception caught while executing command

      java.lang.IllegalStateException: Cannot obtain service: io.fabric8.api.FabricComplete

        at io.fabric8.api.gravia.ServiceLocator.awaitService(ServiceLocator.java:139)

        at io.fabric8.api.gravia.ServiceLocator.awaitService(ServiceLocator.java:106)

        at io.fabric8.internal.ZooKeeperClusterBootstrapImpl.create(ZooKeeperClusterBootstrapImpl.java:138)

        at io.fabric8.boot.commands.CreateAction.doExecute(CreateAction.java:308)

        at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)

        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_79]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]

        at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]

        at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)

        at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)

        at io.fabric8.boot.commands.$CreateCommand36905700.execute(Unknown Source)

        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]

        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]

        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]

        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]

        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]

        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]

        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)

        at org.apache.karaf.shell.console.jline.Console.run(Console.java:197)

        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:173)[122:org.apache.karaf.shell.ssh:2.4.0.redhat-621084]

        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:125)

        at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_79]

        at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[25:org.apache.karaf.jaas.modules:2.4.0.redhat-621084]

        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:123)[122:org.apache.karaf.shell.ssh:2.4.0.redhat-621084]

        • 1. Re: First ever fabric:create for Fuse on Windows 7
          grgrzybek

          Hello Mark

           

          Looks like the process got stuck at "Importing C:\servers\jboss-fuse-6.2.1.redhat-084\fabric\import\fabric as version 1.0". This is information about importing static files from the mentioned location to internal Git repository stored in (in your case) C:\servers\jboss-fuse-6.2.1.redhat-084\data\git\local\fabric\.git.

           

          Please check if this directory was initialized (what's the size?). Also if you run with manual IP 127.0.0.1, try better to run Fuse with "-Djava.net.preferIPv4Stack=true" - I'm not sure if it helps with your problem, but won't hurt.

          Initially, Fuse should open ports:

          • 8181 - http service
          • 8101 - ssh service
          • 2181 - ZooKeeper service (after creating fabric)
          • 1099/44444 - RMI registry and service

           

          best regards

          Grzegorz Grzybek

          • 2. Re: First ever fabric:create for Fuse on Windows 7
            fatmark

            Hi James

             

            Thanks so much for replying the size of C:\servers\jboss-fuse-6.2.1.redhat-084\data\git\local\fabric\.git. folder is 16.0 KB (16,384 bytes).

             

            Still getting the same problem (sorry not got any more information, it still remains not working for me).

            • 3. Re: First ever fabric:create for Fuse on Windows 7
              grgrzybek

              Hi Mark

               

              16kB is too little and too round (16384 bytes), do you have "git" executable available on Windows? You could check "git branch -avv" to see if everything was imported. Somehow something is preventing the initial import.

              You could also try running again, trying to create fabric and when it's stuck, run "jstack -l PID", where PID is process Id of running Fuse instance (java.exe process under Windows).

               

              regards

              Grzegorz

              • 4. Re: First ever fabric:create for Fuse on Windows 7
                fatmark

                Hi Grzegorz,

                 

                First off apologies for calling you "James" I had been in the middle of an email to a chap called James when i did the reply. I am an idiot ! 

                 

                Git is not installed on my system anywhere, I couldn't see it anywhere on

                Red Hat JBoss Fuse - Installation Guide - Installation Prerequisites

                 

                Will install git and give it it another try.

                 

                Thanks again for your help mate, much appreciated.

                • 5. Re: First ever fabric:create for Fuse on Windows 7
                  grgrzybek

                  No problem

                  No, git isn't a requirement, but it'd help check what was imported into git.

                  But what's more interesting is what thread got stuck during fabric import and at what point (`jstack -l` - this tool is part of JDK installation).

                   

                  regards

                  Grzegorz

                  • 6. Re: First ever fabric:create for Fuse on Windows 7
                    theboyblunder

                    Hi,

                     

                    We finally got the fabric create working, turns out our windows firewall was blocking the ports!

                    Anyway thank you very much Grzegorz for all your help.

                     

                    Cheers

                    Mark

                    • 7. Re: First ever fabric:create for Fuse on Windows 7
                      grgrzybek

                      I'm glad it works Ah - those pesky firewalls!

                       

                      cheers

                      Grzegorz