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

Accidentally cancelled moosh course-backup, now backups don't work

$
0
0
by Jonathan Tsoi.  

Hi to anyone who wants to read,

I was recently on working on backing-up some courses. I have a simple and dirty bash shell script that, given a course ID and a category ID, would call moosh course-backup for the course ID, then restore that course's backup file into the specific category. I run this script using the nohup command, so that I can continue to continue working on other things in the background.

Unfortunately, my finger got twitchy at one point and I seem to have accidentally cancelled a backup (with Ctrl + C) that was happening halfway through. Ever since then, every other backup I've tried to make will not create the .mbz file needed.

The error message is below, with the bits that I think relevant bolded. Judging from the message, I double-checked that I had the correct permissions for my moodledata directory (which is called /mnt in our server), and I did. Heck, I gave up and have it set to a very open 777 permission right now.

The current setup, as far as I know:

  • 2 CentOS8 servers that are load balanced
  • A common mounted drive that acts as our moodledata folder (some sort of Windows DfsrShare thing, I don't much about it)
  • Moodle 3.7.6

The folder that the error message complains about DOES exist, but the backup.mbz does NOT exist, and that seems to be triggering this error message. I do not know why backup.mbz is not being created. In said folder below, these are its current contents:

  • activities/
  • completion.xml
  • course/
  • files/
  • files.xml
  • gradebook.xml
  • grade_history.xml
  • groups.xml
  • moodle_backup.xml
  • outcomes.xml
  • questions.xml
  • roles.xml
  • scales.xml
  • sections/


PHP Warning:  unlink(/mnt/temp/backup/4de68bb3aa416f9f32de05e4ee3ae38f/backup.mbz): No such file or directory in /var/www/html/moodle/backup/util/helper/backup_helper.class.php on line 126

Warning: unlink(/mnt/temp/backup/4de68bb3aa416f9f32de05e4ee3ae38f/backup.mbz): No such file or directory in /var/www/html/moodle/backup/util/helper/backup_helper.class.php on line 126
Default exception handler: error/cannot_empty_backup_temp_dir Debug:
Error code: cannot_empty_backup_temp_dir
$a contents:
* line 54 of /backup/util/helper/backup_helper.class.php: backup_helper_exception thrown
* line 70 of /backup/util/helper/backup_helper.class.php: call to backup_helper::clear_backup_dir()
* line 68 of /backup/moodle2/backup_stepslib.php: call to backup_helper::delete_backup_dir()
* line 34 of /backup/util/plan/backup_execution_step.class.php: call to drop_and_clean_temp_stuff->define_execution()
* line 181 of /backup/util/plan/base_task.class.php: call to backup_execution_step->execute()
* line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
* line 119 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
* line 337 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
* line 95 of /var/www/html/moosh/Moosh/Command/Moodle23/Course/CourseBackup.php: call to backup_controller->execute_plan()
* line 354 of /var/www/html/moosh/moosh.php: call to Moosh\Command\Moodle23\Course\CourseBackup->execute()

!!! error/cannot_empty_backup_temp_dir !!!

Viewing all articles
Browse latest Browse all 6815

Trending Articles



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