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/Cron stopped working #4780
Comments
Attachment: |
still not working in 2.1 final Please see new attachment. |
Attachment: |
Hi there, I cannot really reproduce it at the moment and need your help... Can you check the local (might be not present there) and global config value of
and can you check the value of the option "lastTrackerCronRun" in the database "option" table? There have been tracking visits since mid february right? |
urgghhh I would say: "Yes of course!" Thinking a little longer: On the first site (the one with the lowest site ID) there were no visits After visiting this site, there were immediately new tasks with a future date in the tasktime table plugin :-) => Maybe one should look on all sites for triggering the task/cron start. Many thanks!! |
Sorry for having to spent so much time on this. You're right, it should be triggered on all sites. Without testing but having a look at the code it should work for all sites as long as the tracking request is not authenticated. Is there the possibility you are setting the token_auth parameter when tracking the other sites? I also just noticed there is a setting named "tracking_requests_require_authentication" and if disabled it would not start the ScheduledTasks via Tracker. But this should be irrelevant for your case as it would not work for any site then. |
thanks for your answer. the is token_auth parameter is not set. |
the problem is reproduceable. See new screenshots. |
Attachment: |
Attachment: |
I do not think it is directly related to the "lowest idsite" but to a difference in how the tracking is done. Do you think it is possible for you to change the following line: https://github.com/piwik/piwik/blob/master/piwik.php#L15 from
to
and then perform a regular tracking request and capture the response of that tracking request? Preferably first with the site that does not trigger the scheduled tasks and afterwards with the site that triggers the scheduled tasks (the site with the lowest id). For instance in my case the output of a tracking request looks like this: http://pastebin.com/VZwDaAzx . You could post the responses either on pastebin and post a link here or if the responses contain sensitive data like IP or anything else you can send us an email to hello @ piwik.org . It would help me as I cannot reproduce it so far. |
Hi many thanks for your advise - sure I can do that and have already done this. |
following the link in the doc |
Hi, I understand. It is not easy indeed, especially for non developers. I just made a change which makes it maybe at least a bit easier. It is already available if you use the version from Git, or will be available with the next beta / public release. To enable Tracker debugging you no longer have to edit a PHP file but you can enable it in your "config/config.ini.php" as follows:
Maybe have a look whether the Tracker section in your config already exists. In this case you only have to add the line
[log]
|
many thanks! I'll follow these great detailed instructions by the end of the week and will post the result! |
Cool! Please also comment here in case you are sending us an email so we can have a look in the spam folder just in case. Unfortunately, this happens sometimes... |
just send you the email:
on both domains visits were tracked fine! Many thanks for your work! |
uuurrg i messed it up: |
Yeah it would be great if you run it again for the website not triggering it. It might not trigger it as it ran before. Please wait a day if possible to make sure there are scheduled tasks |
hmm just started to make the steps again, switched the debuging+logging on and wanted to make it good What happens? |
checked it again - do not know why but it is working fine again now: |
That's what I wanted to hear :) Feel free to comment in case it stops working again. BTW: Don't forget to disable debug+log again. |
…nfig, use logger for printing debug messages which allows users to log to screen, file or db
Ok. So i found issue #8092 just after my comment and running I'll wait and see if tasks run as scheduled now. |
Since everything seems to be fixed with the (beta/RC)-Version in the mid of February now all the viewable
Scheduled Tasks/Cron-Jobs (for Geoip update etc ) have stopped working again (and are in the past)
please see attachment
The text was updated successfully, but these errors were encountered: