Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9247

SolrCore Initialization Failures - Fail on create a new core

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 6.1.1
    • None
    • Server
    • Solr 6.1.0, Ubuntu 14.04, Java 1.8.0_91

    Description

      I try create a new core with info below.
      name: tweets
      instanceDir: tweets
      dataDir: data
      config: solrconfig.xml
      schema: schema.xml

      Then I get the error on top view:
      Error CREATEing SolrCore 'tweets': Unable to create core [tweets] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/opt/programs/solr/server/solr/tweets'

      SolrCore Initialization Failures
      tweets: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core tweets: Error loading solr config from /opt/programs/solr/server/solr/tweets/conf/solrconfig.xml

      Follow the my log tail:
      2016-06-23 18:13:18.796 INFO (qtp225493257-20) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores params=

      {indexInfo=false&wt=json&_=1466705604765}

      status=0 QTime=0
      2016-06-23 18:13:18.797 INFO (qtp225493257-17) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores params=

      {wt=json&_=1466705604765}

      status=0 QTime=0
      2016-06-23 18:13:18.800 INFO (qtp225493257-18) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/system params=

      {wt=json&_=1466705604767}

      status=0 QTime=2
      2016-06-23 18:13:20.257 INFO (qtp225493257-34) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores params=

      {indexInfo=false&wt=json&_=1466705606228}

      status=0 QTime=0
      2016-06-23 18:13:20.258 INFO (qtp225493257-17) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores params=

      {wt=json&_=1466705606228}

      status=0 QTime=0
      2016-06-23 18:13:20.261 INFO (qtp225493257-21) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/system params=

      {wt=json&_=1466705606229}

      status=0 QTime=3
      2016-06-23 18:13:30.469 INFO (qtp225493257-30) [ ] o.a.s.h.a.CoreAdminOperation core create command schema=schema.xml&dataDir=data&name=tweets&action=CREATE&config=solrconfig.xml&instanceDir=tweets&wt=json&_=1466705606228
      2016-06-23 18:13:30.469 INFO (qtp225493257-30) [ ] o.a.s.c.CoreDescriptor Created CoreDescriptor:

      {name=tweets, config=solrconfig.xml, loadOnStartup=true, schema=schema.xml, configSetProperties=configsetprops.json, transient=false, dataDir=data}

      2016-06-23 18:13:30.469 INFO (qtp225493257-30) [ ] o.a.s.c.SolrResourceLoader new SolrResourceLoader for directory: '/opt/programs/solr/server/solr/tweets'
      2016-06-23 18:13:30.469 INFO (qtp225493257-30) [ ] o.a.s.c.SolrResourceLoader JNDI not configured for solr (NoInitialContextEx)
      2016-06-23 18:13:30.469 INFO (qtp225493257-30) [ ] o.a.s.c.SolrResourceLoader using system property solr.solr.home: /opt/programs/solr/server/solr
      2016-06-23 18:13:30.469 ERROR (qtp225493257-30) [ ] o.a.s.c.CoreContainer Error creating core [tweets]: Could not load conf for core tweets: Error loading solr config from /opt/programs/solr/server/solr/tweets/conf/solrconfig.xml
      org.apache.solr.common.SolrException: Could not load conf for core tweets: Error loading solr config from /opt/programs/solr/server/solr/tweets/conf/solrconfig.xml
      at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:86)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:810)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:749)
      at org.apache.solr.handler.admin.CoreAdminOperation$1.call(CoreAdminOperation.java:119)
      at org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:367)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:158)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
      at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:663)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:445)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      at org.eclipse.jetty.server.Server.handle(Server.java:518)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
      at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.solr.common.SolrException: Error loading solr config from /opt/programs/solr/server/solr/tweets/conf/solrconfig.xml
      at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:172)
      at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:98)
      at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
      ... 34 more
      Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml' in classpath or '/opt/programs/solr/server/solr/tweets'
      at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:386)
      at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:341)
      at org.apache.solr.core.Config.<init>(Config.java:120)
      at org.apache.solr.core.Config.<init>(Config.java:90)
      at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:187)
      at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:164)
      ... 36 more
      2016-06-23 18:13:30.470 ERROR (qtp225493257-30) [ ] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Error CREATEing SolrCore 'tweets': Unable to create core [tweets] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/opt/programs/solr/server/solr/tweets'
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:783)
      at org.apache.solr.handler.admin.CoreAdminOperation$1.call(CoreAdminOperation.java:119)
      at org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:367)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:158)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
      at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:663)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:445)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      at org.eclipse.jetty.server.Server.handle(Server.java:518)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
      at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.solr.common.SolrException: Unable to create core [tweets]
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:825)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:749)
      ... 32 more
      Caused by: org.apache.solr.common.SolrException: Could not load conf for core tweets: Error loading solr config from /opt/programs/solr/server/solr/tweets/conf/solrconfig.xml
      at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:86)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:810)
      ... 33 more
      Caused by: org.apache.solr.common.SolrException: Error loading solr config from /opt/programs/solr/server/solr/tweets/conf/solrconfig.xml
      at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:172)
      at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:98)
      at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
      ... 34 more
      Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml' in classpath or '/opt/programs/solr/server/solr/tweets'
      at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:386)
      at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:341)
      at org.apache.solr.core.Config.<init>(Config.java:120)
      at org.apache.solr.core.Config.<init>(Config.java:90)
      at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:187)
      at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:164)
      ... 36 more

      2016-06-23 18:13:30.470 INFO (qtp225493257-30) [ ] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores params=

      {schema=schema.xml&dataDir=data&name=tweets&action=CREATE&config=solrconfig.xml&instanceDir=tweets&wt=json&_=1466705606228}

      status=400 QTime=1

      Follow the path of my solr server dir:
      $ ls -lha /opt/programs/solr/server/
      total 188K
      drwxr-xr-x 11 fabricio fabricio 4,0K Jun 23 14:25 .
      drwxr-xr-x 9 fabricio fabricio 4,0K Jun 23 14:21 ..
      drwxr-xr-x 2 fabricio fabricio 4,0K Jun 23 14:21 contexts
      drwxr-xr-x 2 fabricio fabricio 4,0K Jun 23 14:21 etc
      drwxr-xr-x 3 fabricio fabricio 4,0K Jun 23 14:21 lib
      drwxrwxr-x 2 fabricio fabricio 4,0K Jun 23 14:25 logs
      drwxr-xr-x 2 fabricio fabricio 4,0K Jun 23 14:21 modules
      rw-rr- 1 fabricio fabricio 3,8K Mar 4 07:18 README.txt
      drwxr-xr-x 2 fabricio fabricio 4,0K Jun 23 14:21 resources
      drwxr-xr-x 4 fabricio fabricio 4,0K Mar 4 07:18 scripts
      drwxr-xr-x 3 fabricio fabricio 4,0K Jun 23 14:53 solr
      drwxr-xr-x 3 fabricio fabricio 4,0K Jun 13 04:47 solr-webapp
      rw-rr- 1 fabricio fabricio 140K Mar 14 12:50 start.jar
      $ ls -lha /opt/programs/solr/server/solr
      total 24K
      drwxr-xr-x 3 fabricio fabricio 4,0K Jun 23 14:53 .
      drwxr-xr-x 11 fabricio fabricio 4,0K Jun 23 14:25 ..
      drwxr-xr-x 5 fabricio fabricio 4,0K Mar 4 07:18 configsets
      rw-rr- 1 fabricio fabricio 3,0K Mar 4 07:18 README.txt
      rw-rr- 1 fabricio fabricio 2,1K Mai 26 05:17 solr.xml
      rw-rr- 1 fabricio fabricio 501 Mar 4 07:18 zoo.cfg

      Attachments

        Activity

          People

            Unassigned Unassigned
            fabriciorsf Fabrício Pereira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: