Page View Tracker cron Task
nfee006 opened this issue · 3 comments
Automating the page tracker updates was attempted on @datatest, but doesn't seem to work. Another attempt on @ data is warranted.
As it is, the page tracker functionality (including the index of most popular datasets) won't update unless you follow the instructions here: https://docs.ckan.org/en/2.9/maintaining/tracking.html
I started to look at this issue. First of all, the page view tracker is already enable on production,:/etc/ckan/default/ckan.ini
.
ckan.tracking_enabled = true
Then we need to set up the cron task by following step 2.
I set up the cron task on my virtual machine successfully.
crontab needs the following:
* * * * * /usr/bin/env > /home/efadmin/tmp/cron.log
@daily ckan -c /etc/ckan/default/ckan.ini tracking update && ckan -c /etc/ckan/default/ckan.ini search-index rebuild -r
Then I can use the ckan-cron command to list the execution history. The next step is to set up the cron task on the QA server.
I configured the cron task on the production server today. It works good as I can see in the log file.