org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@D:\data\index\com.srccodes.example.hibernate.Contact\write.lock


Solutions on the web126

Solution icon of stackoverflow
Lock obtain timed out: NativeFSLock@D:\data\index\com.srccodes.example.hibernate.Contact\write.lock

Solution icon of web
via nabble.com by Unknown author, 1 year ago
Lock obtain timed out: SimpleFSLock@target\index\com.pro.appfuse.model.Projects\write.lock

Solution icon of googlegroups
via Google Groups by Nason Bimbe, 1 month ago
Lock obtain timed out: NativeFSLock@./solr/data/index/write.lock

Solution icon of github
via GitHub by robfromca
, 10 months ago
Lock obtain timed out: NativeFSLock@/xxxxxxxx/data/site/index/write.lock

Solution icon of web
via blogspot.com by Unknown author, 1 year ago
Lock obtain timed out: NativeFSLock@/path/to/index/com.mypackage.MyEntity/write.lock

Solution icon of github
Lock obtain timed out: NativeFSLock@/data/biocache-reindex/solr-create/biocache-thread-2/data/index/write.lock

Solution icon of web
Lock obtain timed out: NativeFSLock@D:\opt\xxxx_index\place\write.lock

Solution icon of web
Lock obtain timed out: NativeFSLock@D:\opt\xxxx_index\place\write.lock

Solution icon of stackoverflow
Lock obtain timed out: NativeFSLock@/etc/solr/core1/data/index/write.lock: java.io.FileNotFoundException: /etc/solr/core1/data/index/write.lock (Permission denied)

Solution icon of stackoverflow
via Stack Overflow by Donald Plummer
, 1 year ago
Lock obtain timed out: NativeFSLock@/opt/solr/solr/examplestore/data/index/write.lock

Stack trace

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@D:\data\index\com.srccodes.example.hibernate.Contact\write.lock
	at org.apache.lucene.store.Lock.obtain(Lock.java:84)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1108)
	at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:127)
	at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:102)
	at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:119)
	at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:99)
	at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago