Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-39999

Lazy lucene lock aquisition causing corruption in Lucene Term Dictionary (*_Lucene41_0.tim). Error is '..LuceneException: java.io.IOException: null: NIOFSIndexInput..' which displays instead of the dashboard.

    XMLWordPrintable

Details

    Description

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

      When trying to view the dashboard, only an error displays:

      Error occurred during template rendering: Invocation of method 'getRenderedParam' in class com.atlassian.plugin.web.model.DefaultWebParam threw exception com.atlassian.bonnie.LuceneException: java.io.IOException: null: NIOFSIndexInput(path="/data/jirastudio/confluence/home/index/_1sns_Lucene41_0.tim") at template/includes/menu-macros.vm[line 67, column 50]. Contact your administrator for assistance.

      This only occurs on dashboard.action, other pages can be viewed successfully.

      The filename _1sns_Lucene41_0.tim varies, as it is the Lucene Term Dictionary and the filename is generated uniquely.

      May display a similar error instead (LockReleaseFailedException):

      Error occurred during template rendering: Invocation of method 'getRenderedParam' in class com.atlassian.plugin.web.model.DefaultWebParam threw exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLuceneConnection' defined in class path resource [indexingSubsystemContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.bonnie.LuceneConnection]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockReleaseFailedException: Cannot forcefully unlock a NativeFSLock which is held by another indexer component: /data/jirastudio/confluence/home/index/write.lock at template/includes/menu-macros.vm[line 67, column 50]. Contact your administrator for assistance.

      NB: This bug report relates to occurrences of this issue caused by lazily aquiring the lucene lock after startup. This issue may also occur after Space import, which is being tracked in CONF-39517.

      Workaround

      Restart the Confluence instance. If this doesn't resolve the issue, only then try recreating the indexes from scratch. The issue can recur despite a re-index.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: