lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nabil rabhi <nabil.rab...@gmail.com>
Subject Lock error when indexing with curl
Date Mon, 15 Feb 2010 14:56:10 GMT
when posting documents to solr using curl, I get the following error:

Posting file File.xml to http://localhost:8983/solr/update/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>Lock obtain timed out:
NativeFSLock@./solr/data/index/lucene-bd553072dd77e805bcb4e83a6d8ca389-write.lock:
java.io.FileNotFoundException:
./solr/data/index/lucene-bd553072dd77e805bcb4e83a6d8ca389-write.lock
(Permission denied)

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
NativeFSLock@./solr/data/index/lucene-bd553072dd77e805bcb4e83a6d8ca389-write.lock:
java.io.FileNotFoundException:
./solr/data/index/lucene-bd553072dd77e805bcb4e83a6d8ca389-write.lock
(Permission denied)
    at org.apache.lucene.store.Lock.obtain(Lock.java:85)
    at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1545)
    at
org.apache.lucene.index.IndexWriter.&lt;init&gt;(IndexWriter.java:1402)
    at
org.apache.solr.update.SolrIndexWriter.&lt;init&gt;(SolrIndexWriter.java:190)
    at
org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:98)
    at
org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:173)
    at
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:220)
    at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
    at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
    at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
    at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
    at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
    at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
    at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:285)
    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
    at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
    at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.io.FileNotFoundException:
./solr/data/index/lucene-bd553072dd77e805bcb4e83a6d8ca389-write.lock
(Permission denied)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.&lt;init&gt;(RandomAccessFile.java:212)
    at
org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:219)
    at org.apache.lucene.store.Lock.obtain(Lock.java:99)
    ... 31 more

any ideas?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message