org.apache.lucene.store.LockObtainFailedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ice-facelets.jar causes exception
    via by petar_b,
  • Thinking in java | Programming help
    via by Unknown author,
  • We are experiencing an issue with EMH, in that it has created several duplicate Jira issues. From what I can gather on the log files, Worker-1 seems to have created a batch of seven issues from seven separate emails as expected. I have also gathered, that after creating each issue, the issues are re indexed and there is a processing summary: 2011-11-30 17:35:21,959 JiraQuartzScheduler_Worker-1 INFO [service.util.handler.EMHIssueHandler] Reindexing issue after modification: SHEF-176210 2011-11-30 17:35:22,037 JiraQuartzScheduler_Worker-1 INFO [service.util.handler.EMHIssueHandler] comment was found: false 2011-11-30 17:35:22,037 JiraQuartzScheduler_Worker-1 INFO [service.util.handler.EMHIssueHandler] Issue Processing Summary: Created 1 [SHEF-176210], Updated 0 [], Commented 0 []. Rejections required: 0 However, on the seventh issue (that is created successfully) there is no re indexing or processing summary. The handler then proceeds to process the same seven emails again, exceptioning on every one right after the reindexing stage: 2011-11-30 18:06:37,849 JiraQuartzScheduler_Worker-3 INFO [service.util.handler.EMHIssueHandler] Reindexing issue after modification: SHEF-176212 2011-11-30 18:06:38,849 JiraQuartzScheduler_Worker-3 ERROR [service.util.handler.EMHIssueHandler] Unhandled Exception processing issue (bug): com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock 2011-11-30 18:06:38,849 JiraQuartzScheduler_Worker-3 ERROR [service.util.handler.EMHIssueHandler] Rethrowing exception: Unhandled Exception processing issue (bug): com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock javax.mail.MessagingException: Unhandled Exception processing issue (bug): com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock; nested exception is: com.atlassian.jira.issue.index.IndexException: com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.runProcessor(EMHIssueHandler.java:414) at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.handleMessage(EMHIssueHandler.java:121) at com.dolby.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:69) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:197) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:56) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: com.atlassian.jira.issue.index.IndexException: com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:299) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:252) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssueObjects(DefaultIndexManager.java:260) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndex(DefaultIndexManager.java:265) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy31.reIndex(Unknown Source) at com.dolby.atlassian.jira.service.util.handler.EMHIssueHandler.runProcessor(EMHIssueHandler.java:326) ... 7 more Caused by: com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock at com.atlassian.bonnie.ConcurrentLuceneConnection.constructIndexWriter(ConcurrentLuceneConnection.java:551) at com.atlassian.bonnie.ConcurrentLuceneConnection.withWriter(ConcurrentLuceneConnection.java:295) at com.atlassian.jira.issue.index.SingleThreadedIssueIndexer.reindexIssues(SingleThreadedIssueIndexer.java:247) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssues(DefaultIndexManager.java:294) ... 18 more Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:70) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:598) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:410) at com.atlassian.bonnie.ConcurrentLuceneConnection.constructIndexWriter(ConcurrentLuceneConnection.java:531) ... 21 more 2011-11-30 18:06:38,849 JiraQuartzScheduler_Worker-3 ERROR [service.util.handler.CreateOrCommentHandler] Unandled MessagingException: Unhandled Exception processing issue (bug): com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@E:\JiraHRP3135_Home\Caches\Indexes\issues\write.lock 2011-11-30 18:06:38,865 JiraQuartzScheduler_Worker-3 INFO [service.util.handler.CreateOrCommentHandler] returning deleteMessage: false 2011-11-30 18:06:39,130 JiraQuartzScheduler_Worker-3 DEBUG [service.util.handler.CreateOrCommentHandler] JEMH v[0.9.2.11] CreateOrCommentHandler.handleMessage() 2011-11-30 18:06:39,130 JiraQuartzScheduler_Worker-3 INFO [service.util.handler.WhiteGreyBlackListingHelper] isValidAfter B/W listing: true 2011-11-30 18:06:39,130 JiraQuartzScheduler_Worker-3 INFO [service.util.handler.AbstractMessageHandler] com.dolby.atlassian.jira.service.util.handler.WhiteGreyBlackListingHelper$FilterResult@39e8ddf5 Please could someone advise on why this is happening? Jira version is 3.13.5
    via by Christopher Smith,
  • Sunspot Solr core initialization failure
    via Stack Overflow by pthamm
    ,
    • org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Documents and Settings\Administrator\liferay\lucene\0\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:70) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:598) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:410) at com.liferay.portal.lucene.IndexWriterFactory.getWriter(IndexWriterFactory.java:188) at com.liferay.portal.lucene.LuceneUtil.getWriter(LuceneUtil.java:338) at com.liferay.portal.lucene.LuceneUtil.getWriter(LuceneUtil.java:332) at com.liferay.portal.plugin.PluginPackageIndexer.addPluginPackage(PluginPackageIndexer.java:76) at com.liferay.portal.plugin.PluginPackageIndexer.updatePluginPackage(PluginPackageIndexer.java:221) at com.liferay.portal.plugin.PluginPackageUtil._indexPluginPackage(PluginPackageUtil.java:494) at com.liferay.portal.plugin.PluginPackageUtil._parseRepositoryXml(PluginPackageUtil.java:784) at com.liferay.portal.plugin.PluginPackageUtil._loadRepository(PluginPackageUtil.java:684) at com.liferay.portal.plugin.PluginPackageUtil._getRepository(PluginPackageUtil.java:430) at com.liferay.portal.plugin.PluginPackageUtil._getAvailablePluginPackages(PluginPackageUtil.java:343) at com.liferay.portal.plugin.PluginPackageUtil._unregisterInstalledPluginPackage(PluginPackageUtil.java:1290) at com.liferay.portal.plugin.PluginPackageUtil.unregisterInstalledPluginPackage(PluginPackageUtil.java:249) at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeUndeploy(PluginPackageHotDeployListener.java:219) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireUndeployEvent(HotDeployUtil.java:104) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireUndeployEvent(HotDeployUtil.java:46) at com.liferay.portal.kernel.servlet.PortletContextListener.contextDestroyed(PortletContextListener.java:97) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4516) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4380) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,