Bonjour,
un autre problème avec la synchronisation CAS/Moodle.
Après avoir constaté que certains étudiants n'apparaissaient pas dans Moodle à la suite d'une synchonisation CAS avec les tâches programmées, je suis repasser à l'ancienne méthode (CLI), et voilà les erreurs que j'obtiens.
php sync_users.php
[AUTH CAS] The sync users cron has been deprecated. Please use the scheduled task instead.
Connection au serveur LDAP...Création de la table temporaire tmp_extuser...............................................................................................................................................................................................................
...................................................................................................................................................................................................................................
..........................................................Default exception handler: Erreur d'écriture vers la base de données Debug: Duplicate entry '1-cgaches' for key 'mdl2_tmpextu_mneuse_uix'
INSERT INTO mdl2_tmp_extuser (username,mnethostid) VALUES(?,?)
[array (
0 => 'cgaches',
1 => '1',
)]
Error code: dmlwriteexception
* line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 1274 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1050 of /auth/ldap/auth.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 728 of /auth/ldap/auth.php: call to auth_plugin_ldap->ldap_bulk_insert()
* line 328 of /auth/cas/auth.php: call to auth_plugin_ldap->sync_users()
* line 66 of /auth/cas/cli/sync_users.php: call to auth_plugin_cas->sync_users()
!!! Erreur d'écriture vers la base de données !!!
!! Duplicate entry '1-cgaches' for key 'mdl2_tmpextu_mneuse_uix'
INSERT INTO mdl2_tmp_extuser (username,mnethostid) VALUES(?,?)
[array (
0 => 'cgaches',
1 => '1',
)]
Error code: dmlwriteexception !!
!! Stack trace: * line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 1274 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1050 of /auth/ldap/auth.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 728 of /auth/ldap/auth.php: call to auth_plugin_ldap->ldap_bulk_insert()
* line 328 of /auth/cas/auth.php: call to auth_plugin_ldap->sync_users()
* line 66 of /auth/cas/cli/sync_users.php: call to auth_plugin_cas->sync_users()
!!
Potential coding error - existing temptables found when disposing database. Must be dropped!
Est-ce que cela parle à quelqu'un ?
En vous remerciant,
Jérémie