I have the same problem. The digests are not digesting. Grateful for any help.
cheers,
Erik
What's worse is when I thought it was actually sending them when they disappeared from the database, they weren't being sent, they simply were getting deleted.
I've had problems time to time with individual messages disappearing, but in general Moodle's cron seems to work for the individual messages, just not the digest.
But of all the tables in my database, the one with a HUGE overhead was the quiz questions table...
Re: Daily digests aren't going out daily (still talking to myself)
Re: Daily digests aren't going out daily (still talking to myself)
Just wanted to send a note to let you know you are not alone. I haven't been to moodle.org for a while, so I hadn't seen your thread. I am having the same problem. Didn't want you to think you were alone! But I am a simple user, and not one of those kind souls "who know more about it than you do". Sorry I can't help. I tried changing forums to "everyone is subscribed", but that didn't help either.
It is sort of interesting that some people are getting e-mail and some are not. My husband's is working, but mine is not.
--Mary
Re: Daily digests aren't going out daily (still talking to myself)
php http://www.mysite.com/admin/cron.php
As someone had suggested elsewhere in the forums here. It seems to have solved the problem
But if your problem is a matter of some people getting individual messages and others not on a regular basis, I would suspect that perhaps you have a spam filter on an email account that is trapping the messages. As soon as I got cron working properly again on my site, I lost the digest that allegedly had been sent! I was using a gmail account and found it had been sent to the spam box!
Re: Daily digests aren't going out daily (still talking to myself)
Re: Daily digests aren't going out daily (still talking to myself)
Re: Daily digests aren't going out daily (still talking to myself)
See the thread below for an alternative to wget.
http://moodle.org/mod/forum/discuss.php?d=16193#77367
Steve
Re: Daily digests aren't going out daily (still talking to myself)
All this sounds very like problems we are experiencing. (Moodle 1.5.3+, w2K IIS)
Changed digest time and ran cron manually from url - pile of digests went out (but not all) - probably until script timeout mentioned elsewhere.
Changed again (was doing this around 6pm) and repeated the process.
From then on - no luck - tried changing digest time back - but cron would not play ball - as if it knew it had already been run. It would seem I would have to wait until next hour to run it again. Not very convenient as we have thousands in the forum queue table that I would like to flush out.
Do not have access to server at present - when I do I will have to increase script timeout temporarily to large value and run it again.
Question - each time cron run from url it kicks user off the system - should this be a worry if as claimed anyone can run it even on other people's moodle? Hopefully we have missed something, or it only affects the user/ip where the cron is run from (cannot test this fom home)
Andy
Re: Daily digests aren't going out daily (still talking to myself)
php http://example.com/moodle/admin/cron.php
Re: Daily digests aren't going out daily (still talking to myself)
I don't know why you'd be getting different behaviour from the external wget/manual method vs the internal php method. It's the same script.
Re: Daily digests aren't going out daily (still talking to myself)
Perhaps wget is being timed out or blocked in some shared environments?
Re: Daily digests aren't going out daily (still talking to myself)
Maybe there's some timeout issues with going through httpd (I'm assuming that's the big difference between using wget and using php directly).
The most recent report of a problem noted: "Yesterday, (18th) I received a Moodle digest with my posts of Jan 12th and then other's posts from Jan 16 and 17."
The only change we've noticed that seems, possibly, to immediately precede the appearance of the erratic delivery of digests was the installation of the recent security update to version 1.5.3+
Andrew
I don't know how much mileage this will get you, but this is what we were experiencing on our servers.
It seems that the forum digest cron takes a bit of time to complete. If you can check your phpinfo.php from the Admin page, you can look for the:
max_execution_time =
parameter. If it is at the default 30 seconds, you might be getting a timeout on the sending of the digests.
One way to make sure is to get the output of every cron execution on the installation. This will depend on how you can set the crontab and will require a bit of research on how to get your hosting service to send you the output of each cron execution.
If you have the cron set for every 15 minutes, you will get about 96 messages per day!. However, it will be worth having a day or two of logs to check. A successful script will have this message:
I use a filtering on the email client (Thunderbird) to let me know when a script has sent a digest and if it was not successful.
<snip>
Processing email digest for user 217... success.
Email digests successfully sent to 68 users.
done.
<snip>
If you see that it is timing out before all messages are sent, then you can do or one or both of two things:
1. Try to set the:
max_execution_time =
to a higher number. This, you might get your hosting provider to do it in php.ini or try to do this in the .htaccess file.
2. Set the digest sending time to an obscure time (2:00am?) when you anticipate that the server is not as busy.
As you are sharing your installation with other users on the same server, it would be more of a hit or miss on getting the timing right.
Monitoring the cron output will give you a better idea.
HTH,
Bill
OK I am facing similar and more problems with 1.6.
Cron works when it is called using
php http://www.mysite.com/admin/cron.php
instead of wget. Emails are also sent automatically. My cron is setup for 15 minutes, and every 15 minutes, mails are sent.
However, the cron run after the email Digest time, runs successfully without sending the forum digest mails. It does not send the forum digest mails until and unless you call the cron.php file manually. I have changed the max_execution_time = to 2000, even though my longest cron.php call is 350 secs. During the manual call of cron.php, there is no problem at all and all mails are sent out !
I've done some more tests on cron in moodle 1.6 and have reached this conclusion :
1. using php instead of wget to run the cron doesnt send out the Forum Digest emails - only. All other cron functions work.
2. using wget (GET) to call cron automatically works fine with 1.5 but not with 1.6. This has nothing to do with the versions of PHP and i have tested that.
3. If you use wget manually to run cron, you get logged out. While Martin calls that a security feature, I dont know if thats how it should be.
4. There is no way to automatically send out forum digest as of now ??