-
Bug
-
Resolution: Fixed
-
Blocker
-
3.8.5, 3.9.2, 3.10
-
MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-70137-master-2 -
See notes on MDLQA-15383 and MDL-51111. Summary below:
From mudrd8mz
Everything went well with the upgrade up until 1 minute and 10 seconds when it failed with:
++ Success (0.43 seconds) ++
-->auth_ldap
++ Success (0.45 seconds) ++
-->enrol_fee
++ Success ++
-->enrol_self
Default exception handler: Unable to save the cache config to file. Debug: Unable to open the cache config file.
Error code: ex_configcannotsave
* line 115 of /cache/locallib.php: cache_exception thrown
* line 578 of /cache/locallib.php: call to cache_config_writer->config_save()
* line 505 of /cache/locallib.php: call to cache_config_writer->write_definitions_to_cache()
* line 458 of /cache/classes/factory.php: call to cache_config_writer::update_definitions()
* line 218 of /cache/disabledlib.php: call to cache_factory->create_definition()
* line 254 of /cache/disabledlib.php: call to cache_factory_disabled->create_definition()
* line 182 of /cache/classes/loaders.php: call to cache_factory_disabled->create_cache_from_definition()
* line 273 of /lib/accesslib.php: call to cache::make()
* line 1433 of /lib/accesslib.php: call to accesslib_clear_role_cache()
* line 1203 of /lib/accesslib.php: call to assign_capability()
* line 2343 of /lib/accesslib.php: call to assign_legacy_capabilities()
* line 709 of /lib/upgradelib.php: call to update_capabilities()
* line 1922 of /lib/upgradelib.php: call to upgrade_plugins()
* line 193 of /admin/cli/upgrade.php: call to upgrade_noncore()
!!! Unable to save the cache config to file. !!!
!! Unable to open the cache config file.
Error code: ex_configcannotsave !!
!! Stack trace: * line 115 of /cache/locallib.php: cache_exception thrown
* line 578 of /cache/locallib.php: call to cache_config_writer->config_save()
* line 505 of /cache/locallib.php: call to cache_config_writer->write_definitions_to_cache()
* line 458 of /cache/classes/factory.php: call to cache_config_writer::update_definitions()
* line 218 of /cache/disabledlib.php: call to cache_factory->create_definition()
* line 254 of /cache/disabledlib.php: call to cache_factory_disabled->create_definition()
* line 182 of /cache/classes/loaders.php: call to cache_factory_disabled->create_cache_from_definition()
* line 273 of /lib/accesslib.php: call to cache::make()
* line 1433 of /lib/accesslib.php: call to accesslib_clear_role_cache()
* line 1203 of /lib/accesslib.php: call to assign_capability()
* line 2343 of /lib/accesslib.php: call to assign_legacy_capabilities()
* line 709 of /lib/upgradelib.php: call to update_capabilities()
* line 1922 of /lib/upgradelib.php: call to upgrade_plugins()
* line 193 of /admin/cli/upgrade.php: call to upgrade_noncore()
!!
real 1m10.455s
user 0m1.764s
sys 0m1.228
I tried to simply re-run the upgrade with eventually finished after another 2m40sec.
However, during the post-upgrade check I noticed that the MUC config file was rewritten and all our caching configuration was lost. There was no store configured, nothing.
Luckily for us, we had a relatively fresh backup of the config file so we were able to recover this time.
But I suspect there went something wrong during the upgrade when the disabled caching tried to write the MUC config.php
Marking this as Failed to raise attention to it. Sorry and thank you.
Then
The problem persists. As reported by tsala in
MDLSITE-6271- when we visit admin/index.php we still get a set of messages like:
Your cache configuration file is out of date and needs to be refreshed.
line 93 of /cache/locallib.php: call to debugging()
line 578 of /cache/locallib.php: call to cache_config_writer->config_save()
line 505 of /cache/locallib.php: call to cache_config_writer->write_definitions_to_cache()
line 458 of /cache/classes/factory.php: call to cache_config_writer::update_definitions()
line 218 of /cache/disabledlib.php: call to cache_factory->create_definition()
line 254 of /cache/disabledlib.php: call to cache_factory_disabled->create_definition()
line 182 of /cache/classes/loaders.php: call to cache_factory_disabled->create_cache_from_definition()
line 75 of /lib/classes/string_manager_standard.php: call to cache::make()
line 7304 of /lib/moodlelib.php: call to core_string_manager_standard->__construct()
line 7432 of /lib/moodlelib.php: call to get_string_manager()
line 8286 of /lib/moodlelib.php: call to get_string()
line 8306 of /lib/moodlelib.php: call to moodle_getlocale()
line 904 of /lib/setup.php: call to moodle_setlocale()
line 172 of /config.php: call to require_once()
line 88 of /admin/index.php: call to require()
Your cache configuration file is out of date and needs to be refreshed.
line 93 of /cache/locallib.php: call to debugging()
line 578 of /cache/locallib.php: call to cache_config_writer->config_save()
line 505 of /cache/locallib.php: call to cache_config_writer->write_definitions_to_cache()
line 458 of /cache/classes/factory.php: call to cache_config_writer::update_definitions()
line 218 of /cache/disabledlib.php: call to cache_factory->create_definition()
line 254 of /cache/disabledlib.php: call to cache_factory_disabled->create_definition()
line 182 of /cache/classes/loaders.php: call to cache_factory_disabled->create_cache_from_definition()
line 2541 of /lib/accesslib.php: call to cache::make()
line 2525 of /lib/accesslib.php: call to get_all_capabilities()
line 452 of /lib/accesslib.php: call to get_capability_info()
line 772 of /admin/index.php: call to has_capability()
followed by "Error - Unable to save the cache config to file."
He notes that preventing the config_writer from saving the file if cache is disabled and there is a file addresses these issues.
- Discovered while testing
-
MDLQA-15383 CLONE - Upgrade test using a big data set with many users
- Passed
- has a non-specific relationship to
-
MDL-51111 MUC config.php random reset
- Closed