Project

General

Profile

Actions

Bug #20791

closed

Logrotate configuration for relayd is broken

Added by François ARMAND almost 3 years ago. Updated over 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 #1

Updated by Nicolas CHARLES almost 3 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #2

Updated by Nicolas CHARLES almost 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1746
Actions #3

Updated by Nicolas CHARLES almost 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Anonymous almost 3 years ago

Actions #5

Updated by Elaad FURREEDAN almost 3 years ago

  • Fix check changed from To do to Checked
Actions #6

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.2 and 7.1.0~rc1 which were released today.

Actions

Also available in: Atom PDF