Here is my solr.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="false">
<cores adminPath="/admin/cores">
<core name="search" instanceDir="search" />
<core name="statistics" instanceDir="statistics" />
<core name="oai" instanceDir="oai" />
<core name="authority" instanceDir="authority" />
</cores>
</solr>
~
and I think permissions are ok. Tomcat is running with "amir" user and all
file and directory is owned with this user:
<https://lh3.googleusercontent.com/-efaXypr1PMc/WwO-BhFzB1I/AAAAAAAABdg/0_MloCVXvsMEfLsco-Okb2wTLWPwQxjWQCLcBGAs/s1600/Screen%2BShot%2B2018-05-22%2Bat%2B10.32.46%2BAM.png>
I used this video https://www.youtube.com/watch?v=mrLl1qPsy6I to set up the
development environment. the config of solr in Catalina is:
<?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true" override="true">
<Environment name="solr/home" type="java.lang.String"
value="dspace.dir=/dspace/solr" override="false"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
No, it had some merges, but it has no conflicts and other parts are working
fine.
Yesterday, I clone from the original repo and build this branch again, but
I got the same error.
On Tuesday, May 22, 2018 at 3:23:08 AM UTC+4:30, Kim Shepherd 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] <javascript:>
> 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] <javascript:>>
> 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.internalDoFilter(ApplicationFilterChain.java:193)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>
>> at
>> org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter(LocalHostRestrictionFilter.java:50)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.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.NioEndpoint$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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> 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.