Started: 11/27/2009 4:21 AM
Problem with Live Services and using an automated backup
Hi I was wondering if anyone can help?
I'm encountering 2 issues with Windows Live Services at the minute that may cause us to move back to a different login system which will be a shame as apart from these 2 issues it works brilliantly.
Firstly we run an automated backup system on our Moodle server. Each night at midnight MoodleCron runs the Moodle cron script to start the backup of our courses etc.
The problem is that since I enabled Windows Live Services the Moodle Cron script stops when it gets to a certain stage. I have copied the code below and blanked out the site address.
Starting activity modules
Processing module function assignment_cron ...done.
Processing module function chat_cron ...done.
Processing module function forum_cron ...Starting digest processing...
Cleaned old digest records
done.
Processing module function journal_cron ...done.
Processing module function scorm_cron ...done.
Processing module function workshop_cron ...done.
Finished activity modules
Starting blocks
Processing cron function for rss_client....
http://xxx.xml ok
http://xxx.xml ok
http://xxx.xml ok
http://xxx.xml ok
4 feeds refreshed (took 0.011018 seconds)
done.
Processing cron function for search....Global searching is not enabled. Nothing performed by search.
done.
Processing cron function for live_services....
Every time it gets to this stage it then just stays stuck and doesn't move on. This means that our site hasn't backed up for around 2 weeks now via the cron method. Is there any known method for resolving this or fixing this?
Secondly when we login using the Windows Live ID authentication it works fine but it takes around 30 - 60 seconds before the Moodle home page then loads and the Windows Live Services block appears. Before we enabled this login via Moodle's internal system was immediate.
Any help people can give would be appreciated.
Posted: 11/27/2009 7:40 AM
Open
'blocks\live_services\cron.php'
And change it to :
Hi Andi,
The cron issue is an known issue and will be fixed in the next release which will be availabe very soon. we are also address the performance issue, the next release will bring better user experience in terms of page loading.
To fix the cron issue, edit 'blocks\live_services\cron.php' and change it to:
// ----- start
block_live_services_showAlerts)) {
require_once( $CFG->dirroot . '/blocks/live_services/services/alerts/message.class.php' );
/* Run the alerts group message cron job */
$message = new message();
$message->run_cron_group_deliver();
/* More cron jobs could be created here */
}
?>
// --- end
Posted: 11/27/2009 7:48 AM
<Opps, I lost all line breaks.>
To fix the exception runing cron, edit 'blocks\live_services\cron.php' and change it to:
// ----- start
<?php
global $CFG;
if (!empty($CFG->block_live_services_showAlerts)) {
require_once( $CFG->dirroot . '/blocks/live_services/services/alerts/message.class.php' );
/* Run the alerts group message cron job */
$message = new message();
$message->run_cron_group_deliver();
/* More cron jobs could be created here */
}
?>
// ----- end
Posted: 11/30/2009 7:38 AM
Great to see a fix for this issue :)
I was wondering if it was my imagination about the home page loading slowly, will be good to see the next release of the block - will there be any new features coming up or mainly bug fixes?
Posted: 12/1/2009 12:04 AM
From: Joe H
Posted: Friday, November 27, 2009 7:48 AM
Subject: Problem with Live Services and using an automated backup
<Opps, I lost all line breaks.>
To fix the exception runing cron, edit 'blocks\live_services\cron.php' and change it to:
// ----- start
<?php
global $CFG;
if (!empty($CFG->block_live_services_showAlerts)) {
require_once( $CFG->dirroot . '/blocks/live_services/services/alerts/message.class.php' );
/* Run the alerts group message cron job */
$message = new message();
$message->run_cron_group_deliver();
/* More cron jobs could be created here */
}
?>
// ----- end
Thank you very much for this it solved the backup problem.
Will the new release that solves the speed issue upon logging in be released soon as well?
As I said before though many thanks for this cron fix :)
Edited: 12/4/2009 10:43 AM
From: Andi
Posted: Friday, November 27, 2009 4:21 AM
Subject: Problem with Live Services and using an automated backup
Hi I was wondering if anyone can help? I'm encountering 2 issues with Windows Live Services at the minute that may cause us to move back to a different login system which will be a shame as apart from these 2 issues it works brilliantly. Firstly we run an automated backup system on our Moodle server. Each night at midnight MoodleCron runs the Moodle cron script to start the backup of our courses etc. The problem is that since I enabled Windows Live Services the Moodle Cron script stops when it gets to a certain stage. I have copied the code below and blanked out the site address. Starting activity modules Processing module function assignment_cron ...done. Processing module function chat_cron ...done. Processing module function forum_cron ...Starting digest processing... Cleaned old digest records done. Processing module function journal_cron ...done. Processing module function scorm_cron ...done. Processing module function workshop_cron ...done. Finished activity modules Starting blocks Processing cron function for rss_client.... http://xxx.xml ok http://xxx.xml ok http://xxx.xml ok http://xxx.xml ok 4 feeds refreshed (took 0.011018 seconds) done. Processing cron function for search....Global searching is not enabled. Nothing performed by search. done. Processing cron function for live_services.... Every time it gets to this stage it then just stays stuck and doesn't move on. This means that our site hasn't backed up for around 2 weeks now via the cron method. Is there any known method for resolving this or fixing this? Secondly when we login using the Windows Live ID authentication it works fine but it takes around 30 - 60 seconds before the Moodle home page then loads and the Windows Live Services block appears. Before we enabled this login via Moodle's internal system was immediate. Any help people can give would be appreciated.