Hi, You probably should check your [dspace]/config/modules/discovery.cfg and [dspace]/config/modules/solr-statistics.cfg files for the value of "search.server" there.
The first config is used by Discovery to connect to Solr (and used by that "update-discovery-index" command). The second is used by the Solr Statistics module. https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace/config/modules/discovery.cfg#L8 https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace/config/modules/solr-statistics.cfg#L12 My guess would be that the configuration in that file is incorrect, which would explain why it keeps resulting in a "connection refused" error. - Tim On 9/10/2014 8:46 AM, [email protected] wrote: > I have been experiencing problems with my solr statistics not been > updated. I try to upgrade from dspace 3.1 to dspace 3.2 to no avail. I > can elink http://localhost/solr and get the welcome to Solr page and the > Solr Admin Page, Admin Statistics and admin oai links. I am running > my dspace instance on port 80. However, when I try to run > |[dspace]/bin/dspace update-discovery-index –f |as part of the > upgrade process. This is what I am getting > > INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: > DSpaceKernel:org.dspace:name=a7ff425e-81e7-46ab-bf63-1f1f16557613,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null > > INFO [main] (ConfigurationManager.java:1224) - Loading from classloader: > file:/home/dspace/dspace/config/dspace.cfg > > INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log > configuration (log.init.config) > > INFO [main] (ConfigurationManager.java:1224) - Loading: > /home/dspace/dspace/config/log4j.properties > > Exception: java.net.ConnectException: Connection refused > > org.dspace.discovery.SearchServiceException: java.net.ConnectException: > Connection refused > > at > org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:418) > > at org.dspace.discovery.IndexClient.main(IndexClient.java:119) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:622) > > at > org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) > > Caused by: org.apache.solr.client.solrj.SolrServerException: > java.net.ConnectException: Connection refused > > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:483) > > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244) > > at > org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89) > > at > org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118) > > at > org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:106) > > at > org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:384) > > ... 6 more > > Caused by: java.net.ConnectException: Connection refused > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > at > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) > > at > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) > > at > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) > > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385) > > at java.net.Socket.connect(Socket.java:546) > > at java.net.Socket.connect(Socket.java:495) > > at java.net.Socket.<init>(Socket.java:392) > > at java.net.Socket.<init>(Socket.java:266) > > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) > > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) > > at > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) > > at > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) > > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) > > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) > > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) > > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) > > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:427) > > ... 11 more > > Kind Regards, > > Admire Mutsikiwa > > ICT Projects Manager > > Libraries > > University of Zimbabwe > > Tel:+263-4-303276 > > /“It is easy to dodge our responsibilities, but we cannot dodge the > consequences of dodging our responsibilities.” Josiah Charles Stamp, > 1880-1941, former director of the Bank of England / > > > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > > > > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

