2019-03-26 02:36:53,930 [coreLoadExecutor-6-thread-1] ERROR o.a.s.c.CoreContainer - Error creating core [xwiki]: Index dir ‘/usr/local/xwiki/data/solr/xwiki/data/index/’ of core ‘xwiki’ is already locked. The most likely cause is another Solr server (or another solr core in this server) also configured to use this directory; other possible causes may be specific to lockType: native
org.apache.solr.common.SolrException: Index dir ‘/usr/local/xwiki/data/solr/xwiki/data/index/’ of core ‘xwiki’ is already locked. The most likely cause is another Solr server (or another solr core in this server) also configured to use this directory; other possible causes may be specific to lockType: native
at org.apache.solr.core.SolrCore.(SolrCore.java:952)
at org.apache.solr.core.SolrCore.(SolrCore.java:816)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:890)
at org.apache.solr.core.CoreContainer.lambda$load$3(CoreContainer.java:542)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
断电以后 第二天WIKI无法启动 请帮忙看看是什么问题
已经恢复正常
你好,这种情况目前有两种解决方法:
- 有两个wiki实例同时绑定在一个卷上,导致xwiki卷的solr被锁住。在deployment找到xwiki的实例,停掉一个重启就好了。
- 有一个实例,pod启动一直卡住了。备份卷data文件夹,然后删掉solr文件,重启pod就好了。