Logrotate servide fails to rotate some logs

My YunoHost server

Hardware: VPS bought online
YunoHost version: x.x.x
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

The logrotate service is failing for some services. Before it was ignoring those services because they had too open permissions in their config files. I fixed those permisions ins /etc/logrotate.d/ and now I’m getting the following errors:

Jul 25 09:44:22  logrotate[398718]: error: skipping "/var/log/calibreweb/calibreweb.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in conf>
Jul 25 09:44:22  logrotate[398718]: error: skipping "/var/log/calibreweb//var/log/calibreweb/calibreweb-access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root")>
Jul 25 09:44:22  logrotate[398718]: error: skipping "/var/log/freshrss/freshrss.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config f>
Jul 25 09:44:22  logrotate[398718]: error: skipping "/var/log/miniflux/*.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to >
Jul 25 09:44:22  logrotate[398718]: error: skipping "/var/log/rportd/api-access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config f>
Jul 25 09:44:22  Jul 25 09:44:22 yuno.danielo.es logrotate[398718]: error: skipping "/var/log/calibreweb/calibreweb.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in conf>
Jul 25 09:44:22 yuno.danielo.es logrotate[398718]: error: skipping "/var/log/calibreweb//var/log/calibreweb/calibreweb-access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root")>
Jul 25 09:44:22 yuno.danielo.es logrotate[398718]: error: skipping "/var/log/freshrss/freshrss.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config f>
Jul 25 09:44:22 yuno.danielo.es logrotate[398718]: error: skipping "/var/log/miniflux/*.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to >
Jul 25 09:44:22 yuno.danielo.es logrotate[398718]: error: skipping "/var/log/rportd/api-access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config f>
Jul 25 09:44:22 yuno.danielo.es logrotate[398718]: error: skipping "/var/log/rportd/rportd.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file >
Jul 25 09:44:22 yuno.danielo.es systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURElogrotate[398718]: error: skipping "/var/log/rportd/rportd.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file >
Jul 25 09:44:22  systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.