/var/cache/lemonldap-ng not created by liblemonldap-ng-handler-perl
Concerned version
Version: %2.0.7 on Ubuntu 20.04.3 LTS
Platform: Nginx
Summary
- The folder
/var/cache/lemonldap-ng
has not been created byliblemonldap-ng-handler-perl
package installation. This has the effect to fail sessions handling, and users were redirected in loop in their browser. - I had to increase the loglevel to see this error in syslog. I think that this kind of message should not be
info
buterror
, or at leastwarn
!
Logs
==> /var/log/syslog <==
Oct 8 08:59:56 proxy LLNG[901534]: [info] Session f05ae59e483f0d6c6ebcb73045ff2b56 can't be retrieved
Oct 8 08:59:56 proxy LLNG[901534]: [info] Session cannot be tied: mkdir /var/cache/lemonldap-ng: Permission denied at /usr/share/perl5/Cache/FileBackend.pm line 222.
Backends used
Configuration and Sessions storage are done in LDAP.
Possible fixes
Manually create the folder :
sudo mkdir -m700 /var/cache/lemonldap-ng
sudo chown www-data: /var/cache/lemonldap-ng