Re-index in Jira fails due to IndexFormatTooOldException
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
1
2
3
4
5
6
7
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 in our release notes), aiming for improvements in application performance. This causes the indexes to be rebuilt from the scratch.
Resolution
Delete the current indexes and rebuild everything using a lock JIRA and reindex operation by following the procedure below:
Shutdown JIRA
Delete all the contents from the following folder
In Jira 8: $JIRA_HOME\caches\indexesV1
In Jira 9: $JIRA_HOME\caches\indexesV2
Restart JIRA
Perform a full re-index
Was this helpful?