Article statistics, Metrics stopped updating

Thanks Sir, the problem of metrics solved.
On inspection of files directory schedules tasks logs, it was identified that a files of …20200707.log is failed to process and lies in “process” folder.
I looked usagestats folder in files dir, and found …20200707.log file in the process folder.
I checked stage and reject folders, both were empty
Three log files (708, 709, 710) were present in “usageEventslogs” folder
I disabled acron plugin from installed plugin in ojs dashboard
I created a cron job in my Cpanel admin “/usr/local/bin/php /home/jpedasor/public_html/ojs/tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml”
I moved unprocessed log files into the “stage” folder, on cron job, they all processed but to “reject” folder. On checking logs, it showed line one of these log files have some illegal entry.
I visited my installed plugin section of ojs dashboard. I checked setting of “usage statistics plugin” and clicked/checked option of “create log files”.
Following that I again moved all files in “usageEventslogs” folder. I set cron job to 2 minutes interval.
I moved files from “usageEventslogs” folder to “stage” folder one by one. It processed all files successfully to “archive” folder. Now the statistics/metrics on all the published articles are updated.
I reset cron job interval to 12 hours.
I wonder if I have to move file from “usageEventslogs” folder to stage folder manually on daily basis or it will be done automatically.
Lets see.
Thanks for the help.
Best Regards
Bilal

3 Likes