Re-index in Jira fails due to IndexFormatTooOldException

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

After performing an upgrade to JIRA 8 or newer, the re-index fails and the following appears in the atlassian-jira.log

JiraTaskExectionThread-2 ERROR admin 918x369x1 w6fhfe 127.0.0.1 /secure/admin/jira/IndexReIndex!reindex.jspa [c.a.j.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. 
Indexer: SharedEntityIndexManager: 
paths: [] com.atlassian.jira.util.RuntimeIOException: org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported 
(resource BufferedChecksumIndexInput(MMapIndexInput(path="/opt/data/atlassian/application-data/jira/caches/indexesV1/entities/searchrequest/segments_9t"))): -11 
(needs to be between 1071082519 and 1071082519). This version of Lucene only supports indexes created with release 6.0 and later.
at com.atlassian.jira.index.DefaultIndexEngine.clean(DefaultIndexEngine.java:132)
at com.atlassian.jira.index.DefaultManager.deleteIndexDirectory(DefaultManager.java:40)

Cause

In JIRA 8 and newer the indexing mechanism (Lucene) was upgraded (as detailed on our release notes), aiming improvements on application performance. This causes the indexes to need to be rebuilt from the scratch.

Resolution

Delete the current indexes and rebuilt everything using a lock JIRA and reindex operation by following the procedure below:

  1. Shutdown JIRA
  2. Delete all the contents from the following folder
    1. In Jira 8: $JIRA_HOME\caches\indexesV1
    2. In Jira 9: $JIRA_HOME\caches\indexesV2

  3. Restart JIRA
  4. Perform a full re-index

Last modified on Feb 7, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.