Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: course reuse > copy course issue

$
0
0
by Nicolas Dunand.  

Hello,
Did any of you get any update on this?

For context, we just updated from Moodle 4.2 to 4.4 and the exact same thing started happening. I've been investigating for a few days now without any success.

I added some code to try and trace the issue. From what I can see the cron job performing the copy task ends up deleting the course – asynchronouly, which is why we can see the course for a minute or so before it disappears.

[1] => Array
(
[file] => /var/www/html/lib/classes/task/asynchronous_copy_task.php
[line] => 75
[function] => delete_course
[args] => Array
(
[0] => 32129
[1] => )

)

We also have to course Recycle Bin enabled and can recover our deleted courses from here.

Digging further in the code, here's what I get, catching the Exception and trying to get its properties:

Course copy: Can not load backup controller for copy, marking job as failed

error/backup_controller_dbops_loading_invalid_controller

/var/www/html/backup/util/dbops/backup_controller_dbops.class.php

#0 /var/www/html/backup/controller/backup_controller.class.php(604): backup_controller_dbops::load_controller()
#1 /var/www/html/lib/classes/task/asynchronous_copy_task.php(62): backup_controller::load_controller()
#2 /var/www/html/lib/classes/cron.php(519): core\task\asynchronous_copy_task->execute()
#3 /var/www/html/lib/classes/cron.php(302): core\cron::run_inner_adhoc_task()
#4 /var/www/html/lib/classes/cron.php(128): core\cron::run_adhoc_tasks()
#5 /var/www/html/admin/cli/cron.php(186): core\cron::run_main_process()
#6 {main}

So it looks like the backup controller is somehow left in an "unloadable" state (?), then the Exception is caught and the course deletion is triggered.

Still investigating, I'll post back if/when I have news or more info.

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>