Project

General

Profile

Actions

Bug #2820

closed

logrotate doesn't seem to work on SuSE

Added by Nicolas PERRON over 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

With Rudder 2.4.0~beta2 Rudder server on a SLES 11, logrotate doesn"t seem to work:

# logrotate -v /etc/logrotate.d/rudder
reading config file /etc/logrotate.d/rudder
reading config info for /var/log/rudder/apache2/*.log 
error: /etc/logrotate.d/rudder:8 unknown group 'adm'
error: found error in /var/log/rudder/apache2/*.log , skipping
removing last 1 log configs
error: /etc/logrotate.d/rudder:11 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.d/rudder:12 unknown option 'if' -- ignoring line
error: /etc/logrotate.d/rudder:12 unexpected text
error: /etc/logrotate.d/rudder:13 unknown option 'invoke' -- ignoring line
error: /etc/logrotate.d/rudder:13 unexpected text
error: /etc/logrotate.d/rudder:14 unknown option 'else' -- ignoring line
error: /etc/logrotate.d/rudder:15 duplicate log entry for fi
error: found error in /etc/init.d/apache2 reload > /dev/null
                fi
            fi
        endscript
}

/var/log/rudder/ldap/slapd.log , skipping
removing last 1 log configs
reading config info for /var/log/rudder/reports/*.log 
error: /etc/logrotate.d/rudder:32 unknown group 'adm'
error: found error in /var/log/rudder/reports/*.log , skipping
removing last 1 log configs

Handling 3 logs

rotating pattern: /var/log/rudder/apache2/*.log  after 1 days (30 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/rudder/apache2/access.log
  log does not need rotating
considering log /var/log/rudder/apache2/error.log
  log does not need rotating

rotating pattern: /etc/init.d/apache2 reload > /dev/null
                fi
            fi
        endscript
}

/var/log/rudder/ldap/slapd.log  1048576 bytes (no old logs will be kept)
empty log files are rotated, old logs are removed
considering log /etc/init.d/apache2
  log does not need rotating
considering log reload
error: stat of reload failed: Aucun fichier ou dossier de ce type
considering log >
error: stat of > failed: Aucun fichier ou dossier de ce type
considering log /dev/null
  log does not need rotating
considering log fi
error: stat of fi failed: Aucun fichier ou dossier de ce type

rotating pattern: /var/log/rudder/reports/*.log  after 1 days (30 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/rudder/reports/all.log
  log does not need rotating
considering log /var/log/rudder/reports/extLinuxReport.log
  log does not need rotating
considering log /var/log/rudder/reports/extWinReport.log
  log does not need rotating
considering log /var/log/rudder/reports/linuxlog.log
  log does not need rotating
considering log /var/log/rudder/reports/winlog.log
  log does not need rotating
Two reasons:
  • 'adm' group doesn't exit on SuSE
  • sharedscript part seems to not be correctly parsed

Related issues 1 (0 open1 closed)

Related to Rudder - User story #2209: PT distributePolicy : Copy the logrotate configuration if not presentReleasedMatthieu CERDA2012-01-27Actions
Actions

Also available in: Atom PDF