Hallo Friedrich, > > ich habe jetzt das debugging eingeschaltet und erhalte jetzt beim Aufruf von > >> [ -f /usr/share/moodle/admin/cli/cron.php ] && /usr/bin/php -f > >> [ /usr/share/moodle/admin/cli/cron.php > > folgende Meldungen > > Running cron for enrol_openlml... > ... started 14:19:23. Current memory use 39,7MB. > Starting enrolments for openlml enrolments plugin... > ++ Error: mdb->get_record() found more than one record! ++ > * line 1440 of /lib/dml/moodle_database.php: call to debugging() > * line 1400 of /lib/dml/moodle_database.php: call to > moodle_database->get_record_sql() * line 1379 of > /lib/dml/moodle_database.php: call to moodle_database->get_record_select() > * line 569 of /enrol/openlml/lib.php: call to moodle_database->get_record() > * line 200 of /enrol/openlml/lib.php: call to > enrol_openlml_plugin->get_cohort_id() * line 386 of /enrol/openlml/lib.php: > call to enrol_openlml_plugin->sync_enrolments() * line 413 of > /enrol/openlml/lib.php: call to enrol_openlml_plugin->enrol_openlml_sync() > * line 262 of /lib/cronlib.php: call to enrol_openlml_plugin->cron() * line > 61 of /admin/cli/cron.php: call to cron_run() hier liegt ein Problem in der Datenbank vor. Du hast in der Tabelle mdl_cohort mehrere Einträge mit gleicher idnumber.
Zur Reparatur: ------------------------ 11:11/0 arktur ~ # psql -U postgres moodle psql (9.1.14) Type "help" for help. moodle=# \d mdl_cohort Table "public.mdl_cohort" Column | Type | Modifiers -------------------+------------------------+--------------------------------------------------------- id | bigint | not null default nextval('mdl_cohort_id_seq'::regclass) contextid | bigint | not null name | character varying(254) | not null default ''::character varying idnumber | character varying(100) | description | text | descriptionformat | smallint | not null component | character varying(100) | not null default ''::character varying timecreated | bigint | not null timemodified | bigint | not null Indexes: "mdl_coho_id_pk" PRIMARY KEY, btree (id) "mdl_coho_con_ix" btree (contextid) moodle=# select name,idnumber,component from mdl_cohort order by idnumber; name | idnumber | component ------------------+------------------+--------------- 05a | 05a | enrol_openlml 05b | 05b | enrol_openlml 05c | 05c | enrol_openlml 05d | 05d | enrol_openlml 06a | 06a | enrol_openlml 06b | 06b | enrol_openlml 06c | 06c | enrol_openlml 06d | 06d | enrol_openlml 07a | 07a | enrol_openlml 07b | 07b | enrol_openlml 07c | 07c | enrol_openlml 07d | 07d | enrol_openlml 08a | 08a | enrol_openlml 08b | 08b | enrol_openlml 08c | 08c | enrol_openlml 08d | 08d | enrol_openlml 09a | 09a | enrol_openlml 09b | 09b | enrol_openlml 09c | 09c | enrol_openlml 09d | 09d | enrol_openlml 10a | 10a | enrol_openlml 10b | 10b | enrol_openlml 10c | 10c | enrol_openlml 10d | 10d | enrol_openlml 10e | 10e | enrol_openlml 10r | 10r | enrol_openlml 11a1 | 11a1 | enrol_openlml 11b1 | 11b1 | enrol_openlml 11b2 | 11b2 | enrol_openlml 11b3 | 11b3 | enrol_openlml ... moodle=# So sieht das bei mir aus. Finde die doppelten Einträge und entferne sie aus der Datenbank. Danach sollte das plugin durchlaufen. Gruß, Frank _______________________________________________ linuxmuster-user mailing list linuxmuster-user@lists.linuxmuster.net https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user