以cloud模式配置安装好Solr 8.10.1 启动后,在访问默认8983端口或使用solr status
查看状态时报如下错误
URI:
/solr/
STATUS:
404
MESSAGE:
javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.
SERVLET:
default
CAUSED BY:
javax.servlet.ServletException: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.
CAUSED BY:
javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.
Caused by:javax.servlet.ServletException: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162)at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763)at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)at org.eclipse.jetty.server.Server.handle(Server.java:516)at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)at java.lang.Thread.run(Thread.java:748)
Caused by: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:376)at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357)at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)... 15 more
检查基本配置如zk hosts,zk 服务启动状态发现皆没有问题,在网上找呀找据说是在solr home目录下缺失solr.xml配置文件,赶紧找一个cp过来
cp /usr/sft/solr-8.10.1/server/solr/solr.xml /usr/sft/solr-8.10.1/
cp /usr/sft/solr-8.10.1/example/files/conf/solrconfig.xml /usr/sft/solr-8.10.1/
重启后倒是可以进心心念念的UI了,但老显示SolrCore Initialization Failures
不过没有影响到目前的使用(在此用于Atlas的安装集成),先mark一下,回头来解决。