by Mike Kelly.
Hi Ken,
Definitely some discoveries. I love the "MySQL server has gone away" phrasing
The db server is still there and responding to requests, but obviously something's not right with its responses, as far as Moodle is concerned.
After running the tasks, the temp/backups dir is still quite large - there were 260 gigs in there before and 259 afterwards. The trashdir also don't show much in the way of change.
I'll test it on the 2nd affected machine later this afternoon, but I expect I'll probably see similar results.
Execute scheduled task: Clean backup tables and logs (core\task\backup_cleanup_task)
... used 2 dbqueries
... used 10.85179400444 seconds
Scheduled task complete: Clean backup tables and logs (core\task\backup_cleanup_task)
Execute scheduled task: Delete stale temp files (core\task\file_temp_cleanup_task)
... used 0 dbqueries
... used 33.5936460495 seconds
Scheduled task complete: Delete stale temp files (core\task\file_temp_cleanup_task)
... used 1 dbqueries
... used 33.594274997711 seconds
Scheduled task failed: Delete stale temp files (core\task\file_temp_cleanup_task),Error reading from
database
Debug info:
MySQL server has gone away
SELECT * FROM mdl_task_scheduled WHERE classname = ?
[array (
0 => '\\core\\task\\file_temp_cleanup_task',
)]
Backtrace:
* line 1245 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1571 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
* line 1543 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
* line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 674 of /lib/classes/task/manager.php: call to moodle_database->get_record()
* line 162 of /admin/tool/task/cli/schedule_task.php: call to core\task\manager::scheduled_task_complete()
!!! Error reading from database !!!
Debug info: MySQL server has gone away
SELECT * FROM mdl_task_scheduled WHERE classname = ?
[array (
0 => '\\core\\task\\file_temp_cleanup_task',
)]
Error code: dmlreadexception
Stack trace: * line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
* line 1245 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1571 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
* line 1543 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
* line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 637 of /lib/classes/task/manager.php: call to moodle_database->get_record()
* line 180 of /admin/tool/task/cli/schedule_task.php: call to core\task\manager::scheduled_task_failed()
Execute scheduled task: Cleanup category recycle bin (tool_recyclebin\task\cleanup_category_bin)
... used 1 dbqueries
... used 0.015813827514648 seconds
Scheduled task complete: Cleanup category recycle bin (tool_recyclebin\task\cleanup_category_bin)
Execute scheduled task: Cleanup course recycle bin (tool_recyclebin\task\cleanup_course_bin)
... used 1 dbqueries
... used 0.01140308380127 seconds
Scheduled task complete: Cleanup course recycle bin (tool_recyclebin\task\cleanup_course_bin)