./bin/dspace oai import process deletes requests directory
24 views
Skip to first unread message
Steve Michaels
unread,
Oct 14, 2025, 9:26:03 AM10/14/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DSpace Technical Support
I've discovered that when the ./bin/dspace oai import process runs, it doesn't just clear the requests cache, it deletes the ./var/oai/requests directory itself.
Is there a configuration that I'm missing, a command flag in the crontab command that's wrong ("$DSPACE/bin/dspace oai import > /dev/null"), or is this a weird bug?
DSpace Technical Support
unread,
Nov 14, 2025, 12:09:29 PM11/14/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
So, by deleting that directory the entire cache is cleared. The directory is later recreated if it no longer exists.
Tim
667...@gmail.com
unread,
Feb 17, 2026, 5:31:51 AM (19 hours ago) Feb 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DSpace Technical Support
Hi Tim,
I currently have the same problem, "oai import" deletes the "requests" directory, and further OAI client requests face 500 "Internal error"
Are you sure it is later recreated? Looking at XOAI.java i do not see where.
Thanks!
DSpace Technical Support
unread,
Feb 17, 2026, 12:36:18 PM (12 hours ago) Feb 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DSpace Technical Support
Hi,
At least according to my reading of the code, I believe that "requests" directory should be recreated after it is deleted (which occurs during clearing the cache).
In the OAI caching code, you can see the "requests" directory is returned "getBaseDir()" here:
I'd recommend looking closer at the 500 "Internal Error" you are receiving. 500 errors are very generic errors that just mean "something went wrong". To determine what actually went wrong, you'd want to use the Troubleshooting Guide to look for a more detailed error message. In this case, it's likely the more detailed error behind that 500 error would be in your DSpace logs or Tomcat logs.
If you are able to verify that the 500 error is being caused by the missing "requests" directory, then I'd recommend creating a bug ticket in our GitHub repository and describe the exact steps you took, and share the detailed error message that you found in your logs (when that 500 error occurs).