clarin-dspace icon indicating copy to clipboard operation
clarin-dspace copied to clipboard

DSpace logs leaking into tomcat output

Open kosarko opened this issue 2 years ago • 2 comments

I'm expecting all the dspace (backend related) logs in [install-dir]/log. A lot of stuff actually ends up in catalina.out/tomcat stdout. Eg. these:

Feb 20 08:43:17 repository-new env[19763]: 08:43:17.946 [http-apr-8080-exec-8] ERROR org.dspace.app.statistics.clarin.ClarinMatomoBitstreamTracker - Cannot find the Item for the bitstream with ID: 5a8b5958-136b-4a48-a8ed-4e5a1d149aa0 - the statistics cannot be logged.
Feb 20 08:43:30 repository-new env[19763]: 08:43:30.555 [dspaceRunnableThreadExecutor-2] ERROR org.dspace.harvest.OAIHarvester - Error occurred while generating an OAI response: The 'metashare' schema has not been defined in this DSpace instance.  null
Feb 20 08:43:30 repository-new env[19763]: org.dspace.content.crosswalk.CrosswalkException: The 'metashare' schema has not been defined in this DSpace instance.
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.content.crosswalk.CrosswalkMetadataValidator.checkMetadata(CrosswalkMetadataValidator.java:93) ~[dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.content.crosswalk.DIMIngestionCrosswalk.ingest(DIMIngestionCrosswalk.java:72) ~[dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.harvest.OAIHarvester.processRecord(OAIHarvester.java:588) ~[dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.harvest.OAIHarvester.runHarvest(OAIHarvester.java:395) [dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.app.harvest.Harvest.runHarvest(Harvest.java:390) [dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.app.harvest.Harvest.internalRun(Harvest.java:168) [dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:104) [dspace-api-7.2.1.jar:7.2.1]
Feb 20 08:43:30 repository-new env[19763]:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
Feb 20 08:43:30 repository-new env[19763]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
Feb 20 08:43:30 repository-new env[19763]:         at java.lang.Thread.run(Thread.java:833) [?:?]
Feb 20 08:44:00 repository-new env[19763]: 08:44:00.005 [scheduling-1] ERROR org.dspace.app.rest.ClarinDiscoJuiceFeedsDownloadService - Failed to obtain/parse https://ufal-point-dev.ufal.hide.ms.mff.cuni.cz/Shibboleth.sso/DiscoFeed
Feb 20 08:44:00 repository-new env[19763]: Check timeouts, redirects, shibboleth config.
Feb 20 08:44:00 repository-new env[19763]: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Feb 20 08:44:00 repository-new env[19763]: 08:44:00.012 [scheduling-1] ERROR org.dspace.app.rest.ClarinDiscoJuiceFeedsDownloadService - Failed to obtain/parse https://static.discojuice.org/feeds/edugain
Feb 20 08:44:00 repository-new env[19763]: Check timeouts, redirects, shibboleth config.

maybe just log4j config

kosarko avatar Feb 20 '23 09:02 kosarko

I see OAI-PMH errors in the tomcat log, but how did you get ClarinDiscoJuiceFeedsDownloadService log into tomcat log? I hope log4j config will be enough.

milanmajchrak avatar Mar 21 '23 16:03 milanmajchrak

No idea, might be connected to #1034 though

kosarko avatar Mar 23 '23 11:03 kosarko