[Dspace-tech] Exception: Server at http://localhost:8080/solr/search returned non ok status:404, message:Not Found

787 views
Skip to first unread message

Hassan Bhuiyan

unread,
Aug 26, 2015, 1:14:38 PM8/26/15
to dspac...@lists.sourceforge.net
Hi

I am trying to upgrade from DSpace1.6.2 to DSpace 4.1. Everything went okay except index-discovery.
I can see community and collection lists and log in to DSpace administrator account and see items in the pool waiting to be archived.

Problem: Homepage shows message "Internal Systems Error" and does not show the item lists.
It will be helpful if someone can help me please.



Note: I tried with rebuild and fresh installation again but still the problem remains same.
Note: I don't see anything directory called "/solr/search" directory in my TOMCAT.



Regards
Hassan Bhuiyan
Brunel University, UK



I get following error while executing index-discovery -f ( when TOMCAT is running)
----------------------------------------------------------------------------------------------------
Exception: Server at http://localhost:8080/solr/search returned non ok status:404, message:Not Found
org.dspace.discovery.SearchServiceException: Server at http://localhost:8080/solr/search returned non ok status:404, message:Not Found
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:484)
at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
Caused by: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Server at http://localhost:8080/solr/search returned non ok status:404, message:Not Found
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:385)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
at org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:155)
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:444)
... 7 more


I get following error while executing index-discovery -f ( when TOMCAT is stopped)
------------------------------------------------------------------------------------------------------

Exception: Server refused connection at: http://localhost:8080/solr/search
org.dspace.discovery.SearchServiceException: Server refused connection at: http://localhost:8080/solr/search
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:484)
at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
Caused by: org.apache.solr.client.solrj.SolrServerException: Server refused connection at: http://localhost:8080/solr/search
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:428)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:285)
at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:271)
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:450)
... 7 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:365)
... 12 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 19 more



Hilton Gibson

unread,
Aug 26, 2015, 1:14:43 PM8/26/15
to Hassan Bhuiyan, dspac...@lists.sourceforge.net
Hi Hassan


Cheers

hg

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa



------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Teo Tokis

unread,
Aug 26, 2015, 1:14:45 PM8/26/15
to Hilton Gibson, dspac...@lists.sourceforge.net, Hassan Bhuiyan
Hello,
it seems like a Solr's problem.
A solution to your problem is to copy the folder "[dspace-installation-directory]\webapps\solr" to "C:\Program Files\Apache Software Foundation\Apache Tomcat (your version)\webapps" (or wherever is the Tomcat's installation directory).
Another solution is to locate the Tomcat's server.xml file and change the
<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true"> 
with something like that 
<Host name="localhost"  appBase="/c:/dspace/webappsunpackWARs="true" autoDeploy="true">

Then you can test if Solr is "working" @ http://localhost:8081/solr/
Hope it helps.

Teo.
Reply all
Reply to author
Forward
0 new messages