FW: solr advice

27 views
Skip to first unread message

Florance, Patrick

unread,
Jul 7, 2014, 3:40:17 PM7/7/14
to opengeop...@googlegroups.com, wesley...@uct.ac.za

Anyone have any suggestions for Wesley?  I don’t manage our Solr configuration and Chris is away on vacation.


Thanks - Patrick

 

From: Wesley Barry [mailto:wesley...@uct.ac.za]
Sent: Monday, July 07, 2014 3:27 PM
To: Florance, Patrick
Subject: solr advice

 

Good day Patrick

I hope you doing well.

I hope that you would be able to help or direct in the right direction with regards to the following:

A small introduction, My name is Wesley Barry, and I am staff member of the library IT department at the University of Cape Town, South Africa.

The library is currently in the process of setup a local instance of the OpenGeoPortal.

I hve setup the following:

Ubuntu 14:04
Tomcat 7
Geoserver
Geowebcache
OpenGeoPortal ( we have customised it with our branding as well)

I am however stuck with getting the Solr server up. the error I get is:

HTTP Status 500 - Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in null ------------------------------------------------------------- java.lang.RuntimeException: Cannot create directory: /home/libsolr/solr/./data/index at org.apache.lucene.store.NativeFSLockFactory.acquireTestLock(NativeFSLockFactory.java:74) at org.apache.lucene.store.NativeFSLockFactory.makeLock(NativeFSLockFactory.java:137) at org.apache.lucene.store.Directory.makeLock(Directory.java:131) at....


I have googled the error and tried various recommended fixes, yet I still get the above error. I would to know if there is any solution to get this fixed or what the recommended steps are to setting up the Solr server to work with the OpenGeoPortal.

Kind Regards

Wesley Barry
Technical Consultant
Library Information Technology
University of Cape Town
021 650 2834
wesley...@uct.ac.za









I


UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

Lin, Yilun (Allen)

unread,
Jul 7, 2014, 5:04:59 PM7/7/14
to opengeop...@googlegroups.com
Hi,

I personally have not got that questions. But Chris and I wrote a installation manual for basic tuning of OGP and Solr which worth giving a look if you haven't.


Thanks,
Allen


--
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.



--
Lin, Yilun (Allen)

Graduate Student
Department of Geography, Environment and Society
University of Minnesota, Twin Cities
 
Research Assistant
U-Spatial Project http://uspatial.umn.edu

414 Social Sciences Building
267 19th Ave S, Minneapolis, MN 55455

Bess Sadler

unread,
Jul 9, 2014, 1:44:14 PM7/9/14
to opengeop...@googlegroups.com, wesley...@uct.ac.za
Wesley, have you checked that the user who is running the tomcat process has write access to the /home/libsolr/solr/./data/index folder? And that all the folders in that chain exist?

Good luck!
Bess

Bess Sadler
be...@stanford.edu
Manager, Application Development
Digital Library Systems & Services
Stanford University Library
> UNIVERSITY OF CAPE TOWN
>
> This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website athttp://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

Carl Sack

unread,
Jul 11, 2014, 11:23:48 AM7/11/14
to opengeop...@googlegroups.com, wesley...@uct.ac.za
I also found I had to give the right port number in order to ingest data to the solr instance I set up on Tomcat, or it would default to 8983 and throw an error. There's probably some configuration that can change the default port, but I haven't found it. This is what worked for me:

java -Durl=http://localhost:8090/solr/update -jar post.jar input.xml

To get to the admin page, you have to use the correct port number with localhost (eg. localhost:8090) to get to it unless you set up a ProxyPass in your main httpd.conf file:

<Proxy /solr>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /solr http://<domain>:<port>/solr
ProxyPassReverse /solr http://<domain>:<port>/solr

I'm just getting started with this stuff too, so feel free to correct this if there's a better way to do it.

-Carl
________________________________________
From: opengeop...@googlegroups.com [opengeop...@googlegroups.com] On Behalf Of Bess Sadler [be...@stanford.edu]
Sent: Wednesday, July 09, 2014 12:44 PM
To: opengeop...@googlegroups.com
Cc: wesley...@uct.ac.za
Subject: Re: [ogp-dev] solr advice
Reply all
Reply to author
Forward
0 new messages