[opencms-dev] Solr spellcheck exception on startup

Paul-Inge Flakstad flakstad at npolar.no
Fri Apr 24 13:55:18 CEST 2015


Hi Christoph,

Thanks for your hints, but I don't think it's any of those. I'm not doing any shell stuff, and as for the long build time, it's not likely in this case (unless it's re-built on Tomcat restart).

Anyway, thanks again, and have a nice weekend :)

Cheers,
Paul

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christoph Kukulies
Sent: 24. april 2015 12:44
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Solr spellcheck exception on startup

Hi,

I saw this also. You aren't accidently running cmsshell.sh ?
At least with me here this locking caused cmsshell.sh
to hang and it was so far the showstopper to automate anything using cmsshell.sh.

It could also be (vague idea) that solr takes quite a log time building the index and
while it is building it, the index is locked of course.


Am 24.04.2015 um 11:50 schrieb Paul-Inge Flakstad:
Hi,

During startup, I'm seeing this exception in opencms.log. Should I be concerned?

Cheers,
Paul

24 Apr 2015 11:47:47,732 ERROR [ org.apache.solr.core.SolrCore: 481] [spellcheck] Solr index directory '/usr/share/tomcat7/webapps/opencms/WEB-INF/spellcheck/data/index/' is locked.  Throwing exception
24 Apr 2015 11:47:47,735 ERROR [apache.solr.core.CoreContainer:1449] Unable to create core: spellcheck
org.apache.solr.common.SolrException: Index locked for write for core spellcheck
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:821)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
        at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
        at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
        at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Index locked for write for core spellcheck
        at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:484)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:745)
        ... 11 more
24 Apr 2015 11:47:47,736 ERROR [ache.solr.common.SolrException: 119] null:org.apache.solr.common.SolrException: Unable to create core: spellcheck
        at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:1450)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:993)
        at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
        at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Index locked for write for core spellcheck
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:821)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
        at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
        ... 8 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Index locked for write for core spellcheck
        at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:484)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:745)
        ... 11 more



--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150424/e9806c06/attachment.htm>


More information about the opencms-dev mailing list