Description of issue or problem I’m having:
UsageStats stopped working as of Dec 31 2021, last data collection for 2021 was done on Dec 30 2021 (archive/ stops there). For Jan 4 2022 only partial data was loaded, nothing else (not in archive/).
Steps I took leading up to the issue:
We have read several forum threads.
We have looked at the metrics and scheduled_tasks tables in the database. We have done a thorough analysis of the data in the filesystem and found things like this:
$ ls -1 scheduledTaskLogs/*20211231.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-61ce3a0214593-20211231.log
scheduledTaskLogs/Crossrefautomaticregistrationtask-61cf727d7c2f1-20211231.log
scheduledTaskLogs/DataCiteautomatischeRegistrierung-61cf726bbde9d-20211231.log
scheduledTaskLogs/DOAJautomatischeRegistrierung-61cf71dcdba5c-20211231.log
scheduledTaskLogs/ErinnerunganGutachten-61cf72f3b7ae2-20211231.log
scheduledTaskLogs/mEDRAautomatischeRegistrierung-61cf722d1faec-20211231.log
scheduledTaskLogs/PKPPNAblieferungsaufgabe-61cf1f31aa5ac-20211231.log
scheduledTaskLogs/SubscriptionExpiryReminder-61ce3a06074aa-20211231.log
scheduledTaskLogs/TaskzumLadenderNutzungsstatistik-Datei-61cf713f98a92-20211231.log
The “TaskzumLadenderNutzungsstatistik” sometimes is called “Usagestatisticsfileloadertask” instead.
We have several “##admin[…]” entries, 17 to be exact. Looks a lot like beginning and end of the month are special?
ls -1 scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-*
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-5fbe8245dc2d8-20201125.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-603e66923eff7-20210302.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-6063428ab1005-20210330.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-6064f0f2be63a-20210401.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-608c7de10b0f2-20210501.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-60b40ae31d2a7-20210531.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-60b55c63b561a-20210601.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-60dce961a629e-20210701.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-61047662e2d77-20210731.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-6105c7f4654d1-20210801.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-612ea66ce0d51-20210901.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-615633618786d-20211001.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-617dc066094a7-20211031.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-617f20008e131-20211101.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-61a6acf9dd13c-20211201.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-61ce3a0214593-20211231.log
scheduledTaskLogs/##admin.scheduledTask.statisticsReport##-61cf8b8293248-20220101.log
We also see a lot of data missing in archive/ which seems to be stuck in stage/.
What I tried to resolve the issue:
We moved one file for Jan 04 2022 from processing/ to stage/. We then ran runScheduledTasks manually on the commandline, to no avail.
Application Version - e.g., OJS 3.1.2:
OJS 3.2.1-3
Usage Stats 1.0
Additional information, such as screenshots and error log messages if applicable:
We have only seen the error message on data being in processing/, which is why we moved one file to stage/.
Additional remarks:
- Why are the file names translated? Obviously this is very error-prone and makes it harder to debug things. Searching for translated error messages means I will have to translate them back to English, because searching in random language (in our case German) won’t give me any results.
- Missing documention of this plugin is also a major concern for us. I have not found any information on where the data comes from, where it first starts, what all the directories are meant for and how to handle data that seems to be in the wrong place (except for the error message we saw in the log file). Describing the process in more detail anywhere would be much appreciated!