Healthcheck sometimes stops prematurely
Since we have implemented the internal DSpace healthchecks to run daily (#48 (closed)), we noticed that it doesn't always complete. On 19/07 the process got stuck somehow for over an hour.
root@dspace-7db55d8549-d4hqc:/opt/repository/sources/dspace/utilities/project_helpers/scripts# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 25483 0.0 0.0 4504 708 ? S 12:41 0:00 /bin/sh /opt/lindat-dspace/installation/bin/dspace healthcheck -e info.recipient
root 25997 0.0 0.0 36084 3368 pts/0 R+ 13:50 0:00 ps aux
The DSpace log seems to pick up some messages from the healthcheck process, but there's no clue in there why it stopped. Compare the logs from 18/07
# grep health /opt/lindat-dspace/installation/log/dspace.log.2019-07-18 | tail -5
2019-07-18 12:41:21,236 INFO org.dspace.health.Report @ #13. Processing [Legal Check] at [2019-07-18 12:41:21.236]
2019-07-18 12:41:21,242 INFO org.dspace.health.Report @ #14. Processing [VLO check] at [2019-07-18 12:41:21.242]
2019-07-18 12:41:21,810 INFO org.dspace.health.Report @ reports generated...
2019-07-18 12:41:21,810 INFO org.dspace.health.Report @ Looking for email template at [/opt/lindat-dspace/installation/config/emails/healthcheck]
2019-07-18 12:41:24,126 INFO org.dspace.core.Email @ Email with subject ERCC: Repository healthcheck successfully sent to the following people: clarin@eurac.edu;
to the ones from 19/07
# grep health /opt/lindat-dspace/installation/log/dspace.log.2019-07-19 | tail -5
2019-07-19 12:42:15,125 INFO org.dspace.health.Report @ #5. Processing [Log Analyser Check] at [2019-07-19 12:42:15.125]
2019-07-19 12:42:15,434 INFO org.dspace.health.Report @ #6. Processing [Additional Information] at [2019-07-19 12:42:15.434]
2019-07-19 12:42:15,440 INFO org.dspace.health.Report @ #7. Processing [Assetstore validity] at [2019-07-19 12:42:15.440]
2019-07-19 12:42:15,542 INFO org.dspace.health.Report @ #8. Processing [Curation Summary] at [2019-07-19 12:42:15.542]
2019-07-19 12:42:24,490 INFO org.dspace.health.Report @ #9. Processing [Logs Check] at [2019-07-19 12:42:24.490]