Upgrading JIRA subversion plugin fails due to subversion indexes
Symptoms
Upon upgrading the JIRA Subversion plugin, the Subversion Commits tab does not populate with commits
The following appears in the atlassian-jira.log
:
2012-08-28 07:51:54,292 QuartzWorker-0 ERROR ServiceRunner Subversion Revision Indexing Service [ext.subversion.revisions.RevisionIndexService] Error indexing changes: com.atlassian.jira.issue.index.IndexException: Problem with path jira-home\caches\indexes\plugins\atlassian-subversion-revisions: no segments* file found in org.apache.lucene.store.MMapDirectory@\jira-home\caches\indexes\plugins\atlassian-subversion-revisions lockFactory=org.apache.lucene.store.SimpleFSLockFactory@62ff5057: files: []
com.atlassian.jira.issue.index.IndexException: Problem with path \jira-home\caches\indexes\plugins\atlassian-subversion-revisions: no segments* file found in org.apache.lucene.store.MMapDirectory@C:\J\caches\indexes\plugins\atlassian-subversion-revisions lockFactory=org.apache.lucene.store.SimpleFSLockFactory@62ff5057: files: []
at com.atlassian.jira.plugin.ext.subversion.revisions.RevisionIndexer.updateLastRevisionIndexed(RevisionIndexer.java:391)
at com.atlassian.jira.plugin.ext.subversion.revisions.RevisionIndexer.updateIndex(RevisionIndexer.java:258)
at com.atlassian.jira.plugin.ext.subversion.revisions.RevisionIndexService.run(RevisionIndexService.java:32)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.MMapDirectory@jira-home\caches\indexes\plugins\atlassian-subversion-revisions lockFactory=org.apache.lucene.store.SimpleFSLockFactory@62ff5057: files: []
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:711)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:428)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:274)
at com.atlassian.jira.plugin.ext.subversion.revisions.RevisionIndexer.updateLastRevisionIndexed(RevisionIndexer.java:386)
Cause
The subversion indexes need to be rebuilt upon upgrading the plugin.
Resolution
- Shutdown JIRA
- Remove the
atlassian-subversion-revisions
directory fromjira-home\caches\indexes\plugins
- Make sure to delete the actual atlassian-subversion-revisions directory and not just its content
- Check that the JIRA user has write access to the JIRA home directory
- Start JIRA
- Reindex your JIRA just to confirm whether the indexes has been properly rebuilt.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.