New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheduled tasks not executing #7315
Comments
I don't think the tracking triggers the archiving/scheduled tasks, because that could result in a super slow response time. Please correct me if I'm wrong. However visiting Piwik itself should trigger the browser archiving, are you sure it's not disabled? Have you tried accessing a report and then refresh the timetable to see if the archiving/scheduled tasks were executed? Using cron is not necessary. |
FYI: the calls to Interestingly, when we broke this feature a few times over the years, each time many users noticed and reported the issue. I'm not sure where this logic is done in the code since we refactored Tracker recently but it should still be there. |
@mattab thanks good to know! |
So, there IS a bug, or something on my install? |
Have you disabled browser archiving? |
No, i have it enabled: admin>settings>general>Archiving settings>>>YES |
OK, do you have SSH access to the machine? If yes, could you try to run the archiving/scheduled tasks manually so that maybe any error/warning that prevents the tasks from running will show here:
You could also enable logging to file, maybe the log will contain useful information. Add this to you config.ini.php: [log]
log_writers[] = "file"
log_level = "INFO" |
Tried so, can't run console:
Listing the files i see console is in a different group compared to eg. index.php...
Also, added to config.ini.php:
|
You need to fix the file permissions to run the console. For the logger you customized the path so I don't know where it will be logged. Remove the logger_file_path line and it will be in |
Thanks, removed the logger path. About permissions, i suspect there are others set incorrectly. Just adding execute to the console script, i was able to run it, but no errors were shown:
|
You can go in the "System Check" in the administration panel of Piwik. |
Ah thanks, removing execute from the console sript, i saw the file integrity check fail. No other problems are listed after fixing the execute. Thanks. Back to cron's not running: my log currently looks like this:
|
@sirtet from the log you pasted, it looks like the scheduled tasks are running. I'm closing as it looks OK. if you have a problem still with latest Piwik release, feel free to reopen or create new issue |
I thought my piwik install would run scheduled tasks automatically, triggered by the calls to the tracking, or something like that.
But now i see via the TasksTimetable Plugin, that all tasks are far behind, eg. next scheduled time = 3 days ago...
So, ist this normal, do i need to set up a cron or so to run them? If so, how?
Or is there a problem with my install?
The text was updated successfully, but these errors were encountered: