几个主要错误打印如下:
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