Hi,
I’ve a OMP 3.1.2 work properly and showing the ‘Usage statitics’ on the book page.
After upgrade to OMP 3.2.1-1 the ‘Usage statitics’ counter stoped work. News downloads is not considered.
The plugin ‘Usage Statistics’ is enabled and the ‘Create log files’ is checked.
The plugin ‘Acron Plugin’ installed and enabled.
On config.inc.php the base_url = “https://omp-3211.marilia.unesp.br” and the book page is https://omp-3211.marilia.unesp.br/index.php/lab_editorial/catalog/book/176
And the usageStats folder has full access permission.
On the folder ‘usageStats/archive’ has no new files after the system upgrade.
And the folder ‘usageStats/reject’ is empty.
There not new records on database after the system upgrade too (SELECT * FROM metrics WHERE metric_type = “ojs::counter”)
To test:
php tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml
cat scheduledTaskLogs/Tarefadocarregadordearquivodeestatísticasdeuso-5f8962b4d59d1-20201016.log
[2020-10-16 06:07:00] https://omp-3211.marilia.unesp.br
[2020-10-16 06:07:00] [Aviso] Iniciada tarefa agendada.
[2020-10-16 06:07:00] [Aviso] Tarefa agendada parou.
The folders archive, processing, reject and stage continue with no new files.
SELECT * FROM metrics WHERE metric_type = “omp::counter” and month = ‘202010’;
4 rows in set (0.04 sec)
Remove cache file
rm -rf cache/fc-downloadStats-160.php
After web access
this file continue without new data
and on the web page the graph has no new data too
Doubts
Why after move the files “usageEventLogs” to “stage” the file was moved with success to “archived” and database has new data?
Is the system unable to move it itself?
And why after all the new data is not displayed?
After enabled SQL debug, i got this message:
“SELECT month, representation_id, SUM(metric) AS metric FROM metrics WHERE submission_id = 155 AND assoc_type = 515 AND metric_type = ‘omp::counter’ GROUP BY month, representation_id ORDER BY month ASC”