-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.5.1
-
MOODLE_405_STABLE
-
mdl-84491_redis_connection_405
-
mdl-84491_redis_connection_500
-
mdl-84491_redis_connection_main
-
Difficult
-
-
Hello,
I'm encountering error when using redis as session manager but only in a scheduled task, I confirmed that redis work properly for the rest.
To me, it seems really similar to this error here: https://tracker.moodle.org/browse/MDLSITE-7818 as the stack trace is mostly the same.
Steps to reproduce:
- Enable LDAP server authentication
- Setup redis as session handler
- Remove synced user from LDAP
- Run the task \auth_ldap\task\sync_task from CLI or GUI
This should produce the following error:
Scheduled task failed: Synchronisierung von LDAP-Nutzerkonten (auth_ldap\task\sync_task),Das Einrichten der Redis-Sitzung ist fehlgeschlagen. Bitte benachrichtigen Sie die Administrator/innen.
|
Backtrace:
|
* line 750 of /lib/classes/session/redis.php: call to core\session\redis->init()
|
* line 616 of /lib/classes/session/redis.php: call to core\session\redis->init_redis_if_required()
|
* line 576 of /lib/classes/session/manager.php: call to core\session\redis->get_sessions_by_userid()
|
* line 1005 of /lib/classes/session/manager.php: call to core\session\manager::get_sessions_by_userid()
|
* line 842 of /auth/ldap/auth.php: call to core\session\manager::destroy_user_sessions()
|
* line 55 of /auth/ldap/classes/task/sync_task.php: call to auth_plugin_ldap->sync_users_update_callback()
|
* line 410 of /lib/classes/cron.php: call to auth_ldap\task\sync_task->execute()
|
* line 194 of /admin/cli/scheduled_task.php: call to core\cron::run_inner_scheduled_task()
|