Hi Amir, I think the Tomcat (Catalina) context configuration for Solr is the problem, here's the part where you configure Solr's home directory:
value="dspace.dir=/dspace/solr" That will set Solr looking for a home directory name called *dspace.dir=/dspace/solr, *which doesn't exist... if you remove the *dspace.dir=* part so that the value looks like value="/dspace/solr" And restart Tomcat, I think you'll have better luck. Once Solr can find its correct home directory, it'll read all your configured cores and not revert to defaults like 'collection1', etc. Cheers Kim M: [email protected] T: @kimshepherd P: +6421883635 W: www.shepherd.nz <http://shepherd.nz> 0CCB D957 0C35 F5C1 497E CDCF FC4B ABA3 2A1A FAEC On 22 May 2018 at 10:53, Kim Shepherd <[email protected]> wrote: > Hi Amir, could you share your /dspace/solr/solr.xml configuration file and > double-check the permissions on that file (that Tomcat can read it, etc) > It looks like 'collection1' is a default used in Solr when it can't find a > solr.xml configuration file in its path on startup, so for some reason Solr > can't find or read your DSpace Solr configuration. > > I can't see anywhere in dspace-6_x branch history that might have caused a > problem like this with solr.xml come from. Could you confirm some more > details about the codebase you're working from (eg. what revision was it > from Dec 17? Did you merge the recent dspace-6_x into that local repo? Were > there any conflicts?) and double-check any local changes that might have > been made to Solr configuration/directories/path env variable? > > Cheers > > Kim > > M: [email protected] > T: @kimshepherd > P: +6421883635 > W: www.shepherd.nz <http://shepherd.nz> > > 0CCB D957 0C35 F5C1 497E CDCF FC4B ABA3 2A1A FAEC > > On 21 May 2018 at 18:13, Amir Ajorloo <[email protected]> wrote: > >> Hi >> >> I'm working on dspace-6_x branch from Dec 2017. Recently I pulled from >> the original repo and after that, solr returns 500 status code with this >> message: >> >> *Message* {msg=SolrCore 'collection1' is not available due to init >> failure: Could not load conf for core collection1: Error loading solr >> config from dspace.dir=/dspace/solr/collection1/conf/solrconfig.xml, >> trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is >> not available due to init failure: Could not load conf for core >> collection1: Error loading solr config from >> dspace.dir=/dspace/solr/collection1/conf/solrconfig.xml >> at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at >> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:307) >> at >> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:193) at org.apache.catalina.core.Appli >> cationFilterChain.doFilter(ApplicationFilterChain.java:166) at >> org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter( >> LocalHostRestrictionFilter.java:50) at org.apache.catalina.core.Appli >> cationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) >> at >> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) >> at >> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) >> at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) >> at >> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) >> at org.apache.coyote.AbstractProtocol$ConnectionHandler. >> process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.Nio >> Endpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at >> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> 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: Could not load conf for core >> collection1: Error loading solr config from >> dspace.dir=/dspace/solr/collection1/conf/solrconfig.xml >> at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66) >> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:489) at >> org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255) at >> org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249) at >> java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) at >> java.util.concurrent.FutureTask.run(FutureTask.java) at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> ... 1 more Caused by: org.apache.solr.common.SolrException: Error >> loading solr config from >> dspace.dir=/dspace/solr/collection1/conf/solrconfig.xml >> at >> org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:154) >> at >> org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:80) >> at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61) >> ... 8 more Caused by: java.io.IOException: Can't find resource >> 'solrconfig.xml' in classpath or '/usr/local/Cellar/tomcat/8.5. >> 24/libexec/bin/dspace.dir=/dspace/solr/collection1/conf' at >> org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362) >> at >> org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308) >> at org.apache.solr.core.Config.<init>(Config.java:117) at >> org.apache.solr.core.Config.<init>(Config.java:87) at >> org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:167) at >> org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:145) >> ... 10 more ,code=500} >> >> *Description* The server encountered an unexpected condition that >> prevented it from fulfilling the request. >> >> >> There is no "collection1" folder in /dspace/solr/ path, but before this >> its working without problem. How can I this fix? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "DSpace Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/dspace-community. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-community. For more options, visit https://groups.google.com/d/optout.
