Error Creating Backup - Moodle 3.2+

Error Creating Backup - Moodle 3.2+

by Dave Emsley -
Number of replies: 1

I have an error occurring when trying to backup a Moodle course from Moodle 3.2+

I have just upgraded to 3.2+ from 2.8+

Error is error/cannot_finish_ui_if_not_setting_ui

I know this was discussed in thread https://moodle.org/mod/forum/discuss.php?d=160927 but that thread didn't seem to have a solution.


More information about this error
Debug info:
Error code: cannot_finish_ui_if_not_setting_ui
$a contents:
Stack trace:
    line 167 of /backup/controller/backup_controller.class.php: backup_controller_exception thrown
    line 135 of /backup/util/ui/backup_ui.class.php: call to backup_controller->finish_ui()
    line 131 of /backup/backup.php: call to backup_ui->execute()


Any ideas?

Cheers

Dave



Average of ratings: -
In reply to Dave Emsley

Re: Error Creating Backup - Moodle 3.2+

by Ken Task -
Picture of Particularly helpful Moodlers

Thread referenced kinda old and it did have mulitple causes and solutions per situation ... nothing universal that I saw ... soooo ....

Besides the debug output can you find any hints in error log of web service or any references in php error logs?

A few things to check ... amount a memory a php script can consume, max time a php script can run, number of files opened (backups containing scorms do have multiple files), a plugin/addon that was compatible in 2.8 but no longer compatible in 3.2.

Are you stepping through the backup process or using the 'skip to end' button?  One of the comments in the files referenced in the debug says to throw that error if the 'backup plan isn't correct' ... plan to backup is created in stages, I think .. maybe one of those skipped.

Have command line access?   If so, could use the moodlecode/admin/cli/backup.php script from the command line to backup the course.   Takes apache/web service out of the loop in backups and think I'd send the backup to a known location so if it does succeed backup can be found and it it has a humanly recognizable name.  Plus, if restore becomes and issue that backup can be inspected via command line as well.

'spirit of sharing', Ken