# Logrotate servide fails to rotate some logs

**URL:** <https://forum.yunohost.org/t/logrotate-servide-fails-to-rotate-some-logs/25747>\
**Category:** Support\
**Tags:** vps, english\
**Created:** [July 25, 2023, 11:33am UTC](https://forum.yunohost.org/t/logrotate-servide-fails-to-rotate-some-logs/25747 "2023-07-25T11:33:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielo515](https://forum.yunohost.org/user_avatar/forum.yunohost.org/danielo515/32/7383_2.png) [@danielo515](https://forum.yunohost.org/u/danielo515)\
**Post date:** [July 25, 2023, 11:33am UTC](https://forum.yunohost.org/t/logrotate-servide-fails-to-rotate-some-logs/25747/1 "2023-07-25T11:33:47Z")

</div>

### 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:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [August 24, 2023, 11:33am UTC](https://forum.yunohost.org/t/logrotate-servide-fails-to-rotate-some-logs/25747/2 "2023-08-24T11:33:50Z")

</div>

Closed on August 24, 2023, 11:33am UTC

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