Dear Tim, Many thanks for your quick and detailed reply. Fortunately, I managed to resolve the problem. I forgot to put *ReadWritePaths=/opt/dspace-7/ *into my tomcat9 systemd unit file. Now it works perfectly.
Miloš понедељак, 27. фебруар 2023. у 16:44:50 UTC+1 Tim Donohue је написао/ла: > Hi Milos, > > The lines you shared from your logs are just a generic WARNING. They are > not the cause of the 500 exception & I see that same harmless warning in my > logs even though OAI-PMH is working for me on DSpace 7.5. > > A 500 exception should have a corresponding "ERROR" in the logs (either > the DSpace logs or Tomcat logs, or both). See our Troubleshooting guide > for hints/tips on finding the detailed error: > https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove) > > Unfortunately, I'm not sure what the cause may be. It could be something > in your Solr setup, or maybe some sort of configuration issue? If you can > find an error in the logs, that may provide us with more clues. I can > verify though that OAI-PMH is working fine for me on 7.5, so it's likely > there's some sort of install/configuration error in your local site. > > If you can find a more detailed error, and cannot figure out the cause, > feel free to send it to this list for additional help. > > Tim > On Saturday, February 25, 2023 at 12:56:38 PM UTC-6 imi...@gmail.com > wrote: > >> Dear All, >> >> I have just installed the latest and greatest DSpace 7.5. On the first >> glance, everything works ok, except for the OAI. The Solr index seems ok >> too, and: >> >> bin/dspace oai import -c >> >> also executes without error. However, >> >> curl http://localhost:8080/server/oai/request?verb=Identify >> >> gives error 500. In dspace.log, there are some occurrences of: >> >> 2023-02-25 19:33:09,396 WARN unknown unknown >> org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by >> name or id=oai. Will try to look up bean by type next. >> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean >> named 'oai' available >> at >> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:872) >> >> ~[spring-beans-5.3.20.jar:5.3.20] >> at >> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1344) >> >> ~[spring-beans-5.3.20.jar:5.3.20] >> at >> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:309) >> >> ~[spring-beans-5.3.20.jar:5.3.20] >> at >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) >> >> ~[spring-beans-5.3.20.jar:5.3.20] >> at >> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1160) >> >> ~[spring-context-5.3.20.jar:5.3.20] >> at >> org.dspace.servicemanager.DSpaceServiceManager.getServiceByName(DSpaceServiceManager.java:426) >> >> [dspace-services-7.5.jar:7.5] >> at >> org.dspace.scripts.ScriptServiceImpl.getScriptConfiguration(ScriptServiceImpl.java:34) >> >> [dspace-api-7.5.jar:7.5] >> at >> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:125) >> [dspace-api-7.5.jar:7.5] >> at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98) >> [dspace-api-7.5.jar:7.5] >> >> Perhaps, it is related to the OAI error. Any advice on where to look at? >> >> Thanks in advance! >> Milos >> >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/a7aa7438-5037-4528-9e88-3d54b4f2ccecn%40googlegroups.com.