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:

https://github.com/DSpace/DSpace/blob/dspace-9_x/dspace-oai/src/main/java/org/dspace/xoai/services/impl/cache/DSpaceXOAICacheService.java#L44

And, here, that directory is re-created if it doesn't exist:

https://github.com/DSpace/DSpace/blob/dspace-9_x/dspace-oai/src/main/java/org/dspace/xoai/services/impl/cache/DSpaceXOAICacheService.java#L73-L76

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  <https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error>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 <https://github.com/DSpace/DSpace/issues> and describe 
the exact steps you took, and share the detailed error message that you 
found in your logs (when that 500 error occurs).

Hopefully that helps,

Tim

On Tuesday, February 17, 2026 at 4:31:51 AM UTC-6 [email protected] wrote:

> 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!
>
> On Friday, 14 November 2025 at 17:09:29 UTC DSpace Technical Support wrote:
>
>> Hi Steve,
>>
>> I believe that is expected behavior because that "/var/oai/requests" 
>> directory *is* the cache.  So, the entire directory is deleted in the code 
>> here: 
>> https://github.com/DSpace/DSpace/blob/main/dspace-oai/src/main/java/org/dspace/xoai/services/impl/cache/DSpaceXOAICacheService.java#L132-L134
>>
>> So, by deleting that directory the entire cache is cleared.  The 
>> directory is later recreated if it no longer exists.
>>
>> Tim
>>
>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://lyrasis.org/code-of-conduct/
--- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/638b7a41-5563-49fb-89e2-2191bc00b9d2n%40googlegroups.com.

Reply via email to