org.apache.solr.common.SolrException: solr.xml does not exist in /home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml cannot start Solr

Apache's JIRA Issue Tracker | Ishan Chattopadhyaya | 1 year ago
  1. 0

    Steps to reproduce: 1. ./bin/solr start -e cloud -noprompt 2. ./bin/solr stop -p 8983 2. ./bin/solr start -c -s example/cloud/node1/ -p 8983 4. This URL gives an NPE : http://localhost:8983/solr/#/ Error: {noformat} org.apache.solr.common.SolrException: Error processing the request. CoreContainer is either not initialized or shutting down. at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:187) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) {noformat} From the logs: {noformat} INFO - 2015-10-08 09:19:48.141; [ ] org.apache.solr.core.SolrXmlConfig; Loading container configuration from /home/ishan/code/lucene-solr-svn /solr/example/cloud/node1/solr.xml ERROR - 2015-10-08 09:19:48.143; [ ] org.apache.solr.servlet.SolrDispatchFilter; Could not start Solr. Check solr/home property and the logs ERROR - 2015-10-08 09:19:48.158; [ ] org.apache.solr.common.SolrException; null:org.apache.solr.common.SolrException: solr.xml does not exist in /home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml cannot start Solr at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:108) at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140) at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:162) at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:130) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:109) at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) {noformat} It is looking for a solr.xml in {{/home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml}} but it exists in {{/home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr/solr.xml}} Preliminarily, it looks to me like a start script issue.

    Apache's JIRA Issue Tracker | 1 year ago | Ishan Chattopadhyaya
    org.apache.solr.common.SolrException: solr.xml does not exist in /home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml cannot start Solr
  2. 0

    Steps to reproduce: 1. ./bin/solr start -e cloud -noprompt 2. ./bin/solr stop -p 8983 2. ./bin/solr start -c -s example/cloud/node1/ -p 8983 4. This URL gives an NPE : http://localhost:8983/solr/#/ Error: {noformat} org.apache.solr.common.SolrException: Error processing the request. CoreContainer is either not initialized or shutting down. at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:187) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) {noformat} From the logs: {noformat} INFO - 2015-10-08 09:19:48.141; [ ] org.apache.solr.core.SolrXmlConfig; Loading container configuration from /home/ishan/code/lucene-solr-svn /solr/example/cloud/node1/solr.xml ERROR - 2015-10-08 09:19:48.143; [ ] org.apache.solr.servlet.SolrDispatchFilter; Could not start Solr. Check solr/home property and the logs ERROR - 2015-10-08 09:19:48.158; [ ] org.apache.solr.common.SolrException; null:org.apache.solr.common.SolrException: solr.xml does not exist in /home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml cannot start Solr at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:108) at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140) at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:162) at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:130) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:109) at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) {noformat} It is looking for a solr.xml in {{/home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml}} but it exists in {{/home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr/solr.xml}} Preliminarily, it looks to me like a start script issue.

    Apache's JIRA Issue Tracker | 1 year ago | Ishan Chattopadhyaya
    org.apache.solr.common.SolrException: solr.xml does not exist in /home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml cannot start Solr
  3. 0

    Solr cannot find solr.xml even though it's there

    Stack Overflow | 2 years ago | Mike Thomsen
    org.apache.solr.common.SolrException: Could not load SOLR configuration
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Solr DataImportHandler configuration

    Stack Overflow | 4 years ago | talo
    org.apache.solr.common.SolrException: No cores were created, please check the logs for errors at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:172)
  6. 0

    How to fix SolrException: QueryElevationComponent requires the schema to have a uniqueKeyField?

    Stack Overflow | 5 years ago
    org.apache.solr.common.SolrException: No cores were created, please check the logs for errors

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.solr.common.SolrException

      solr.xml does not exist in /home/ishan/code/lucene-solr-svn/solr/example/cloud/node1/solr.xml cannot start Solr

      at org.apache.solr.core.SolrXmlConfig.fromFile()
    2. Apache Solr Core
      SolrDispatchFilter.init
      1. org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:108)
      2. org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:140)
      3. org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:162)
      4. org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:130)
      5. org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:109)
      5 frames
    3. Jetty
      ContextHandler.doStart
      1. org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138)
      2. org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852)
      3. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
      4. org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
      5. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
      6. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
      6 frames