problems with OGP2 installation - Solr

46 views
Skip to first unread message

Garey Mills

unread,
May 13, 2015, 1:58:17 PM5/13/15
to opengeop...@googlegroups.com
Hi -

For solr-4.10.4, following the instructions on git, I created a Solr collection directory named /data/solrdata and copied <solr-version>/example/solr/* into it. I then changed the solr/home to /data/solrdata in web.xml.

Then, accessing <hostname>:8080/solr, I get


HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: Error loading solr config from 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 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:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at

...

 

notice that it is trying to find 'solr/collection1'. This persists regardless of what I define 'solr/home' to be.

Has anyone run into this?

Garey Mills


--
Generate messages about directories that cannot  be
read,  files  that  cannot be opened ... rather than being silent ... 
(from `man du`)

Kevin Dyke

unread,
May 13, 2015, 2:28:25 PM5/13/15
to opengeop...@googlegroups.com
Does the tomcat user have ownership of the solr folder? If not, use chown and then restart tomcat. I recall needing to deal with some permissions issues when getting things set up.

--
You received this message because you are subscribed to the Google Groups "OpenGeoportal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opengeoportal-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932

Garey Mills

unread,
May 13, 2015, 2:30:47 PM5/13/15
to opengeop...@googlegroups.com
Kevin - Thanks for the response. The user (tomcat) that runs the servlet container owns and has rw permissions on the /data/solrdata/ directory.

Garey

Kevin Dyke

unread,
May 13, 2015, 2:37:24 PM5/13/15
to opengeop...@googlegroups.com
Dang! Have you looked at Tomcat's logs? catalina.out may have further clues as to what's going on.

Chris Barnett

unread,
May 13, 2015, 2:41:34 PM5/13/15
to opengeop...@googlegroups.com
Hi Garey,

solr/home should contain your solr cores, which should contain their respective conf directories. ‘collection1’ is the default core name from the example/solr directory.

My solr 4 home directory looks like this:
collection1 solr.xml zoo.cfg

the collection1 directory looks like this:
README.txt conf core.properties data

conf should contain the schema and synonym files, etc. To change how the name of the core appears in the url and admin ui, edit core.properties.

If for some reason there is a problem with one of the files in conf, you may get this same error message.

-Chris


Garey Mills

unread,
May 13, 2015, 2:47:36 PM5/13/15
to opengeop...@googlegroups.com
Got it. I had to set $SOLR_HOME to /data/solrdata. I did it in <tomcat install dir>/conf/tomcat.xml.

That solved things immediately.


Garey
--
The brain is not where you think.
Me
Reply all
Reply to author
Forward
0 new messages