DSpace 7 OAI error

854 views
Skip to first unread message

Juan López

unread,
Sep 15, 2021, 12:44:08 PM9/15/21
to DSpace Technical Support
Hi, it's me again 😁

I'm having some troubles with my OAI interface:

1. My context for: Driver, OpenAIRE and OpenAIRE4 are showing my Repository identifier as ${oai.identifier.prefix} and my Sample identifier as oai:${oai.identifier.prefix}:123456789/1234 instead of showing my dspace IP.

2. If I click in "list of metada formats" -> "list records" of any context of the point 1, I get the following error:  Error No matches for the query ... my dspace.log doesn't show any error.

3. The same as the second point happens if I click in "list sets" -> "records" , "list sets" -> "identifiers" , "list records" and "list identifiers".

I do have to tell you guys that the "List of Metadata Formats" option for Openaire4 and default context seems to be working fine.

Hope you guys can help me with some kind of workaround.

Juan.

Tim Donohue

unread,
Sep 15, 2021, 12:49:25 PM9/15/21
to Juan López, DSpace Technical Support
Hi Juan,

See the comments about that "oai.identifier.prefix" setting in the oai.cfg file: https://github.com/DSpace/DSpace/blob/main/dspace/config/modules/oai.cfg#L36

You usually don't need to specify that, as DSpace attempts to find your UI's hostname dynamically.  But, if it cannot, then you should specify a value for "oai.identifier.prefix" in your backend's "local.cfg.

OAI-PMH uses Solr on the backend & it needs to be reindexed regularly using "dspace oai import" command.  See the docs at https://wiki.lyrasis.org/display/DSDOC7x/OAI   If it's not working, chances are you haven't run that command yet.

If you have other questions ask feel free to ask on the list.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Juan López <juanlop...@gmail.com>
Sent: Wednesday, September 15, 2021 11:44 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] DSpace 7 OAI error
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/df2691af-6f6d-46df-9085-980bd6d18f33n%40googlegroups.com.

Juan López

unread,
Sep 20, 2021, 3:36:47 PM9/20/21
to DSpace Technical Support
Hi Tim,

I changed my oai.identifier.prefix  value with this: ${dspace.ui.url} in my oai.cfg.

I ran a dspace oai import and am still getting the same issues. This is happening in both of my dspace versions 6.3 and 7.0 

Eduardo Prata (Edu Prata)

unread,
Apr 19, 2023, 10:44:07 AM4/19/23
to DSpace Technical Support
Juan,

Good morning, how are you?

I was having the same problem.

And I managed to solve it by running the two commands below.

I hope it helps you.


/dspace/bin/dspace oai clean-cache

/dspace/bin/dspace oai import -o -c -v
Reply all
Reply to author
Forward
0 new messages