dspace 7.4 OAI error 500

52 views
Skip to first unread message

Jorge Alberto Bonilla Castaneda

unread,
Aug 27, 2024, 9:47:41 AM8/27/24
to DSpace Technical Support
Hello

in my dspace implementation I have a problem with OAI , although identity does not generate errors : https://rd.udb.edu.sv/server/oai/request?verb=Identify
neither sets nor metadata formats
https://rd.udb.edu.sv/server/oai/request?verb=ListSets
https://rd.udb.edu.sv/server/oai/request?verb=ListMetadataFormats

if I get error Records and identifiers
https://rd.udb.edu.sv/server/oai/request?verb=ListRecords&metadataPrefix=oai_dc
https://rd.udb.edu.sv/server/oai/request?verb=ListIdentifiers&metadataPrefix=oai_dc

could someone help me to know what could be going wrong?

Translated with DeepL.com (free version)

Jorge Alberto Bonilla Castaneda

unread,
Aug 27, 2024, 10:37:18 AM8/27/24
to DSpace Technical Support
I think this could be the error:

root@biblio:/dspace/bin# ./dspace oai import > /dev/null
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/oai: Expected mime type application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/solr/oai/select</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table>

</body>
</html>

        at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:635)
        at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
        at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
        at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
        at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
        at org.dspace.xoai.solr.DSpaceSolrSearch.query(DSpaceSolrSearch.java:37)
        at org.dspace.xoai.app.XOAI.index(XOAI.java:165)
        at org.dspace.xoai.app.XOAI.main(XOAI.java:627)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)
root@biblio:/dspace/bin# 

Jorge Alberto Bonilla Castaneda

unread,
Aug 27, 2024, 10:52:56 AM8/27/24
to DSpace Technical Support
I even tried changing the solr to the correct one http://150.136.129.10:8983/solr

but the same error occurs 

DSpace Technical Support

unread,
Sep 9, 2024, 12:40:10 PM9/9/24
to DSpace Technical Support
Hi, 
This error is an indication that the DSpace backend is **unable to access** Solr.  This will mean that OAI-PMH will not work because it requires usage of a Solr index.  It also would likely mean that your User Interface won't work as it also relies on Solr.

If you are still seeing this error, you should double check your Solr configurations are correct, and see if you are able to index into Solr using other scripts (like "./dspace index-discovery").  Your DSpace backend *must* be able to connect to Solr, but Solr itself does not need to be publicly available (it can be hidden behind a firewall or similar).  But, you also should check to see if there's a firewall or similar blocking access between your DSpace backend and the Solr installation.

Tim

Reply all
Reply to author
Forward
0 new messages