OJS 3.3.0-20: Usage Statistics Stopped Collecting After Upgrade

Hi!

We’re currently running OJS version 3.3.0-20 and have encountered an issue with article-level usage statistics for a while. On the same day we upgraded from version 3.3.0-17 to 3.3.0-20, all abstract and file statistics stopped being recorded across all journals on our site. Since then, the statistics have flatlined and are no longer updating in the admin interface:

The Usage Statistics plugin is enabled and the Acron plugin is enabled and running.

I’ve checked the PKP support forum, but the issues I found either relate to other versions or suggest a wide range of potential causes. We’re unsure where to look next to identify the problem or how to fix it.

Any advice or guidance on what could be causing this issue, or what logs or configurations we should check would be greatly appreciated :folded_hands:

Thanks in advance!

Hi @svidmar

Is your scheduled task UsageStatsLoader run daily? You can see when it was last run in the DB table scheduled_tasks.
Where are you usage stats log files, in which folder? Are the permissions for the web-user correct for those files?
Do you see any errors in your php error log file, but also in the scheduled tasks log files (in your files folder, under scheduledTasksLogs/UsageStatsLoader-*?

Best,
Bozana

Hi @bozana

Thank you for helping us to look into this case.

First of all, yes, the scheduled task is run daily from crontab using runScheduledTasks.php. We have also tested using the inbuilt Acron.

If I run the task manually, e.g. runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml it does not make any difference.

The logfiles just report a minimal:

[2025-09-12 07:22:05] https://journals.aau.dk
[2025-09-12 07:22:05] [Notice] Task process started.
[2025-09-12 07:22:05] [Notice] Task process stopped.

The usageEventLogswithin the files directory is present from Feb. 15. and onwards. They are just not processed. Permissions are to the web server (user:group) and the crontab is run as root. Permissions are 0644.

I am not able to find any errors that would help us in some direction…

I am running another OJS installation on the same server so same OS, PHP and OJS version. No problem parsing the stat-files here.

Thanks,

Kasper

Hi @kloevschall

Sorry for the late response? Have you figured out the problem?

Do you use cron job for scheduled task processing of Acron plugin?
If Acon plugin, I think the web-user needs read and write access the the usage stats log files and folders, no?
It seems that the log files cannot be copied/moved from usageEventLogs to the stage folder (and further to processing and archive folder).

Best,
Bozana

Double check that you didnt change the config.inc.php file to the new version without filling in the Base Url.

Also, if you upgraded and upgraded the PHP, check to see that fileinfo and gettext extensions are installed and active. My server upgraded to AlmaLinux and php didnt come with those two necessary extensions installed.