General help

Scheduled task failed: LDAP user synchronization task (auth_ldap \ task \ sync_task), Could not find data logging in the database table of the database

 
Picture of Isaac Garriga
Scheduled task failed: LDAP user synchronization task (auth_ldap \ task \ sync_task), Could not find data logging in the database table of the database
 

Hi, we're using Moodle 3.2.1 with LDAP connection. Now, we moving from a Windows server to ubutu server. The problem is the synchronitzation task, doesn't work.
Scheduled task failed: Scheduled task failed: LDAP user synchronization task (auth_ldap \ task \ sync_task), Could not find data logging in the database table of the database
Version:1.0
StartHTML:000000227
EndHTML:000018939
StartFragment:000017924
EndFragment:000018873
StartSelection:000017924
EndSelection:000018873
SourceURL:https://moodle.xxxx.com/admin/tool/task/schedule_task.php
Debug info:
SELECT id,category FROM {course} WHERE id IS NULL
[array (
)]
Backtrace:
* line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 6644 of /lib/accesslib.php: call to moodle_database->get_record()
* line 70 of /lib/classes/event/grade_deleted.php: call to context_course::instance()
* line 1036 of /lib/grade/grade_grade.php: call to core\event\grade_deleted::create_from_grade()
* line 1498 of /lib/gradelib.php: call to grade_grade->delete()
* line 4063 of /lib/moodlelib.php: call to grade_user_delete()
* line 770 of /auth/ldap/auth.php: call to delete_user()
* line 50 of /auth/ldap/classes/task/sync_task.php: call to auth_plugin_ldap->sync_users()
* line 141 of /lib/cronlib.php: call to auth_ldap\task\sync_task->execute()
* line 249 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 91 of /admin/tool/task/schedule_task.php: call to cron_run_single_task()
Any idea?? Thank you very much!

 
Average of ratings: -
Picture of Ken Task
Re: Scheduled task failed: LDAP user synchronization task (auth_ldap \ task \ sync_task), Could not find data logging in the database table of the database
Particularly helpful Moodlers

Sounds like/looks like you may *not* have cloned/migrated from Windows to Ubuntu ... new instance of Moodle?    Take it that LDAP authentication is turned on and has been configured, on the Ubuntu box?   And that you do have php-ldap insalled and active?

[root@sos ~]# php -m |grep ldap

should respond with just:

ldap

If installed and loaded.

Credentials of the bind user for LDAP correct?   Are LDAP ports opened on the LDAP server to the new Ubuntu box?

Have you tested bind user credentials by accessing the LDAP server via Ubuntu's ldapsearch or other such tool?

Emma ought to be a long any minute now ... ;)

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Isaac Garriga
Re: Scheduled task failed: LDAP user synchronization task (auth_ldap \ task \ sync_task), Could not find data logging in the database table of the database
 

Ubunto respond:

ldap (in red)

is it correct??

Connect to LDAP I think that's Works because, all students can login... 

I'm lost.


 
Average of ratings: -