Moodle 3.9 - 4.0.1 Unable to find a default lock instance.

Moodle 3.9 - 4.0.1 Unable to find a default lock instance.

by Otaku Dude -
Number of replies: 1

Hello all,

I have just ungraded our 4 Moodles to version 4..0.1 and all has gone smoothly apart from one. I get the error - Unable to find a default lock instance when adding a recourse to any page. Debug info below. I have purged caches, deleted the contents of moodledata/localcache and moodledata/cache and also replaced the moodle/cache folder just in case there was some corruption to the files whilst upgrading.

  • Moodle 4.0.1
  • Server running Oracle Linux 8
  • PHP version 7.4
  • Theme Lambda

Thank you,

Nige.


Unable to find a default lock instance.

More information about this error

×Debug info:
Error code: ex_nodefaultlock
×Stack trace:
  • line 595 of /cache/classes/config.php: cache_exception thrown
  • line 580 of /cache/classes/config.php: call to cache_config->get_default_lock()
  • line 168 of /cache/classes/helper.php: call to cache_config->get_lock_for_store()
  • line 1700 of /cache/classes/loaders.php: call to cache_helper::get_cachelock_for_store()
  • line 1655 of /cache/classes/loaders.php: call to cache_application->ensure_cachelock_available()
  • line 772 of /lib/modinfolib.php: call to cache_application->acquire_lock()
  • line 380 of /course/modlib.php: call to course_modinfo::purge_course_module_cache()
  • line 184 of /course/modlib.php: call to edit_module_post_actions()
  • line 170 of /course/modedit.php: call to add_moduleinfo()
×Output buffer: </div>

Average of ratings: -
In reply to Otaku Dude

Re: Moodle 3.9 - 4.0.1 Unable to find a default lock instance.

by Otaku Dude -
Hi all,

Sorted!! I needed to delete th config.php file in moodledata/muc

Thanks,
Nige.
Average of ratings: Useful (2)