Clive, You can change the URL/port where DSpace looks for the Solr Statistics server in the following config file:
[dspace]/modules/solr-statistics.cfg Look for this entry: server = http://localhost:8080/solr/statistics It looks like you need it to instead be set to: server = http://127.0.0.1/solr/statistics More info can be found in the Solr Statistics Documentation at: https://wiki.duraspace.org/display/DSDOC18/DSpace+Statistics#DSpaceStatistics-ConfigurationsettingsforStatistics (Side Note: if you plan to use Discovery (Solr-based faceted search/browse), you likely will also need to similarly edit the Solr 'search.server' setting in the [dspace]/modules/discover.cfg config file.) - Tim On 1/13/2012 7:03 AM, Clive Gould wrote: > Hi > > I am having problem with the dspace stats script following an upgrade > from 1.7.1 to 1.8.1 > > The solr server is running and lynx > http://127.0.0.1/solr/statistics/select?q=*:* works fine and returns > the statistics file > > However when I try to run the dspace stats script I get the following error > > [dspace@standbyvle bin]$ dspace stats-util -b -r > Exception: Error executing query > org.apache.solr.client.solrj.SolrServerException: Error executing query > at > org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95) > at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118) > at > org.dspace.statistics.SolrLogger.reindexBitstreamHits(SolrLogger.java:1009) > at > org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:96) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) > Caused by: org.apache.solr.common.SolrException: /solr/statistics/select > > /solr/statistics/select > > request: > http://localhost:8080/solr/statistics/select?q=*:*&fq=type:0&fq=-bundleName:[* > TO *]&rows=0&wt=javabin&version=2 > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244) > at > org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89) > ... 8 more > > It looks as if it is looking for solr at localhost:8080. Any idea how > I can change the URL/port number its looking for here please? > > I have already set the entries in the appropriate config/modules files > to point to the correct URL for solr. > > Thanks very much > > Clive > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

