Still i have the same issue running “/opt/kaltura/app/alpha/scripts/dwh/dwh_plays_views_sync.sh” from cron job doesn’t update the content video plays although when i run it from script it works fine #less /var/log/cron | grep -i "dwh_plays_views_sync.sh"
shows
Jan 26 10:00:01 KaltureServer CROND[4005]: (kaltura) CMD (/opt/kaltura/app/alpha/scripts/dwh/dwh_plays_views_sync.sh >> /opt/kaltura/log/cron.log)
cat /opt/kaltura/log/cron.log
shows
Thu Jan 26 14:30:01 EET 2017
Thu Jan 26 14:45:01 EET 2017
Thu Jan 26 15:00:02 EET 2017
Thu Jan 26 15:15:01 EET 2017
Thu Jan 26 15:30:01 EET 2017
Thu Jan 26 15:45:01 EET 2017
Thu Jan 26 16:00:01 EET 2017
Thu Jan 26 16:15:01 EET 2017
Thu Jan 26 16:30:01 EET 2017
Thu Jan 26 16:45:01 EET 2017
(Only time Stamp)
script run from bash
[root@KaltureServer log]# su kaltura
[kaltura@KaltureServer log]$ /opt/kaltura/app/alpha/scripts/dwh/dwh_plays_views_sync.sh
after this i find all media plays in content tab update
00 10 * * * kaltura /opt/kaltura/app/alpha/scripts/dwh/dwh_plays_views_sync.sh >> /opt/kaltura/log/cron.log 2>&1
``
?
this would also redirect output sent to STDERR to /opt/kaltura/log/cron.log. Perhaps there are errors during the execution when it's done by crond