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

Adhoc task failed: core\task\asynchronous_copy_task,Attempt to assign property "subquestions" on false

$
0
0
von Samuel LMB.  

Hello Ken ,
Many thanksfor your answer.
-->Appears we are involved in prep for upcoming new semester which is usually a busy time for moodle servers : As far as today , I am the only one who is working on it because our students and teachers comes back massively tomorrow...
--> Investigate 'context ID' ... many quizzes look to be from a couple of courses. Find the course and investigate the quiz banks for those courses : many courses have
--> reference in php error logs to a moodle.domaine.fr instance of a Moodle. Is that obscured for security purposes? : yes not to put the real name ... but if you think it can be useful to let the full real name/lines , I can do it as so desesperate I am clin d’œil ....
--> Do you have multiple instances of moodle on that one server? : only 2 the production one , and the pre-production one build last week to help in investigation and making some test. The preprod one was build the help of my web server provider ... I deleted from the log above the logs of the preprod instance .
--> according to your suggestion here is now the recycle bin parameters : 

image.png

-->  Indicates the need to tweak some DB settings upward. Is DB server localhost? : here is my conf.php  

<?php // Moodle configuration file unset($CFG); global $CFG; $CFG = new stdClass(); $CFG->dbtype = 'mariadb'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'usrsrv_mood506'; $CFG->dbuser = 'usrsrv_mood506'; $CFG->dbpass = 'thepassword'; $CFG->prefix = 'mdlzn_'; $CFG->dboptions = array ( 'dbpersist' => 0, 'dbport' => '', 'dbsocket' => '', 'dbcollation' => 'utf8mb4_unicode_ci', ); $CFG->wwwroot = 'https://moodle.domaine.fr'; $CFG->dataroot = '/home/usrsrv/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 0777; $CFG->preventexecpath = true; $CFG->forced_plugin_settings['backup'] = []; $CFG->forced_plugin_settings['restore'] = []; require_once(__DIR__ . '/lib/setup.php');

So DB server seems local...

--> Suggest installing mysltuner.pl and run with superuser creds for the DB server. Pay attention to: Performance metrics (information on memory) as well as InnoDB metrics (InnoDB buffer pool / data size)  :  not sure i can install and execute it , I am not a superadmin/root user of the server  ( I think I am in a jail environnement )

Hope all of this help again. 

Questions : 

After running the fix script( cleanup_duplicates_context_cli_global_dp_parent_fix.php) , I ended up with many questions labeled duplicate1, duplicate2, etc., as well as numerous duplicate question categories, some of which also come from other parent categories or even from other courses within the course context.
I haven’t found a way to bulk delete these questions and categories.

so questions are :

  1. Is there a plugin, or alternatively, what SQL query should be run in PhpMyAdmin to delete all the questions whose names contain duplicateN within the given course context? What are the risks?

  2. How can I bulk delete several categories at once in Question Bank > Categories?

Thanks

Sam


Viewing all articles
Browse latest Browse all 6815

Trending Articles