Manual Course Backup not working

Manual Course Backup not working

by Ricardo Caiado -
Number of replies: 0
Picture of Particularly helpful Moodlers
Hi,

Automated Course Backup is working, but I can not get to manually backup any course.

Here is the scenario:

Moodle site:

"Process pending" bar not updating

CLI: "php /admin/cli/backup.php --courseid=XXX"

== Performing backup... ==
instantiating backup controller 375aa3d8e8c4c07db7924ebfdf179a91
setting controller status to 100
loading controller plan
setting controller status to 300
applying plan defaults
setting controller status to 400
setting file inclusion to
checking plan security
setting controller status to 500
setting controller status to 700
saving controller to db
calculating controller checksum 169c32a6f3f4d7b35906aad722c2957d
loading controller from db
setting file inclusion to 1
setting controller status to 800
saving controller to db
calculating controller checksum ced77105521bec47824920b0c3f94f30
loading controller from db


Then nothing happens...

After some debugging I found out that:

(1) it stops at "$bc->execute_plan();" (backup.php)
(2) 1 directory and 1 file are created in "/moodledata/temp/backup" - both names are the "backupid" from "mdl_backup_controllers" column. File is 0 bytes, Dir contains two XML files (course + enrolments)

PHP error log: " Potential coding error - existing temptables found when disposing database. Must be dropped!"

Any help is appreciated

Ricardo

Moodle 3.8.7+
PHP 7.4
PostgreSQL 12
Average of ratings: -