Dspace OAI error - "An internal read or write operation failed"

397 views
Skip to first unread message

Sushant Virdi

unread,
Aug 2, 2023, 6:32:24 AM8/2/23
to DSpace Technical Support
Hi team, I installed Dspace 7.2.1 on Ubuntu (aws) and the frontend and backend is working fine, except the OAI server (/server/oai/request?verb=Identify) isn't working. I just get the error attached. I checked the Dspace troubleshooting guide and didn't find anything there. Even the Dspace and tomcat logs don't say anything about the error. Would anyone have a clue about it? Thank you!


Screenshot 2023-08-02 143203.png
dspace.log
catalina.2023-08-02.log

DSpace Technical Support

unread,
Aug 4, 2023, 1:19:16 PM8/4/23
to DSpace Technical Support
Hi,

This is confusing to me because a 500 error from OAI-PMH *should* result in something in the logs.  Nothing in what you've shared though seems to match up with that error.  It's almost like the error is being logged somewhere else.

You could look at our troubleshooting guide to see if any of the other troubleshooting tips help uncover what the problem is: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)   It's very difficult to say for certain until you can find the error behind the 500 Internal Server Error (as that's a very generic error that can be caused by many different issues).

You also may want to check the permissions on your filesystem directories.  I have seen scenarios where the Tomcat user isn't able to *write* to the DSpace logs... in which case nothing gets logged.  I'm not sure this is your scenario though as it looks like you are getting some logs.

Tim

Sushant Virdi

unread,
Aug 7, 2023, 2:17:16 AM8/7/23
to DSpace Technical Support
Hi Tim, 

Thanks for responding. The issue was indeed due to the filesystem permissions. I missed the step to provide tomcat access to the DSpace folder. Running these two commands fixed it for me. 

1. Provide tomcat permissions to space directory:
sudo chown -R tomcat:tomcat /dspace/

2. Provide ReadWrite path to DSpace in tomcat configuration:
sudo nano/lib/systemd/system/tomcat9.service

Add the following line under #Security at the last line:
ReadWritePaths=/dspace

Make sure to restart tomcat after this. 

Thanks!
Reply all
Reply to author
Forward
0 new messages