LockObtainFailedException

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

LockObtainFailedException

Hugo <Nabble>
Administrator
If you push changes to a site that has open lucene connections you will get the error below.
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/Users/hugo/work/luanhost/sites/photo.rubygoodies.com/site/private/local/lucene/write.lock
	luan:lucene/Lucene line 21 in call to 'LuceneIndex.new'
	site:/private/lib/Db line 5 in call to 'Lucene.index'
	site:/private/lib/User line 1 in call to 'require'
	site:/private/query.html line 5 in call to 'require'
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/Users/hugo/work/luanhost/sites/photo.rubygoodies.com/site/private/local/lucene/write.lock
	at org.apache.lucene.store.Lock.obtain(Lock.java:89)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:724)
	at luan.modules.lucene.LuceneIndex.<init>(LuceneIndex.java:56)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
	at luan.LuanJavaFunction$JavaMethod$2.invoke(LuanJavaFunction.java:556)
	at luan.LuanJavaFunction.doCall(LuanJavaFunction.java:88)
	at luan.LuanJavaFunction.call(LuanJavaFunction.java:73)
	at luan.LuanBit.call(LuanBit.java:39)
	at luan.impl.FnCall.call(FnCall.java:29)
	at luan.impl.FnCall.eval(FnCall.java:23)
	at luan.impl.SetStmt.eval(SetStmt.java:21)
	at luan.impl.Block.eval(Block.java:22)
	at luan.impl.Closure.call(Closure.java:66)
	at luan.impl.Closure.call(Closure.java:42)
	at luan.LuanBit.call(LuanBit.java:39)
	at luan.impl.FnCall.call(FnCall.java:29)
	at luan.impl.FnCall.eval(FnCall.java:23)
	at luan.impl.SetStmt.eval(SetStmt.java:21)
	at luan.impl.Block.eval(Block.java:22)
	at luan.impl.Closure.call(Closure.java:66)
	at luan.impl.Closure.call(Closure.java:42)
	at luan.LuanBit.call(LuanBit.java:35)
	at luan.LuanState.call(LuanState.java:87)
	at luan.modules.PackageLuan.load(PackageLuan.java:54)
	at luan.modules.PackageLuan.require(PackageLuan.java:36)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at luan.LuanJavaFunction$JavaMethod$1.invoke(LuanJavaFunction.java:531)
	at luan.LuanJavaFunction.doCall(LuanJavaFunction.java:88)
	at luan.LuanJavaFunction.call(LuanJavaFunction.java:73)
	at luan.LuanBit.call(LuanBit.java:39)
	at luan.impl.FnCall.call(FnCall.java:29)
	at luan.impl.FnCall.eval(FnCall.java:23)
	at luan.impl.SetStmt.eval(SetStmt.java:21)
	at luan.impl.Block.eval(Block.java:22)
	at luan.impl.Closure.call(Closure.java:66)
	at luan.impl.Closure.call(Closure.java:42)
	at luan.LuanBit.call(LuanBit.java:35)
	at luan.LuanState.call(LuanState.java:87)
	at luan.modules.PackageLuan.load(PackageLuan.java:54)
	at luan.modules.PackageLuan.require(PackageLuan.java:36)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at luan.LuanJavaFunction$JavaMethod$1.invoke(LuanJavaFunction.java:531)
	at luan.LuanJavaFunction.doCall(LuanJavaFunction.java:88)
	at luan.LuanJavaFunction.call(LuanJavaFunction.java:73)
	at luan.LuanBit.call(LuanBit.java:39)
	at luan.impl.FnCall.call(FnCall.java:29)
	at luan.impl.FnCall.eval(FnCall.java:23)
	at luan.impl.SetStmt.eval(SetStmt.java:21)
	at luan.impl.Block.eval(Block.java:22)
	at luan.impl.Closure.call(Closure.java:66)
	at luan.impl.Closure.call(Closure.java:42)
	at luan.LuanBit.call(LuanBit.java:35)
	at luan.LuanState.call(LuanState.java:87)
	at luan.modules.PackageLuan.load(PackageLuan.java:54)
	at luan.modules.http.HttpServicer.service(HttpServicer.java:52)
	at luan.modules.http.LuanHandler.handle(LuanHandler.java:31)
	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
	at luanhost.WebHandler.handle(WebHandler.java:48)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:370)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:745)
Reply | Threaded
Open this post in threaded view
|

Re: LockObtainFailedException

fschmidt
Administrator
fixed in latest rev of luan and luanhost.  You can check it and then I can release it.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: LockObtainFailedException

Hugo <Nabble>
Administrator
It works now, thanks.
Reply | Threaded
Open this post in threaded view
|

Re: LockObtainFailedException

fschmidt
Administrator
I updated LuanHost.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: LockObtainFailedException

Hugo <Nabble>
Administrator
Thanks, closing thread.