- Application Version:
- Description of issue:
I recently took over two existing OJS installations, and for one of them I migrated from OJS 2 to OJS3. We haven’t gone live in that OJS 3, but I noticed that usage statistics were no longer being updated.
- Steps you took leading up to the issue
I migrated from RHEL 6 with Postgres to CentOS 8 with MariaDB. I used the MySQL Workbench migration tool for the db without too many issues. Because there were no customizations, I used the download method for the upgrade rather than using git. Otherwise, I didn’t change any settings within the application. Everything appeared to be working after the upgrade.
- What you tried to resolve the issue
I check to make sure Acron is installed and active, as are Usage Statistics and Usage Events. In files/usageStats/usageEventsStats, there are usage event logs for a few days after the upgrade. None of the dates of the logs in usageEventsStats are in usageStats/archive.
I decided to try to test the scheduled task using the cron method for OJS 3 outlined in this documentation. I disabled Acron through the admin interface and changed the setting in config.inc.php to On for scheduled tasks. When I run the command to test it I get an error message saying:
Tasks file "lib/pkp/plugins/generic/usageStats/scheduledTasksAutoStage.xml" does not exist or is not readable!
When I look in the lib/pkp/plugins, there isn’t a usageStats directory. But it looks like scheduledTasksAutoStage.xml is in the location described for the OJS 2 script in the same documentation. I checked back with the original OJS 3 I downloaded and it is the same.
So, in addition to usage event no longer being logged and the ETL script not running to get those usage events into the db, I guess there is something kind of basic that I’m misunderstanding about how this should be configured. Any help or suggestions welcome.