I answered my own question, it turns out that I had to change some file
permissions.  Hopefully someone can explain why I had to do this, since it
isn't in the documentation, and let me know if I should not have these
permissions (except for the fact that it works now).

Here is a little about the set up, we are running D-Space 1.7.2, on a
CentOS Linux server.

We have Apache proxy to our Tomcat 6 server. Since we are running in
linux, I could only start Tomcat as root, which is why I'm running
everything through apache and mod_proxy (for nice simple URLs).

In dspace-solr-config.cfg:

##### Search Indexing #####
solr.search.server = http://127.0.0.1:8080/solr/search

In dspace.cfg

##### Usage Logging #####
# set this to be the port you run the dspace "solr" webapp
# on, by default, we are assuming a test configuration with
# tomcat still running on port 8080

solr.log.server = http://localhost:8080/solr/statistics


I couldn't figure out why it would fail when we ran ./dspace
update-discovery-index.  As a last ditch effort I changed the file
permissions on {$dspace.dir}/solr/*

Simply running: chmod -R 777 {$dspace.dir}/solr/*

The index now works for discovery, and the solr stats now work?  Can
anyone explain why changing the permissions seems to work?  I'm assuming
it has something to do with the fact that the solr service is running as
through Tomcat which is start up by root.  Should I be worried about
having such wide open permissions on that directory (the server is it's
own VM with only 2 user accounts, my personal account and a dspace user)?
Is there a better way I could be doing this?

Thanks,

Phil

-------------------------
Philip Shafer
Web Developer
Rowan University
Library Services
Ph: 856-256-4418
E-mail: [email protected]






On 10/26/11 12:37 PM, "Shafer, Philip" <[email protected]> wrote:

>I really need help with Dspace Discovery set up.  When I run bin/dspace
>update-discovery-index we get the following error in our dspace log:
>
>Internal Server Error
>
>request: http://localhost:8080/solr/search/update?wt=javabin&version=1
>       at 
>org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHtt
>p
>SolrServer.java:435)
>       at 
>org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHtt
>p
>SolrServer.java:244)
>       at 
>org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(Abstrac
>t
>UpdateRequest.java:105)
>       at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:64)
>       at 
>org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:55
>8
>)
>       at 
>org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:58
>5
>)
>       at 
>org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:177
>)
>       at 
>org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:320)
>       at org.dspace.discovery.IndexClient.main(IndexClient.java:121)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>3
>9)
>       at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>p
>l.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
>2011-10-26 12:24:48,041 INFO  org.dspace.discovery.IndexClient @ Done with
>indexing
>2011-10-26 12:24:48,123 ERROR org.dspace.kernel.DSpaceKernelManager @ WARN
>Failed to unregister the MBean:
>org.dspace:name=74bb7542-186c-4be0-bdfb-7cc1f1cb31c3,type=DSpaceKernel
>
>
>
>We have the following in the dspace-solr-search.cfg
>
>##### Search Indexing #####
>solr.search.server = http://localhost:8080/solr/search
>
>
>I've tried a few curl command so see if I get any reponse,
>
>Curl http://localhost:8080/solr seems to work find, however the rest of
>the following return either 400 or 404 responses:
>
>[root@dspace dspace-1.7.1]# wget localhost:8080/solr/search
>--2011-10-26 12:29:43--  http://localhost:8080/solr/search
>Resolving localhost... 127.0.0.1
>Connecting to localhost|127.0.0.1|:8080... connected.
>HTTP request sent, awaiting response... 404 Not Found
>2011-10-26 12:29:43 ERROR 404: Not Found.
>
>[root@dspace dspace-1.7.1]# wget
>localhost:8080/solr/search/update?wt=javabin&version=1
>[1] 17005
>[root@dspace dspace-1.7.1]# --2011-10-26 12:30:12--
>http://localhost:8080/solr/search/update?wt=javabin
>Resolving localhost... 127.0.0.1
>Connecting to localhost|127.0.0.1|:8080... connected.
>HTTP request sent, awaiting response... 400 Bad Request
>2011-10-26 12:30:12 ERROR 400: Bad Request.
>
>
>-------------------------
>Philip Shafer
>Web Developer
>Rowan University
>Library Services
>Ph: 856-256-4418
>E-mail: [email protected]
>
>
>--------------------------------------------------------------------------
>----
>The demand for IT networking professionals continues to grow, and the
>demand for specialized networking skills is growing even more rapidly.
>Take a complimentary Learning@Cisco Self-Assessment and learn
>about Cisco certifications, training, and career opportunities.
>http://p.sf.net/sfu/cisco-dev2dev
>_______________________________________________
>DSpace-tech mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/dspace-tech


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to