2 Replies Latest reply on Jun 24, 2014 8:58 AM by Zohaib Khan

    Unable to Create Fabric on clean VM

    Zohaib Khan Newbie

      Hello,

       

      I'm trying to run multiple Fuse instances on my local computer in separate VMs, in order to test some Fabric configurations for a client. I have a very simple setup in which I have installed VirtualBox and created a CentOS 6.5 VM to run Fuse in. However, the simplest of commands like "fabric:create -v --clean" fails to run properly and I'm looking for some help and another pair of eyes. Eventually I'd like to run docker images in the VM, but before I get there, I'd like to run simple scenarios with VMs alone as it is much closer to client setup.

       

      Here are the details of my setup:

      • Local computer: MacBook Pro running Mavericks.
      • VM Provider: VirtualBox 4.3.2
      • VM Client: CentOS 6.5 x64, 4GB RAM, 4-Core CPU. All firewalls and iptables service disabled.
      • Installed stack on CentOS: OpenJDK jre-1.7.0-openjdk.x86_64, Maven, GIT
      • Network bridge setup that gets IP from DHCP directly. Not using NAT at the moment.

       

      Here are the steps I'm taking to create Fabric:

      1. Download and install latest Fuse: jboss-fuse-6.1.0.redhat-379
      2. Uncommented the user name in users.properties file under etc directory.
      3. Run Fuse with 'bin/fuse' command.
      4. Create fabric using: fabric:create -v --clean

       

      After the 4th step, karaf console displays the error:

      JBossFuse:karaf@root> fabric:create -v --clean

      Waiting for container: root

      Error executing command: Unable to create zookeeper server configuration

       

      There are multiple errors in the fuse.log file (attached). It seems like it cannot start GitDataStore (ERROR on line 212).

      What am I missing here?

       

      Here is a snippet from log file that shows the ERROR (highlighted):

      19:09:24,243 | INFO  | pool-7-thread-1  | CuratorFrameworkImpl             | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Starting

      19:09:24,244 | INFO  | pool-7-thread-1  | ZooKeeper                        | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Initiating client connection, connectString=192.168.1.21:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@2c24b6a6

      19:09:24,252 | INFO  | 2.168.1.21:2181) | ClientCnxn                       | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Opening socket connection to server 192.168.1.21/192.168.1.21:2181. Will not attempt to authenticate using SASL (unknown error)

      19:09:24,261 | INFO  | ry:/0.0.0.0:2181 | NIOServerCnxnFactory             | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Accepted socket connection from /192.168.1.21:48079

      19:09:24,263 | INFO  | 2.168.1.21:2181) | ClientCnxn                       | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Socket connection established to 192.168.1.21/192.168.1.21:2181, initiating session

      19:09:24,263 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Client attempting to establish new session at /192.168.1.21:48079

      19:09:24,270 | INFO  | SyncThread:0     | ZooKeeperServer                  | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Established session 0x146cafdb5f70001 with negotiated timeout 40000 for client /192.168.1.21:48079

      19:09:24,271 | INFO  | 2.168.1.21:2181) | ClientCnxn                       | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Session establishment complete on server 192.168.1.21/192.168.1.21:2181, sessionid = 0x146cafdb5f70001, negotiated timeout = 40000

      19:09:24,272 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | got auth packet /192.168.1.21:48079

      19:09:24,272 | INFO  | ad-1-EventThread | ConnectionStateManager           | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | State change: CONNECTED

      19:09:24,272 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | auth success /192.168.1.21:48079

      19:09:24,275 | WARN  | onStateManager-0 | ConnectionStateManager           | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | There are no ConnectionStateListeners registered.

      19:09:24,278 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | got auth packet /192.168.1.21:48079

      19:09:24,279 | INFO  | ry:/0.0.0.0:2181 | ZooKeeperServer                  | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | auth success /192.168.1.21:48079

      19:09:24,310 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Got user-level KeeperException when processing sessionid:0x146cafdb5f70000 type:create cxid:0x5e zxid:0x35 txntype:-1 reqpath:n/a Error Path:/fabric/configs/versions Error:KeeperErrorCode = NoNode for /fabric/configs/versions

      19:09:24,346 | INFO  | pool-7-thread-1  | GitDataStore                     | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | Importing the old ZooKeeper layout

      19:09:24,347 | INFO  | pool-7-thread-1  | GitDataStore                     | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | Importing version configuration /home/zeekay/fuse_docker/jboss-fuse-6.1.0.redhat-379/fabric/import/fabric/configs/versions/1.0/profiles to branch 1.0

      19:09:24,409 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Got user-level KeeperException when processing sessionid:0x146cafdb5f70000 type:create cxid:0x8b zxid:0x46 txntype:-1 reqpath:n/a Error Path:/fabric/authentication/containers Error:KeeperErrorCode = NoNode for /fabric/authentication/containers

      19:09:28,793 | INFO  | pool-7-thread-1  | GitDataStore                     | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | No remote repository defined yet for the git repository at /home/zeekay/fuse_docker/jboss-fuse-6.1.0.redhat-379/data/git/local/fabric so not doing a push

      19:09:28,880 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Got user-level KeeperException when processing sessionid:0x146cafdb5f70001 type:create cxid:0x4 zxid:0xf4 txntype:-1 reqpath:n/a Error Path:/fabric/configs/ensemble Error:KeeperErrorCode = NoNode for /fabric/configs/ensemble

      19:09:29,028 | INFO  | pool-7-thread-1  | GitDataStore                     | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | No remote repository defined yet for the git repository at /home/zeekay/fuse_docker/jboss-fuse-6.1.0.redhat-379/data/git/local/fabric so not doing a push

      19:09:29,214 | INFO  | pool-7-thread-1  | GitDataStore                     | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | No remote repository defined yet for the git repository at /home/zeekay/fuse_docker/jboss-fuse-6.1.0.redhat-379/data/git/local/fabric so not doing a push

      19:09:29,228 | INFO  | sid:0 cport:-1): | PrepRequestProcessor             | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Processed session termination for sessionid: 0x146cafdb5f70001

      19:09:29,232 | INFO  | pool-7-thread-1  | ZooKeeper                        | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Session: 0x146cafdb5f70001 closed

      19:09:29,232 | INFO  | ad-1-EventThread | ClientCnxn                       | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | EventThread shut down

      19:09:29,233 | INFO  | pool-7-thread-1  | AbstractComponent                | 62 - io.fabric8.fabric-api - 1.0.0.redhat-379 | deactivateComponent: io.fabric8.git.internal.CachingGitDataStore@3f3efcf6

      19:09:29,237 | INFO  | ry:/0.0.0.0:2181 | NIOServerCnxn                    | 53 - io.fabric8.fabric-zookeeper - 1.0.0.redhat-379 | Closed socket connection for client /192.168.1.21:48079 which had sessionid 0x146cafdb5f70001

      19:09:29,237 | ERROR | pool-7-thread-1  | fabric-git                       | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | [io.fabric8.datastore(12)] The activate method has thrown an exception

      io.fabric8.api.FabricException: Failed to start GitDataStore:

        at io.fabric8.git.internal.GitDataStore.activateInternal(GitDataStore.java:174)

        at io.fabric8.service.AbstractDataStore.protectedActivate(AbstractDataStore.java:115)

        at io.fabric8.git.internal.CachingGitDataStore.activate(CachingGitDataStore.java:102)

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

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

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

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

        at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:879)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:846)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:785)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:572)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2006)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1004)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1433)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1143)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:815)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:785)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:411)[karaf.jar:2.3.0.redhat-610379]

        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)[karaf.jar:2.3.0.redhat-610379]

        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)[karaf.jar:2.3.0.redhat-610379]

        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[karaf.jar:2.3.0.redhat-610379]

        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)[karaf.jar:2.3.0.redhat-610379]

        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)[karaf.jar:2.3.0.redhat-610379]

        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4666)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.registerService(Felix.java:3674)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:347)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1027)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1016)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1068)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:865)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:931)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:895)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4666)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.registerService(Felix.java:3674)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:347)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1027)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1016)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1068)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:865)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:931)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:895)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)[80:org.apache.felix.scr:1.8.0.redhat-610379]

        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4666)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.Felix.registerService(Felix.java:3674)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:347)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]

        at io.fabric8.zookeeper.curator.ManagedCuratorFramework$State.stateChanged(ManagedCuratorFramework.java:139)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-379]

        at org.apache.curator.framework.state.ConnectionStateManager$2.apply(ConnectionStateManager.java:189)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-379]

        at org.apache.curator.framework.state.ConnectionStateManager$2.apply(ConnectionStateManager.java:185)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-379]

        at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92)[53:io.fabric8.fabric-zookeeper:1.0.0.redhat-379]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45]

        at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]

      Caused by: io.fabric8.api.FabricException: Unable to create bootstrap configuration

        at io.fabric8.zookeeper.bootstrap.DataStoreBootstrapTemplate.doWith(DataStoreBootstrapTemplate.java:184)

        at io.fabric8.service.AbstractDataStore.activateInternal(AbstractDataStore.java:138)

        at io.fabric8.git.internal.GitDataStore.activateInternal(GitDataStore.java:144)

        ... 95 more

      Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException

        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2199)

        at com.google.common.cache.LocalCache.get(LocalCache.java:3932)

        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)

        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4806)

        at io.fabric8.git.internal.CachingGitDataStore.getVersionData(CachingGitDataStore.java:114)

        at io.fabric8.git.internal.CachingGitDataStore.getConfigurations(CachingGitDataStore.java:214)

        at io.fabric8.git.internal.CachingGitDataStore.getConfiguration(CachingGitDataStore.java:221)

        at io.fabric8.service.AbstractDataStore.setProfileAttribute(AbstractDataStore.java:661)

        at io.fabric8.zookeeper.bootstrap.DataStoreBootstrapTemplate.doWith(DataStoreBootstrapTemplate.java:123)

        ... 97 more

      Caused by: java.lang.NullPointerException

        at io.fabric8.git.internal.CachingGitDataStore.addProfileData(CachingGitDataStore.java:158)

        at io.fabric8.git.internal.CachingGitDataStore.addProfileData(CachingGitDataStore.java:150)

        at io.fabric8.git.internal.CachingGitDataStore.addProfileData(CachingGitDataStore.java:150)

        at io.fabric8.git.internal.CachingGitDataStore.pouplateVersionData(CachingGitDataStore.java:130)

        at io.fabric8.git.internal.CachingGitDataStore$1$1.call(CachingGitDataStore.java:90)

        at io.fabric8.git.internal.CachingGitDataStore$1$1.call(CachingGitDataStore.java:87)

        at io.fabric8.git.internal.GitDataStore.gitOperation(GitDataStore.java:890)

        at io.fabric8.git.internal.GitDataStore.gitOperation(GitDataStore.java:857)

        at io.fabric8.git.internal.GitDataStore.gitOperation(GitDataStore.java:852)

        at io.fabric8.git.internal.CachingGitDataStore$1.load(CachingGitDataStore.java:87)

        at io.fabric8.git.internal.CachingGitDataStore$1.load(CachingGitDataStore.java:84)

        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)

        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)

        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)

        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)

        ... 105 more

      19:09:29,259 | ERROR | pool-7-thread-1  | fabric-git                       | 85 - io.fabric8.fabric-git - 1.0.0.redhat-379 | [io.fabric8.datastore(12)] Failed creating the component instance; see log for reason

        • 1. Re: Unable to Create Fabric on clean VM
          Claus Ibsen Master

          Hi

           

          If you run

           

              fabric:create --help

           

          You can see many options you can use for creating the fabric. We have seen that using the default resolver by hostname may be a problem on some system, and using localip instead or one of the other have resolved that.

           

          So many try with

           

              fabric:create --clean --global-resolver localip --resolver localip --verbose

          • 2. Re: Unable to Create Fabric on clean VM
            Zohaib Khan Newbie

            Hi Claus,

             

            Thanks for the tip. It actually worked.

            I've tried to run the following and surprisingly it did not work. Apparently it does the same thing:

             

            fabric:create -v --clean -g localip -r localip

             

            The only difference from your suggestion and above are the short flags instead of double dashed. Strange!

             

            Here are the outputs for both:

            JBossFuse:karaf@root> fabric:create -v --clean -g localip -r localip

            Waiting for container: root

            Error executing command: Unable to create zookeeper server configuration

            JBossFuse:karaf@root> fabric:create --clean --global-resolver localip --resolver localip --verbose

            Waiting for container: root

            Using specified zookeeper password:admin

            It may take a couple of seconds for the container to provision...

            You can use the --wait-for-provisioning option, if you want this command to block until the container is provisioned.

            JBossFuse:karaf@root>

             

            Thanks

            Zohaib