Dear community.
I am struggling since a few hours with the usageStats. I installed ojs 2-4-6 from scratch. What we are doing special: we are currently migrating an old journal from an arbitrary system used for 15 years. I could figure out most things - all the inserts are good. However, I can’t figure out how the metrics really work. I read tons of forum entries but still in troubles.
What I am already considering:
-
base_url
inconfig.inc.php
is correct, fits the entries in the usage (base_url:
http://jstatsoft.uibk.ac.at, usageLog example (for a file in this case):
http://jstatsoft.uibk.ac.at/index.php/jss/article/download/v064i02/v64i02.pdf` -
usageStats/usageEventLogs
andusageStats/stage
haverwx
permissions - cronjob (
cd /var/www/html && php tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml
) is running.
My current problems
OJS (v 2.4.6) seems to create proper log-entries in the usageEventLogs
directory for (i) volume views, (ii) issue vuews, and (iii) file downloads. However, only the issue views seems to be updated in the metrics
table.
- We are using the custom names (
pub-id::publisher-id
/original_file_name
) for file downloads/galleys. Might this be a problem for the Stats/Metrics plugin? - Why are issue views logged, but the rest not?
- We migrated an old journal from a complete arbitrary software manually (with full submission path) into OJS: maybe I’ve forgotten to set a specific flag in a database table which tells OJS that this specific file should be tracked?
Furthermore …
- the cronjob works if and only if I move the files manually from
usageEventLogs
tostage
. Seems that the script dont want to move the files. As I am always testing on a live version my log-files are never older than 1 day. Are they moved lagged based on the modification date or something?
Thanks in advance!
I was spending a lot of time to fix it, but could not find it. More or less reverse-engineered the whole database relations to be able to migrate into OJS as I expected it :).
Thank you very much!
Reto