Hi Tim

Thanks for this, but what is worrying me is that the
solr-statistics.cfg file already contains the required changes :(

I've run mvn and ant update

Could this be a bug???

See below

Clive


/home/dspace/dspace-1.8.1-src-release/dspace/config/modules
[dspace@standbyvle modules]$ cat solr-statistics.cfg
#---------------------------------------------------------------#
#--------------SOLR STATISTICS CONFIGURATIONS-------------------#
#---------------------------------------------------------------#
# These configs are only used by the SOLR interface/webapp to   #
# track usage statistics.                                       #
#---------------------------------------------------------------#

##### 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
server = http://127.0.0.1/solr/statistics

 etc.....

and

[dspace@standbyvle modules]$ cat discovery.cfg
#---------------------------------------------------------------#
#-----------------DISCOVERY CONFIGURATIONS----------------------#
#---------------------------------------------------------------#
# Configuration properties used solely by the Discovery         #
# faceted-search system.                                        #
#---------------------------------------------------------------#
##### Search Indexing #####
search.server = http://127.0.0.1/solr/search

etc....

On Fri, Jan 13, 2012 at 3:02 PM, Tim Donohue <[email protected]> wrote:
> 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

Reply via email to