Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-22981

Confluence Dashboard doesn't get updated

    XMLWordPrintable

    Details

      Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Confluence Dashboard doesn't get updated even after a re-index/re-index from scratch.

      The following appears in the atlassian-confluence.log:

       
      Job (DEFAULT.IndexQueueFlusher threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.atlassian.bonnie.LuceneException: com.atlassian.bonnie.LuceneException: Couldn't open writer on directory: org.apache.lucene.store.SimpleFSDirectory@D:\confluence-home\index lockFactory=org.apache.lucene.store.SimpleFSLockFactory@1630667]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:210)
      	at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:14)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      Caused by: com.atlassian.bonnie.LuceneException: com.atlassian.bonnie.LuceneException: Couldn't open writer on directory: org.apache.lucene.store.SimpleFSDirectory@D:\confluence-home\index lockFactory=org.apache.lucene.store.SimpleFSLockFactory@1630667
      	at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:409)
      	at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:161)
      	at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:128)
      	at sun.reflect.GeneratedMethodAccessor826.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy39.flushQueue(Unknown Source)
      	at com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:29)
      	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:63)
      	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:46)
      	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
      	... 2 more
      Caused by: com.atlassian.bonnie.LuceneException: Couldn't open writer on directory: org.apache.lucene.store.SimpleFSDirectory@D:\confluence-home\index lockFactory=org.apache.lucene.store.SimpleFSLockFactory@1630667
      	at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:346)
      	at com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:20)
      	at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:361)
      	at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:405)
      	... 19 more
      Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\confluence-home\index\write.lock
      	at org.apache.lucene.store.Lock.obtain(Lock.java:85)
      	at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1562)
      	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1118)
      	at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:327)
      	... 22 more
      

      Also, this may happened if you have an insufficient disk space. One of the contributors to this is scheduled daily backup, which can turn out to be large.

      Workaround

      Delete write.lock from <confluence-home>/index/. If that only helps temporarily, check your Confluence home directory for any insufficient disk space. Please also refer to this KB.

      Update for Confluence 5.3.1:
      The write.lock file is now removed from <confluence-home>/index/ and <confluence-home>/index/edge/ during a restart. Please, let us know if you are still experiencing this problem in 5.3.1 and newer versions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shaffenden Steve Haffenden (Inactive)
              Reporter:
              hsuhailah Hanis Suhailah (Inactive)
              Votes:
              36 Vote for this issue
              Watchers:
              52 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: