Moodle v.3.7.7
We have been running memcached for application caching successfully for a number of years. We just started to implement session caching on a separate memcached server and are getting session lock errors:
We're going to use two memcache servers. One for session caching and one for application caching.
- test-memcachenv1.cds.capilanou.ca will be used for session caching
- test-memcachenv2.cds.capilanou.ca will be used for application caching
We tried turning session.lazy_write OFF on both web servers and it seemed like it made a difference at the start but the errors continued to come up.
Our configuration and errors are below. Does anyone have any ideas on what to try next?
[21-Aug-2020 22:16:39 America/Vancouver] PHP Warning: session_start(): Unable to clear session lock record in /var/www/html/elearn.capu.ca/htdocs/lib/classes/session/handler.php on line 42
[21-Aug-2020 22:16:39 America/Vancouver] PHP Warning: session_start(): Failed to read session data: memcached (path: test-memcachenv1.cds.capilanou.ca:11211) in /var/www/html/elearn.capu.ca/htdocs/lib/classes/session/handler.php on line 42
[21-Aug-2020 22:16:39 America/Vancouver] Default exception handler: error/An error occurred whilst communicating with the server Debug:
Error code: An error occurred whilst communicating with the server
$a contents:
* line 92 of /lib/classes/session/manager.php: core\session\exception thrown
* line 794 of /lib/setup.php: call to core\session\manager::start()
* line 71 of /config.php: call to require_once()
* line 37 of /my/index.php: call to require_once()
[21-Aug-2020 22:16:39 America/Vancouver] PHP Warning: session_start(): Failed to read session data: memcached (path: test-memcachenv1.cds.capilanou.ca:11211) in /var/www/html/elearn.capu.ca/htdocs/lib/classes/session/handler.php on line 42
[21-Aug-2020 22:16:39 America/Vancouver] Default exception handler: error/An error occurred whilst communicating with the server Debug:
Error code: An error occurred whilst communicating with the server
$a contents:
* line 92 of /lib/classes/session/manager.php: core\session\exception thrown
* line 794 of /lib/setup.php: call to core\session\manager::start()
* line 71 of /config.php: call to require_once()
* line 37 of /my/index.php: call to require_once()