• Severity 3 - Minor

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? 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.

            [AI-420] Confluence Dashboard doesn't get updated

            Indeed, the rebuild does not fix it once and for all. Unless I do it everyday... I'm going to rebuild the index from scratch then.

            Jean-Charles added a comment - Indeed, the rebuild does not fix it once and for all. Unless I do it everyday... I'm going to rebuild the index from scratch then.

            Update : @jochem.berends approach worked ... thx!

            @Jean-Charles : manually rebuilding index was a temporary solution : all changes/added content after the manual rebuild was stuck again in the content queue

            Loïc Dewerchin added a comment - Update : @jochem.berends approach worked ... thx! @Jean-Charles : manually rebuilding index was a temporary solution : all changes/added content after the manual rebuild was stuck again in the content queue

            We had the same issues, search function did not work, and dashboard not updated
            I only had to go to Administration in General configuration, select Content indexing and press Rebuild.
            It also fixed a problem with users managing, I could not enable a user or add a user to a group, after rebuild I can.
            This is the magic trick of Confluence !

            Jean-Charles added a comment - We had the same issues, search function did not work, and dashboard not updated I only had to go to Administration in General configuration, select Content indexing and press Rebuild. It also fixed a problem with users managing, I could not enable a user or add a user to a group, after rebuild I can. This is the magic trick of Confluence !

            Thx for the update ,
            we were going to do the same thing tonight good to know it worked in your case!

            Did you follow this KB article? https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indexes+from+Scratch

            Loïc Dewerchin added a comment - Thx for the update , we were going to do the same thing tonight good to know it worked in your case! Did you follow this KB article? https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indexes+from+Scratch

            @loic.dewerchin - we resolved the issue finally ourselves by the following steps

            1. shut down confluence
            2. removed <conf-home>/index and .../journal
            3. restarted
            4. rebuild the index
            5. reflush all caches (advanced mode)
            

            Jochem Berends added a comment - @loic.dewerchin - we resolved the issue finally ourselves by the following steps 1. shut down confluence 2. removed <conf-home>/index and .../journal 3. restarted 4. rebuild the index 5. reflush all caches (advanced mode)

            Loïc Dewerchin added a comment - - edited

            Have the exact same issue and conditions as @Jochem Berends describes.
            We are on 5.7.3...

            When checking the content indexing tab , the queue contents page shows a full queue and the date of the last run, is idd not recent ...

            This is very inconvenient, because not only the Dashboard does not update , searches do not find the latest documents... This has impact on a number of features that depend on search : moving of pages, mentioning other pages in docs, etc....

            Loïc Dewerchin added a comment - - edited Have the exact same issue and conditions as @Jochem Berends describes. We are on 5.7.3... When checking the content indexing tab , the queue contents page shows a full queue and the date of the last run, is idd not recent ... This is very inconvenient, because not only the Dashboard does not update , searches do not find the latest documents... This has impact on a number of features that depend on search : moving of pages, mentioning other pages in docs, etc....

            We are on 5.7.1 and experience the same issue. Disk space plenty (30 GB left of storage). The dashboard only updates after re-indexing and flushing of all caches. Does not continue to update. write.lock file is not found in /var/atlassian/application-data/confluence/index/ or ..../index/edge.

            Jochem Berends added a comment - We are on 5.7.1 and experience the same issue. Disk space plenty (30 GB left of storage). The dashboard only updates after re-indexing and flushing of all caches. Does not continue to update. write.lock file is not found in /var/atlassian/application-data/confluence/index/ or ..../index/edge.

            We are on 5.6.3 and we still have this issue.
            The dashboard is never updated

            Jean-Charles added a comment - We are on 5.6.3 and we still have this issue. The dashboard is never updated

            mdesign added a comment -

            We are on 5.6.4 and have the the same issue as @Nick

            mdesign added a comment - We are on 5.6.4 and have the the same issue as @Nick

            We are on 5.4.3. Our user submitted this ticket:

            While entering a work log, I noticed that the "All Updates" tab is not updating. The latest date displayed is May 3rd.
            The last time this occurred, I believe Confluence had to be told to manually index.

            I reindexed first. The All Updates tab updated, so we closed the ticket. Shortly afterwards, we realized the reindex forced the All Updates to update once but not again.

            The /index directory has no write.lock file to delete.

            Nicholas DeMarco added a comment - We are on 5.4.3. Our user submitted this ticket: While entering a work log, I noticed that the "All Updates" tab is not updating. The latest date displayed is May 3rd. The last time this occurred, I believe Confluence had to be told to manually index. I reindexed first. The All Updates tab updated, so we closed the ticket. Shortly afterwards, we realized the reindex forced the All Updates to update once but not again. The /index directory has no write.lock file to delete.

              shaffenden Steve Haffenden (Inactive)
              hsuhailah Hanis Suhailah (Inactive)
              Affected customers:
              36 This affects my team
              Watchers:
              53 Start watching this issue

                Created:
                Updated:
                Resolved: