ensemble-add error with KeeperErrorCode = NoNode

Solution Verified - Updated -

Issue

The following stack trace is seen when expanding an ensemble:

2019-05-03 13:36:04,282 | ERROR | Thread-47        | Console                          | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-630187 | Exception caught while executing command 
io.fabric8.api.EnsembleModificationFailed: io.fabric8.api.FabricException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /fabric/configs/containers/mycontainer01 
        at io.fabric8.api.EnsembleModificationFailed.launderThrowable(EnsembleModificationFailed.java:47) 
        at io.fabric8.internal.ZooKeeperClusterServiceImpl.createCluster(ZooKeeperClusterServiceImpl.java:406) 
        at io.fabric8.internal.ZooKeeperClusterServiceImpl.addToCluster(ZooKeeperClusterServiceImpl.java:473) 
        at io.fabric8.commands.EnsembleAddAction.doExecute(EnsembleAddAction.java:132) 
        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.8.0_162] 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_162] 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_162] 
        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_162] 
        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.commands.$EnsembleAdd166402266.execute(Unknown Source) 
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[38:org.apache.karaf.shell.console:2.4.0.redhat-630187] 
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-630187] 
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-630187] 
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-630187] 
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-630187] 
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-630187] 
        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:171)[156:org.apache.karaf.shell.ssh:2.4.0.redhat-630187] 
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:126) 
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_162] 
        at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[25:org.apache.karaf.jaas.modules:2.4.0.redhat-630187] 
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:124)[156:org.apache.karaf.shell.ssh:2.4.0.redhat-630187] 
Caused by: io.fabric8.api.FabricException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /fabric/configs/containers/mycontainer01 
        at io.fabric8.api.FabricException.launderThrowable(FabricException.java:43) 
        at io.fabric8.service.ZkDataStoreImpl.setContainerProfiles(ZkDataStoreImpl.java:466) 
        at io.fabric8.internal.ZooKeeperClusterServiceImpl.cleanUpEnsembleProfiles(ZooKeeperClusterServiceImpl.java:521) 
        at io.fabric8.internal.ZooKeeperClusterServiceImpl.createCluster(ZooKeeperClusterServiceImpl.java:391) 
        ... 24 more 
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /fabric/configs/containers/mycontainer01 
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:111) 
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) 
        at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1212) 
        at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:302) 
        at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:291) 
        at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107) 
        at org.apache.curator.framework.imps.GetDataBuilderImpl.pathInForeground(GetDataBuilderImpl.java:287) 
        at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:279) 
        at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:41) 
        at io.fabric8.zookeeper.utils.ZooKeeperUtils.getStringData(ZooKeeperUtils.java:187) 
        at io.fabric8.zookeeper.utils.ZooKeeperUtils.getStringData(ZooKeeperUtils.java:183) 
        at io.fabric8.service.ZkDataStoreImpl.setContainerProfiles(ZkDataStoreImpl.java:451)

Environment

  • Red Hat JBoss Fuse
    • 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In