Course backup ad hoc tasks pending

Course backup ad hoc tasks pending

by Ruan Combrink -
Number of replies: 1

Good day,

We are using Moodle 3.10.1 with Moove 3.10.

We are receiving reports that some ad hoc processes are not running. The report looks as follows:


Automated backup status

 Summary

==================================================
Courses: 10
OK: 0
Skipped: 4
Error: 0
Unfinished: 0
Course backup ad hoc task pending: 6
Warning: 0
Automated backup pending: 0

Backup completed successfully


We have looked at the cron report and which states:

X-Accel-Buffering: no

Content-Type: text/html; charset=UTF-8

Date: Thu, 11 Mar 2021 08:08:00 GMT

Server: Apache


!!! Sorry, internet access to this page has been disabled by the administrator. !!!

!! 

Error code: cronerrorclionly !!

!! Stack trace: * line 498 of /lib/setuplib.php: moodle_exception thrown

* line 61 of /admin/cron.php: call to print_error()

 !!

I'm new to this so my apologies if this has an obvious answer.

Regards


Average of ratings: -
In reply to Ruan Combrink

Re: Course backup ad hoc tasks pending

by Ray Hinton -

I am not terribly advanced, but could offer some questions that might help you find more information!

What makes you say that there are ad-hoc tasks that are not running? "Course backup ad hoc task pending: 6" just means that the automated course backup process started, and assigned 6 courses to be backed up by the ad-hoc task handler. It then immediately writes that in an email (it does not wait for the ad-hoc tasks to finish, successfully or otherwise), so it does not mean they necessarily failed.

When you go to Site administration > Reports > Backups, are there any Errors, Unfinished, Pending, etc in the Status column? Or is everything either OK or Skipped?

Next - I am wondering if the cron error is related to your course backups, or something else. Where did that cron report come from? Moodle Scheduled task logs? Server cron logs? I could be mistaken, but "cronerrorclionly" sounds like your cron job might not be getting run at all (which means a lot of things on your site might not be working).

Here is a page in the Moodle docs with the same error message: https://docs.moodle.org/310/en/Cron#The_web_based_Moodle_cron_command

When you go to Site administration > Reports > Status, are there any warnings/messages there? Do you have command-line access to your server? Are you on managed hosting?

Sorry I can't provide any solutions! I hope those questions help you get moving in the right direction, at least.



Average of ratings: Useful (3)