Hi, It seems that the framework won't to be sync, which is disallowed.
cluster:sync force the sync anyway. Does it mean that you have two different version of Karaf between the nodes ? Regards JB On 03/05/2019 10:41, [email protected] wrote: > Currently, I have two cellar nodes, with the same (almost) configuration. The > only difference between them is that on one node, I have stopped the > producer, while on the other I have stopped the consumer. > > For ease, the producer node would be Node A, and the consumer node would be > Node B. By default I have set the sync policy to disabled, and both the nodes > are in the same group `workers` > > default.bundle.sync=disabled > default.config.sync=disabled > default.feature.sync=disabled > default.obr.urls.sync=disabled > default.balanced.servlet.sync=disabled > > The sync policy of group workers is inherited from the default group, thus > all being disabled. > > I have installed one of my bundles on Node A (by copying to the deploy > directory). After the bundle is successfully started on Node A, I run: > >> cluster:sync --group workers -b node [the consumer for this node is OFF, so >> the pull should not affect it] > > On Node B, I do the same as: (not sure, if this is the right approach, as I > do not have an artifact repository right now) > >> cluster:sync --group workers -b node > > with this, I get the following error repeatedly > > INFO [pool-11-thread-1] [192.168.99.1]:5702 [cellar] [3.9.1] > [192.168.99.1]:5702 is STARTED > 10:31:29.613 INFO [pool-11-thread-1] Registering commands for bundle > org.apache.karaf.cellar.core/4.1.2 > 10:31:29.880 INFO [pool-11-thread-1] Registering commands for bundle > org.apache.karaf.cellar.bundle/4.1.2 > 10:31:29.914 INFO [pool-11-thread-1] Registering commands for bundle > org.apache.karaf.cellar.features/4.1.2 > 10:31:29.929 WARN [pool-7-thread-4] Can't uninstall > org.apache.felix.framework/5.6.10 > org.osgi.framework.BundleException: Cannot uninstall the system bundle. > at org.apache.felix.framework.Felix.uninstall(Felix.java:1097) ~[?:?] > at > org.apache.karaf.cellar.bundle.BundleSynchronizer.pull(BundleSynchronizer.java:194) > [63:org.apache.karaf.cellar.bundle:4.1.2] > at > org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:103) > [63:org.apache.karaf.cellar.bundle:4.1.2] > at > org.apache.karaf.cellar.bundle.BundleSynchronizer.init(BundleSynchronizer.java:67) > [63:org.apache.karaf.cellar.bundle:4.1.2] > at > org.apache.karaf.cellar.bundle.internal.osgi.Activator.doStart(Activator.java:109) > [63:org.apache.karaf.cellar.bundle:4.1.2] > at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:242) > [63:org.apache.karaf.cellar.bundle:4.1.2] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [?:?] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [?:?] > at java.lang.Thread.run(Thread.java:745) [?:?] > > I do not understand why is it even trying to uninstall the system bundle. > > Karaf Version: 4.2.0 > Cellar Version: 4.1.2 > > Any info on this would be very helpful. > > Regards, > Cooshal. > > > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
