ich habe ein FreePBX auf Debian Linux 11 installiert und laufen die Logfiles voll, weil Logrotate sich nicht starten läßt:
Code: Alles auswählen
systemctl status logrotate.service
● logrotate.service - Rotate log files
Loaded: loaded (/lib/systemd/system/logrotate.service; static)
Active: failed (Result: exit-code) since Thu 2022-01-27 15:11:45 CET; 9min ago
TriggeredBy: ● logrotate.timer
Docs: man:logrotate(8)
man:logrotate.conf(5)
Process: 3806 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE)
Main PID: 3806 (code=exited, status=1/FAILURE)
CPU: 172ms
Jan 27 15:11:44 asteriskpbx systemd[1]: Starting Rotate log files...
Jan 27 15:11:44 asteriskpbx logrotate[3806]: error: skipping "/var/log/asterisk/debug" because parent directory has insecure permissions (It's world writable or writable by group which is not >
Jan 27 15:11:44 asteriskpbx logrotate[3806]: error: skipping "/var/log/asterisk/messages" because parent directory has insecure permissions (It's world writable or writable by group which is n>
Jan 27 15:11:44 asteriskpbx logrotate[3806]: error: skipping "/var/log/asterisk/full" because parent directory has insecure permissions (It's world writable or writable by group which is not ">
Jan 27 15:11:44 asteriskpbx logrotate[3806]: error: skipping "/var/log/asterisk/queue_log" because parent directory has insecure permissions (It's world writable or writable by group which is >
Jan 27 15:11:45 asteriskpbx systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Jan 27 15:11:45 asteriskpbx systemd[1]: logrotate.service: Failed with result 'exit-code'.
Jan 27 15:11:45 asteriskpbx systemd[1]: Failed to start Rotate log files.
Code: Alles auswählen
ls -l -d /var/log/asterisk/
drwxrwxr-x 4 asterisk asterisk 4096 1. Jan 18:41 /var/log/asterisk/
Code: Alles auswählen
/usr/sbin/logrotate /etc/logrotate.conf --debug
Code: Alles auswählen
...
error: skipping "/var/log/asterisk/debug" 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 tell logrotate which user/group should be used for rotation.
...
Viele Grüße
James