Project

General

Profile

Actions

Bug #20791

closed

Logrotate configuration for relayd is broken

Added by François ARMAND about 2 years ago. Updated about 2 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

In 7.0, logrotate config file for relayd (/etc/logrotate.d/rudder-relay) is broken, at least on debian 10.
The content of the file is:

 {
 {
        daily
        missingok
        rotate
        compress
        notifyempty
        create
        delaycompress
        sharedscripts
        postrotate

        endscript
}
 {

Which leads to errors. Config for apache and slapd also have little errors, but not blocking ones:

root@server:/var/log/rudder/webapp# /usr/sbin/logrotate -f /etc/logrotate.conf -v
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file alternatives
reading config file apache2
reading config file apt
reading config file btmp
reading config file dbconfig-common
reading config file dpkg
reading config file postgresql-common
reading config file rsyslog
reading config file rudder
reading config file rudder-apache
error: rudder-apache:1 duplicate log entry for /var/log/rudder/apache2/access.log
error: rudder-apache:6 unknown option 'notifyempty' -- ignoring line
error: found error in file rudder-apache, skipping
reading config file rudder-relay
error: rudder-relay:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: rudder-relay:2 lines must begin with a keyword or a filename (possibly in double quotes)
error: rudder-relay:5 argument expected after rotate count
error: rudder-relay:7 unknown option 'notifyempty' -- ignoring line
error: rudder-relay:14 unexpected }
error: found error in file rudder-relay, skipping
reading config file rudder-slapd
error: rudder-slapd:1 duplicate log entry for /var/log/rudder/ldap/slapd.log
error: rudder-slapd:6 unknown option 'notifyempty' -- ignoring line
error: found error in file rudder-slapd, skipping
reading config file wtmp
Reading state from file: /var/lib/logrotate/status
Actions

Also available in: Atom PDF