subversion plugin: Lock obtain timed out

Hello,

I've just migrated to jira 6.2.3 and subversion plugin 1.0 (was 0.10.14 but they aligned version numbers) ...

Since the upgrade we are getting tons of this error message, despite svn linking seems to be fine. My guess is that is caused by a permission-related issue, when trying to create the ".lock" file,

any thoughts on this?

2014-07-16 12:42:38,739 QuartzScheduler_Worker-1 WARN ServiceRunner    com.atlassian.jira.plugin.ext.subversion.revisions.scheduling.UpdateIndexMonitorImpl:job [ext.subversion.revisions.RevisionIndexer] Unable to index repository 'Nth_repo'
java.io.IOException: Problem with path E:\Services\jira6_home\caches\indexes\plugins\atlassian-subversion-revisions: Lock obtain timed out: SimpleFSLock@JIRA_HOME\caches\indexes\plugins\atlassian-subversion-revisions\write.lock
	at com.atlassian.jira.plugin.ext.subversion.revisions.DefaultLuceneIndexAccessor.getIndexWriter(DefaultLuceneIndexAccessor.java:48)
	at com.atlassian.jira.plugin.ext.subversion.revisions.RevisionIndexer.updateIndex(RevisionIndexer.java:266)
	at com.atlassian.jira.plugin.ext.subversion.revisions.scheduling.UpdateIndexTask.execute(UpdateIndexTask.java:34)
	at com.atlassian.sal.jira.scheduling.JiraPluginSchedulerService.run(JiraPluginSchedulerService.java:94)
	at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
	at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@JIRA_HOME\caches\indexes\plugins\atlassian-subversion-revisions\write.lock
	at org.apache.lucene.store.Lock.obtain(Lock.java:84)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1115)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:932)
	at com.atlassian.jira.plugin.ext.subversion.revisions.DefaultLuceneIndexAccessor.getIndexWriter(DefaultLuceneIndexAccessor.java:41)
	... 7 more

1 answer

1 accepted

This widget could not be displayed.

I had the same problem under windows. I have resolved it by making the directory JIRA_HOME\caches\indexes\plugins\atlassian-subversion-revisions world writable.

Finally I've disabled the plugin, then granted rw permissions to the plugin\ directory, enabled & full reindexed.

It worked!

I've tried both of these and still no indexes (write.lock) file. :(

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you