-
Notifications
You must be signed in to change notification settings - Fork 140
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
Sync Microsoft 365 Events In To Moodle - Task Fails #2609
Comments
We have a similar error after upgrading to Moodle 4.4.1 Execute scheduled task: Cohort sync (local_o365\task\cohortsync)
|
Hi there, We have been experiencing the same Cohort sync task failure as above for a while now. It seems to be a scheduled task supposed to run every day. As @grantcolin mentions, we discovered it after upgrading to Moodle 4.4.1 last week (an update in 4.4 pushes notifications to us now about these task failures). However, after checking the logs, it looks like the task has been failing every day since July 1st for us, so probably not related to the upgrade itself. Here is a failure message example (personal data has been removed):
Could you please investigate the cause of this task failure and provide a solution for fixing it? Thank you. Moodle version: 4.4.1
PHP version: 8.1 |
@aboarken @grantcolin @dragos5436 Since the issue from the OP is resolved, I'm going to close this issue. Regards, |
FYI, I confirmed my theory. I'll provide a solution for the next release. Microsoft group names can take 256 character, while the Moodle database table to store the group cache can store 255. If you try to save group cache for a group with 256 characters in the name, you will see the error. Please create a new issue so that I can link the solution. Regards, |
To answer your question @weilai-irl, yes, I have edited the email addresses listed after '1 =>' in the array above. I'm assuming these would go under the field 'name' in the mdl_local_o365_groups_cache table. I just checked the original error message and the total length of this entry is 256 characters. |
Issue created: #2641 |
Please I am getting this task error after updating Moodle 4.4.1+ (Build: 20240719) and plugin to latest version. Kindly for your support.
Execute scheduled task: Sync Microsoft 365 events in to Moodle (local_o365\feature\calsync\task\importfromoutlook)
... started 22:33:49. Current memory use 30.1 MB.
Debugging increased temporarily due to faildelay of 86400
Syncing events for user #14003
... used 4 dbqueries
... used 0.01019287109375 seconds
Scheduled task failed: Sync Microsoft 365 events in to Moodle (local_o365\feature\calsync\task\importfromoutlook),Failed to parse time string (@2022-03-20T03:00:00.0000000 UTC) at position 8 (-): Double timezone specification
Backtrace:
The text was updated successfully, but these errors were encountered: