The script purgeCentralCache should be more fault tolerant
Concerned version
Version: 1.9.15
Platform: Apache
Summary
The reset password functionnality is down on our production platform since one week. The error appears after the user types his login. LemonLDAP is able to check if the user login exists (it shows a message that user does not exit, which is ok), but if it exists, it then fails with the following error: "session could not be unserialized". We already had that issue several months ago on our development platform, and the way to fix it was to empty the "sessions" table in one or several LemonLDAP databases (I can't remember exactly which one:llngglobal, llngpersistent). We cannot do that on the production platform, as I assume clearing those tables will disconnect all connected users. I assume there is an issue with a particular item in those tables (related to email send?) but as the table contains blob data, it is difficult to isolate it to be able to delete it and recover the expected behaviour. Can you help us fix this?
I add we have in parallel a project to upgrade in 2.X versions, but it is not planned yet.
Thank you
Logs
[:error] [pid 5164] Session could not be unserialized at /usr/share/perl5/vendor_perl/Apache/Session/Serialize/Storable.pm line 28.
Backends used
Sessions are stored in a MariaDB database