We have a lock problem with Moodle 4.1.5+ on Debian\apache\phpfpm 7.4x on a cluster. Mostly with memcache, we don't go to redis for now, we disable the MUC and we've less lock in the UI. But we still have some lock in the UI and also everyday in the CRON (mostly on send notification).
The lock factory is now by default on the filesystem. Is it better to put it on the DB ? We use postgressql.
The error are : A lock was created but not released
but also
Adhoc task failed: core_course\task\course_delete_modules,Coding error detected, it must be fixed by a programmer: The course module 156651 could not be deleted. Unable to acquire a lock for caching.: /var/www/moodlecode/lib/modinfolib.php(644) #0 /var/www/moodlecode/lib/modinfolib.php(2817): course_modinfo::build_course_cache()
#1 /var/www/moodlecode/course/lib.php(973): rebuild_course_cache()
#2 /var/www/moodlecode/course/classes/task/course_delete_modules.php(66): course_delete_module()
#3 /var/www/moodlecode/lib/cronlib.php(367): core_course\task\course_delete_modules->execute()
#4 /var/www/moodlecode/lib/cronlib.php(198): cron_run_inner_adhoc_task()
#5 /var/www/moodlecode/lib/cronlib.php(76): cron_run_adhoc_tasks()
#6 /var/www/moodlecode/admin/cli/cron.php(178): cron_run()
#7 {main}
Backtrace:
* line 367 of /lib/cronlib.php: call to core_course\task\course_delete_modules->execute()
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()
In french sorry
Impossible d'enclencher un verrouillage pour le cache => Unable to engage a lock for the cache
Adhoc task failed: mod_forum\task\send_user_notifications,Impossible d'enclencher un verrouillage pour le cache.
Any idea and help will be greatly appreciated.
Thanks in advance.
Have a nice day.
Dominique.