xwiki 重启报错 Failed to initialize Solr core with id [search] 和 SolrException: Error opening new search

在Linux环境中,XWiki在重启时遇到Solr核心初始化失败和搜索错误。错误日志显示可能是文件被占用或lockType配置问题。删除.lock文件和关闭相关Java线程可暂时解决问题。根本原因与Java的securerandom源有关。提供了三种解决方案,包括修改catalina.sh、java.security文件或强制杀进程。
摘要由CSDN通过智能技术生成

几个主要错误打印如下:

1.org.apache.solr.common.SolrException: Error opening new searcher
2.Caused by: org.apache.solr.common.SolrException: Error opening new searcher
3.Caused by: org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /var/local/xwiki/data/cache/solr/search/index/write.lock
4.ERROR .o.i.DefaultObservationManager - Failed to lookup listeners 
5.Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.DefaultSolr] identified by type [interface org.xwiki.search.solr.Solr] and hint [default]
6.Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.EmbeddedSolr] identified by type [interface org.xwiki.search.solr.Solr] and hint [embedded]
7.Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize the Solr embedded server with home directory set to [/var/local/xwiki/data/store/solr]

详细错误如下:

17-Jun-2022 10:52:07.895 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/8.5.81
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jun 8 2022 21:30:15 UTC
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.81.0
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.10.0-1160.el7.x86_64
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /data/soft/jdk1.8/jre
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_333-b02
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /data/soft/tomcat-8.5.81
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /data/soft/tomcat-8.5.81
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/data/soft/tomcat-8.5.81/conf/logging.properties
17-Jun-2022 10:52:07.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/data/soft/tomcat-8.5.81
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/data/soft/tomcat-8.5.81
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/data/soft/tomcat-8.5.81/temp
17-Jun-2022 10:52:07.897 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
17-Jun-2022 10:52:08.186 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
17-Jun-2022 10:52:08.213 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 938 ms
17-Jun-2022 10:52:08.285 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
17-Jun-2022 10:52:08.285 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.81]
17-Jun-2022 10:52:08.432 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/data/soft/tomcat-8.5.81/webapps/xwiki13.10.6.war]
2022-06-17 10:52:14,081 [localhost-startStop-1] INFO  iPropertiesConfigurationSource - Loading [xwiki.properties] from [file:/data/soft/tomcat-8.5.81/webapps/xwiki13.10.6/WEB-INF/xwiki.properties] 
2022-06-17 10:52:14,277 [localhost-startStop-1] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [/var/local/xwiki/data] 
2022-06-17 10:52:23,372 [localhost-startStop-1] INFO  o.x.s.s.i.EmbeddedSolr         - Starting embedded 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值