2 Replies Latest reply on Jan 11, 2017 11:20 AM by sipapptesting

    Unable to create fabric

    sipapptesting

      I am executing command to create new fabric while setting up new developer environment.

      Java Version: C:\install\jdk1.8.0_91 (With no white space in path)

      Fuse distribution used: jboss-fuse-6.3.0.redhat-187

      Maven Version: C:\install\apache-maven-3.3.9

       

       

      JBossFuse:karaf@root> fabric:create

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

       

      Below is logs from fuse.log file.

       

      org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)[178:io.fabric8.fabric-zookeeper:1.2.0.redhat-630187]

      07:10:25,816 | INFO  | 89:7f8b%17:2181) | ClientCnxn                       | 178 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-630187 | Opening socket connection to server fe80:0:0:0:e960:90f2:8389:7f8b%17/fe80:0:0:0:e960:90f2:8389:7f8b%17:2181

      07:10:26,845 | WARN  | 89:7f8b%17:2181) | ClientCnxn                       | 178 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-630187 | Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

      java.net.ConnectException: Connection refused: no further information

          at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.8.0_91]

          at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)[:1.8.0_91]

          at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)[178:io.fabric8.fabric-zookeeper:1.2.0.redhat-630187]

          at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)[178:io.fabric8.fabric-zookeeper:1.2.0.redhat-630187]

      07:10:26,954 | INFO  | :bb39:b15d:2181) | ClientCnxn                       | 178 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-630187 | Opening socket connection to server 2001:0:1b76:21f3:3c83:ec3:bb39:b15d/2001:0:1b76:21f3:3c83:ec3:bb39:b15d:2181

      07:10:27,984 | WARN  | :bb39:b15d:2181) | ClientCnxn                       | 178 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-630187 | Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

      java.net.ConnectException: Connection refused: no further information

          at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.8.0_91]

          at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)[:1.8.0_91]

          at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)[178:io.fabric8.fabric-zookeeper:1.2.0.redhat-630187]

          at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)[178:io.fabric8.fabric-zookeeper:1.2.0.redhat-630187]

        • 1. Re: Unable to create fabric
          alele

          I am able to create the fabric in Fuse-v6.3 with JDK 8. I am not sure if you have any certain configuration changes before starting fuse.

           

          However, I would suggest you to clean the fabric once with "--clean" option and create it again with "--wait-for-provisioning".

           

          >> fabric:create --clean --wait-for-provisioning

          • 2. Re: Unable to create fabric
            sipapptesting

            I have deleted existing jboss-fuse-6.3.0.redhat-187 directory and again extracted fresh copy from ZIP file.

             

            Then i done below changes and its working now:

             

            Removed Comment from jboss-fuse-6.3.0.redhat-187\etc\users.properties for below line

            admin=admin,admin

            Set below properties in  jboss-fuse-6.3.0.redhat-187\etc\org.ops4j.pax.url.mvn.cfg as per my local settings

            org.ops4j.pax.url.mvn.settings = C:/install/apache-maven-3.3.9/conf/settings.xml

            org.ops4j.pax.url.mvn.localRepository = C:/MAVEN_REPO

             

            Then i started fuse from jboss-fuse-6.3.0.redhat-187\bin\fuse.bat

             

            and my above command fabric:create worked. Thanks all.