Solr error after migrating from DSpace 7.6 to DSpace 8.1

74 views
Skip to first unread message

Izaias Pereira dos Santos

unread,
Mar 10, 2025, 3:53:04 PM3/10/25
to DSpace Community

Hello All,


We have migrated DSpace from 7.6 to 8.1 recently using the guide at https://wiki.lyrasis.org/display/DSDOC8x/Migrating+DSpace+to+a+new+server

But now with the new version we are facing an error on solr when executing 


./dspace oai import 


which gives the output: 


OAI 2.0 manager action started

There are no indexed documents, using full import.

Full import

Total: 911 items

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/oai: ERROR: [doc=tede/3897] unknown field 'item.hasbitstream'

        at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:681)

        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:225)

        at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:106)

        at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:71)

        at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:85)

        at org.dspace.xoai.app.XOAI.index(XOAI.java:347)

        at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:265)

        at org.dspace.xoai.app.XOAI.index(XOAI.java:166)

        at org.dspace.xoai.app.XOAI.main(XOAI.java:633)

        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.base/java.lang.reflect.Method.invoke(Method.java:569)

        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:283)

        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:134)

        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)


And now we are stuck on this problem.

Did anyone have similar problems after migrating?


Thanks in advance.


DSpace Community

unread,
Apr 7, 2025, 10:53:02 AM4/7/25
to DSpace Community
Hi,

In case you haven't yet found the solution, it sounds like you are accidentally trying to use DSpace 7's Solr "schema.xml" files with DSpace 8.  The error is saying that your "solr/oai/conf/schema.xml" is missing the "item.hasbitstream" field which was added in DSpace 8: https://github.com/DSpace/DSpace/blob/dspace-8_x/dspace/solr/oai/conf/schema.xml#L131

So, you likely accidentally copied the older DSpace 7 Solr schema.xml file(s) over during your migration.  Instead, you want to make sure you are using the *new* schema.xml files which came with DSpace 8 (along with all the other Solr settings related to DSpace 8).

Tim
Reply all
Reply to author
Forward
0 new messages