Automated backups unfinished

Automated backups unfinished

by Bernat Martinez -
Number of replies: 2

Hi everyone, recently I'm having a problem with a automated backups in Moodle. When I try to backup manually all courses, cerminal shows this error,

Server Time: Mon, 17 Aug 2020 11:09:46 +0200

Execute adhoc task: core\task\course_backup_task

... started 11:09:46. Current memory use 35.2MB.

Processing automated backup for course: Física.1BA(BO)

Automated backup for course: XXXXX encounters an error.

Exception: No se puede encontrar registro de datos en la tabla backup_courses de la base de datos.

Debug: SELECT * FROM {backup_courses} WHERE courseid = ? AND laststatus = ?

[array (

  0 => '165',

  1 => 6,

)]

Has anyone have the same problem or know the solution?


Thanks in advance

Average of ratings: -
In reply to Bernat Martinez

Re: Automated backups unfinished

by Bernat Martinez -
In addition this error also appears...

Processing asynchronous backup for backup: b33367afd3ca83e879629c301ecd5576
!!! Detectado un error de codificación, debe ser corregido por un programador: A lock was created but not released at:
[dirroot]/lib/cronlib.php on line 154

Code should look like:

$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(cf236410d4e9e4b6d71e66552b20ce7ec02463d2);
$lock->release(); // Locks must ALWAYS be released like this.

!!!
Potential coding error - existing temptables found when disposing database. Must be dropped!
In reply to Bernat Martinez

Re: Automated backups unfinished

by Bernat Martinez -
Error code: codingerror !!
!! Stack trace: * line 117 of /lib/classes/lock/lock.php: coding_exception thrown
* line 76 of /lib/cronlib.php: call to core\lock\lock->__destruct()
* line 79 of /admin/cli/cron.php: call to cron_run()
!!
Potential coding error - existing temptables found when disposing database. Must be dropped!
PHP Fatal error: Uncaught Error: Call to a member function real_escape_string() on null in /home/benedu/public_html/lib/dml/mysqli_native_moodle_database.php:1140
Stack trace:
#0 /home/benedu/public_html/lib/dml/mysqli_native_moodle_database.php(1269): mysqli_native_moodle_database->emulate_bound_params()
#1 /home/benedu/public_html/lib/dml/moodle_database.php(1624): mysqli_native_moodle_database->get_records_sql()
#2 /home/benedu/public_html/lib/classes/lock/mysql_lock_factory.php(158): moodle_database->get_record_sql()
#3 /home/benedu/public_html/lib/classes/lock/lock.php(102): core\lock\mysql_lock_factory->release_lock()
#4 /home/benedu/public_html/lib/classes/lock/lock.php(116): core\lock\lock->release()
#5 [internal function]: core\lock\lock->__destruct()
#6 {main}
thrown in /home/benedu/public_html/lib/dml/mysqli_native_moodle_database.php on line 1140

Fatal error: Uncaught Error: Call to a member function real_escape_string() on null in /home/benedu/public_html/lib/dml/mysqli_native_moodle_database.php:1140
Stack trace:
#0 /home/benedu/public_html/lib/dml/mysqli_native_moodle_database.php(1269): mysqli_native_moodle_database->emulate_bound_params()
#1 /home/benedu/public_html/lib/dml/moodle_database.php(1624): mysqli_native_moodle_database->get_records_sql()
#2 /home/benedu/public_html/lib/classes/lock/mysql_lock_factory.php(158): moodle_database->get_record_sql()
#3 /home/benedu/public_html/lib/classes/lock/lock.php(102): core\lock\mysql_lock_factory->release_lock()
#4 /home/benedu/public_html/lib/classes/lock/lock.php(116): core\lock\lock->release()
#5 [internal function]: core\lock\lock->__destruct()
#6 {main}
thrown in /home/benedu/public_html/lib/dml/mysqli_native_moodle_database.php on line 1140