OJS 3.4.0.6 problem to get the usage files movedch

Hi all

Sinve we’ve upgraded to 3.4 we have problems to move the usage logs from stage to processing to archive folders.

Our cronjobs looks like:

# OJS-workaroung crontab to move the usageEventLogs to the stage area
0  3    * * *   www-data find /var/www/ojs_files/usageStats/usageEventLogs -daystart -mtime +0 -type f -exec mv "{}" /var/www/ojs_files/usageStats/stage/ \;
# OJS-specific crontab - run usageStats plugin
0 4    * * *    www-data php /var/www/pkp-ojs/app/tools/runScheduledTasks.php /var/www/pkp-ojs/app/plugins/generic/usageStats/scheduledTasks.xml

Now /var/www/pkp-ojs/app/plugins/generic/usageStats/scheduledTasks.xml does not work because the usageStats plugin has fallen away meanwhile. Now we don’t know how to point the job correctly.

Any ideas? Thanks

we also had troubles in the beginning. We came up with:

/usr/bin/php /var/www/html/tools/runScheduledTasks.php;
/usr/bin/php /var/www/html/lib/pkp/tools/jobs.php run;

guess the job runner could be configured away, but we prefer it explicitely.
see https://docs.pkp.sfu.ca/admin-guide/en/deploy#scheduled-tasks and https://docs.pkp.sfu.ca/admin-guide/en/deploy-jobs

Thanks @cager

We got it run with these two jobs:

# OJS-workaroung crontab to move the usageEventLogs to the stage area
50  23    * * *   www-data find /var/www/ojs_files/usageStats/usageEventLogs -daystart -mtime +0 -type f -exec mv "{}" /var/www/ojs_files/usageStats/stage/ \;
# OJS-specific crontab - run cronjobs from registry file
0  0,6,12,18 * * * www-data php /var/www/pkp-ojs/app/tools/runScheduledTasks.php /var/www/pkp-ojs/app/registry/scheduledTasks.xml