Backup Error processing archive file

Backup Error processing archive file

by Bert van der Hooft -
Number of replies: 1

Automatic backup task has an error. The server task gives a delay.

Executing automated_backup_task in CLI gives the error:

  • Backing up XXXX.

    ... used 18 dbqueries

    ... used 21.788386106491 seconds

    Scheduled task failed: Automatische backups (core\task\automated_backup_task),Fout bij het verwerken van het archiefbestand (note: Error processing archive file)

The manual backup runs ok. Activating debugging there gives the result:

  • setting controller status to 700
  • saving controller to db
  • calculating controller checksum 41e7d1628d542dcc0905e50eb1628dbe
  • loading controller from db
  • setting controller status to 800
  • setting controller status to 1000
  • saving controller to db

I'm using Moodle 3.0.3+ (Build: 20160506) 

What could be wrong? What's blocking the automatic backup


Average of ratings: -
In reply to Bert van der Hooft

Re: Backup Error processing archive file

by Ken Task -
Picture of Particularly helpful Moodlers

Hard to say ... so more questions ...

When the automated backup script fails, Is there a directory in /moodledata/temp/backup/ with a long name ... something like '02a5c174a5e99ff94ee40113ae54a9929c638e4d'.  If so, there should also be a matching .log file that might give a hint at what stage the course backup failed.

If it reached 900 (finished is 1000) could be there is a valid good backup with an .mbz file extension in (as per example) 02a5c174a5e99ff94ee40113ae54a9929c638e4d.   The very last step in the backup process is to *copy* the backup to a destination .... if set to defaults, that is back into the sea of files in moodledata/filedir/   Depending upon operating system and permssions/ownerships of moodledata that could be the hickup ... can't copy the file ... notice that's copy ... not move.

Then there is always a chance that another automated task to clean up is actually romping on the automated backup ... ie, clean up happens while Moodle trying to complete an automated backup.

'spirit of sharing', Ken