Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Contact Support
GitKraken Status  

Jira index error IndexNotFoundException – no segments* file found

Problem

Some or all repositories are not indexing which may be caused by a system or disk failure.

Diagnosis

Jira admins will see a message similar to the one below in the Jira /application-logs/atlassian-jira.log:

Error:

2019/05/08 18:29:06 org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@E:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\plugins\jira-git-revisions lockFactory=org.apache.lucene.store.NativeFSLockFactory@4fd7bb9a: files: []
java.lang.RuntimeException: org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@E:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\plugins\jira-git-revisions lockFactory=org.apache.lucene.store.NativeFSLockFactory@4fd7bb9a: files: []
at com.bigbrassband.jira.git.jiraservices.compatibility.CompatibilityLuceneService.openIndexReader(CompatibilityLuceneService.java:299)
at com.bigbrassband.jira.git.services.indexer.revisions.DefaultLuceneIndexAccessor.getIndexReader(DefaultLuceneIndexAccessor.java:75)
at com.bigbrassband.jira.git.services.indexer.revisions.IndexManagerImpl.getIndexReader(IndexManagerImpl.java:132)
at com.bigbrassband.jira.git.services.indexer.revisions.RevisionsIndexManagerImpl.updateBranchIndex(RevisionsIndexManagerImpl.java:933)
at com.bigbrassband.jira.git.services.indexer.revisions.GitPluginIndexManagerImpl.updateIndex(GitPluginIndexManagerImpl.java:429)
at com.bigbrassband.jira.git.services.indexer.revisions.RevisionIndexerImpl$1.doRun(RevisionIndexerImpl.java:151)
at com.bigbrassband.jira.git.services.indexer.revisions.QueueEntry.run(QueueEntry.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@E:\Program Files\Atlassian\Application Data\JIRAcaches\indexes\plugins\jira-git-revisions lockFactory=org.apache.lucene.store.NativeFSLockFactory@4fd7bb9a: files: []
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:670)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:79)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)
at sun.reflect.GeneratedMethodAccessor1234.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.bigbrassband.jira.git.jiraservices.compatibility.CompatibilityLuceneService.openIndexReader(CompatibilityLuceneService.java:287)
... 11 more

Solution

Perform a Jira System Full re-index option via Administration ➜ System ➜ Advanced ➜ Indexing.

For more information – see Atlassian help article about Search indexing.

Contact Us
If you still have a question – reach out to our Support Desk or email us at [email protected].

 

More articles about troubleshooting, workarounds and solutions

Why I am getting the error, “git-upload-pack not permitted”?

Avoid OutOfMemory exceptions by configuring or memory allocation with Jira to accommodate large repositories

Cannot auto-deploy some tracked repositories: Specified origin is incorrect or not supported

Connection Reset when Accessing the Database

“Dangerous use of multiple connections” error on local database

Duplicate entry 0 for key PRIMARY exceptions in log

Error while reindexing – Java heap space / Object too large, rejecting the pack

Error creating git branches and also using NFS

Fix performance issues for nested cloned repositories with enabled Git Service Permissions mode

Fixing reindex issues using Indexing Queue Viewer

Gitolite integration: Why the Git integration app not see the master branch?

Health Check: Database Collation

Indexing error – Too many open files

Installation fails when installing manually

*Jira index error: IndexNotFoundException: no segments file found** (this page)

Malformed input or input contains unmappable characters

Personal access token failing Azure DevOps integration with Not Authorized error

Problems with shared home on Azure Storage

Pull request index error: org.json.JSONException

Repositories missing from Azure DevOps integration

“Service proxy has been destroyed” exceptions in log

SQLException ‘Incorrect string value’ in merge requests

SSH key file format is invalid

TFS – Not authorized exception when Jira works thru proxy

Unexpected exception parsing XML document from URL error in log

Why don’t I see the Create Branch or Pull Request features?

Your token has not been granted the required scopes

Have feedback about this article? Did we miss something? Let us know!
On this page