Fabric container fails to start due to Git unable to lock index file
Issue
- The Fabric container fails to start and the following error is logged:
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.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_25]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_25]
at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:879)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:846)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:785)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:572)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2006)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1004)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1433)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1143)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:815)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:785)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:572)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2006)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1004)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1433)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1143)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:815)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:874)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:931)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:895)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)[67:org.apache.felix.scr:1.8.0.redhat-610378]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4666)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.Felix.registerService(Felix.java:3674)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:347)[org.apache.felix.framework-4.0.3.redhat-610378.jar:]
at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:346)[100:org.ops4j.pax.web.pax-web-runtime:3.0.6]
at org.ops4j.pax.web.service.internal.Activator$2.run(Activator.java:277)[100:org.ops4j.pax.web.pax-web-runtime:3.0.6]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_25]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_25]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Stashing local changes did not successfully complete
at org.eclipse.jgit.api.StashCreateCommand.call(StashCreateCommand.java:335)
at io.fabric8.git.internal.GitDataStore.gitOperation(GitDataStore.java:883)
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.GitDataStore.forceGetVersions(GitDataStore.java:344)
at io.fabric8.git.internal.GitDataStore.activateInternal(GitDataStore.java:157)
... 66 more
Caused by: org.eclipse.jgit.errors.LockFailedException: Cannot lock /home/fuse/containers/meshBrokerA1/fabric8-karaf-1.0.0.redhat-378/data/git/local/fabric/.git/index
at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:224)
at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:301)
at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:267)
at org.eclipse.jgit.lib.Repository.lockDirCache(Repository.java:1049)
at org.eclipse.jgit.api.StashCreateCommand.call(StashCreateCommand.java:225)
... 71 more
Environment
- JBoss Fuse 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.