@mattab opened this Issue on February 3rd 2014 Owner

It used to work this way:

  • If cron is setup, then cron will send email reports and execute other scheduled tasks
  • When cron is not setup, then the piwik.php requests will act as a webcron, and trigger archiving and scheduled tasks automatically when visitors visit the website.

This seems to have regressed in 2.0 as we got several reports by users that this stopped working.

Let's investigate the webcron and fix. Hopefully we can add integration test for this feature?

@hpvd commented on February 3rd 2014
@hpvd commented on February 7th 2014
@hpvd commented on February 3rd 2014

maybe this is also the reason why piwik auto update is not working?

#4263

@hpvd commented on February 3rd 2014

shouldn't it be possible to check in each installation if this is working fine via the TasksTimetable Plugin?

=> if there are only negative times to next scheduled task - so all cron jobs are in the past- no cron (standart nor webcron) is working

if so this problem is also in my installation because - otherwise I should have never seen/found this problem
#4540

@hpvd commented on February 3rd 2014

if this influences also all standard task: delete, archive, optimize etc which could be seen in the TaskTimetable Plugin

Prio and Version to fix should be set as high as /near as possible...

what do you think?

@hpvd commented on February 3rd 2014

Since I check for piwik update on our testing site at least once per week to latest version/beta, one could calculate from the entries in TaskTimetable Pluging when / in which version the problem starts...

please see attachement


Scheduled Tasks

The following tasks are scheduled to be executed based on the current server time Monday 3 February 2014 13:18:18.
Name Date (Server time)
Piwik_PrivacyManager.deleteLogData Tuesday 15 October 2013 00:00:51
(in -111 days 13 hours)
Piwik_PrivacyManager.deleteReportData Tuesday 15 October 2013 00:00:51
(in -111 days 13 hours)
Piwik_CoreAdminHome.purgeOutdatedArchives Tuesday 15 October 2013 00:00:51
(in -111 days 13 hours)
Piwik_CoreAdminHome.optimizeArchiveTable Tuesday 15 October 2013 00:00:53
(in -111 days 13 hours)
Piwik_UserCountry_GeoIPAutoUpdater.update Wednesday 16 October 2013 00:00:21
(in -110 days 13 hours)
GeoIPAutoUpdater.update Wednesday 18 December 2013 00:00:46
(in -47 days 13 hours)


@tsteur commented on February 5th 2014 Owner

In d9f08bdc401f7d8355fae91d27c2548669329d15: fixes #4612 do not bootstrap complete CronArchive when we just want to run scheduled tasks

@hpvd commented on February 5th 2014

thanks for the fix.
Just installed latest piwik master from github.

Since there is no change in list of tasks visible within TaskTimetable Plugin:

do we have to restart the webcron jobs with standard setting / standard tasks?
How to do so?
Or should the fix do this?

@tsteur commented on February 5th 2014 Owner

It should be triggered at some point when visits are tracked.

@hpvd commented on February 7th 2014

sorry looks still the same - no new tasks :-(

@mattab commented on February 8th 2014 Owner

I think it's a different bug @hpvd. Do you mind opening new one with this particular case of "tasks scheduled in the past are not running as expected".

This Issue was closed on February 24th 2014
Powered by GitHub Issue Mirror