by Naaman Fallouh.
Hi,The real problem is that the automated backup works for a while and then stops, this eliminates the possibility of database table corruption, doesn't it?
Anyway, I tried what you'd suggested and here is the results:
- the user have is GRANTed ALL privileges on the database,
- the tables `mdl_backup_controllers`, `mdl_backup_courses` and `mdl_backup_logs` are all exist and are InnoDB,
- Both tables `mdl_backup_courses` and `mdl_backup_logs` have data.
About the content of the moodledata/temp/backup/ directory:
Yesterday I emptied it and run an automated backup, because of this it backed up much more courses than before emptying the directory, but at the end it stopped with the same error in the logs:
Backing up Linux Platform...
!!! Table "backup_logs" does not exist !!!
Debug info:
Error code: ddltablenotexist
Stack trace: * line 1194 of /lib/dml/mysqli_native_moodle_database.php: dml_exception thrown
...
In the temp folder I found the logs of finished courses and the folder of this course:
/var/lib/moodle/temp/backup$ ls -l ... drwxrwxrwx 5 www-data www-data 4096 Jul 13 01:57 b12d3b8488ee24a1c730e84540dbbe21 -rw-rw-rw- 1 www-data www-data 1261 Jul 13 01:57 b12d3b8488ee24a1c730e84540dbbe21.log ... /var/lib/moodle/temp/backup$ cat b12d3b8488ee24a1c730e84540dbbe21.log [Wed Jul 13 01:54:40 2016] [info] instantiating backup controller b12d3b8488ee24a1c730e84540dbbe21 [Wed Jul 13 01:54:40 2016] [debug] setting controller status to 100 [Wed Jul 13 01:54:40 2016] [debug] loading controller plan [Wed Jul 13 01:54:48 2016] [debug] setting controller status to 300 [Wed Jul 13 01:54:48 2016] [debug] applying plan defaults [Wed Jul 13 01:54:48 2016] [debug] setting controller status to 400 [Wed Jul 13 01:54:48 2016] [debug] setting file inclusion to 1 [Wed Jul 13 01:54:48 2016] [info] checking plan security [Wed Jul 13 01:54:48 2016] [debug] setting controller status to 700 [Wed Jul 13 01:54:49 2016] [debug] saving controller to db [Wed Jul 13 01:54:49 2016] [debug] calculating controller checksum 9faba742895b99656d23dfd4a2bc222f [Wed Jul 13 01:54:49 2016] [debug] loading controller from db [Wed Jul 13 01:54:49 2016] [debug] setting controller status to 700 [Wed Jul 13 01:54:49 2016] [debug] saving controller to db [Wed Jul 13 01:54:49 2016] [debug] calculating controller checksum 223d8d372009486dbb8d1481e8f20ff0 [Wed Jul 13 01:54:49 2016] [debug] loading controller from db [Wed Jul 13 01:54:49 2016] [debug] setting controller status to 800 [Wed Jul 13 01:57:43 2016] [error] backup_auto_failed_on_course BIT.ITI320
Any new Ideas?