org.apache.solr.common.SolrException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Reindex SOLR statistics
    via by Stefanie Behnke,
  • Deploy Solr to Tomcat via Maven
    via Stack Overflow by Ryan Morrison
    ,
  • Re: I cannot create replica in Solr
    via by Unknown author,
  • I tried the small tutorial on http://heliosearch.org/solr-4-8-features/ to create "Named Config Sets" based on the Solr example shipped with Solr 4.8.1 (like it's done in the tutorial, same problem with 4.8.0). Creating a new core with a configSet seems to work (directory 'books' and 'books/core.properties' are created correctly). But loading the new core does not work: {code:none}67446 [qtp25155085-11] INFO org.apache.solr.handler.admin.CoreAdminHandler core create command configSet=generic&name=books&action=CREATE 67452 [qtp25155085-11] ERROR org.apache.solr.core.CoreContainer Unable to create core: books org.apache.solr.common.SolrException: Could not load configuration from directory C:\dev\solr-4.8.1\example\configsets\generic at org.apache.solr.core.ConfigSetService$Default.locateInstanceDir(ConfigSetService.java:145) at org.apache.solr.core.ConfigSetService$Default.createCoreResourceLoader(ConfigSetService.java:130) at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554) ... {code} It seems like Solr looks up the config sets in the wrong directory: C:\dev\solr-4.8.1\example\configsets\generic (in the log above) instead of C:\dev\solr-4.8.1\example\solr\configsets\generic (like stated in the tutorial and the documentation on https://cwiki.apache.org/confluence/display/solr/Config+Sets) Moving the configsets directory one level up (into 'example') will work. But as of the documentation (and the tutorial) it should be located in the solr home directory. In case I'm completely wrong and everythings works as expected, how can the configsets directory be configured? The documentation on https://cwiki.apache.org/confluence/display/solr/Config+Sets mentions a "configurable configset base directory", but I can't find any information on the web. Another thing: If it would work as I expect, the references <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" /> etc. in solr-4.8.1/example/solr/configsets/generic/conf/solrconfig.xml should get one more "../" added, I guess (missing in the tutorial).
    via by Simon Endele,
  • Spring Data Solr Tutorial: Configuration
    via by Unknown author,
    • org.apache.solr.common.SolrException: Error CREATEing SolrCore 'statistics-temp': Unable to create core [statistics-temp] Caused by: Cannot create directory: /dspace/temp/solr-data/index at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:613) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:199) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:188) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:729) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:258) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter(LocalHostRestrictionFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:334) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:119) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.solr.common.SolrException: Unable to create core [statistics-temp] at org.apache.solr.core.CoreContainer.create(CoreContainer.java:507) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:466)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,