Upgrading JIRA subversion plugin fails due to subversion indexes

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Shutdown JIRA
  2. Remove the atlassian-subversion-revisions directory from jira-home\caches\indexes\plugins
    1. Make sure to delete the actual atlassian-subversion-revisions directory and not just its content
    2. Check that the JIRA user has write access to the JIRA home directory
  3. Start JIRA
  4. Reindex your JIRA just to confirm whether the indexes has been properly rebuilt.

Last modified on Mar 30, 2016

Was this helpful?

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