[Pkg-puppet-devel] Bug#625626: puppet: duplicate logrotate entry

rhatto rhatto at riseup.net
Wed May 4 16:44:58 UTC 2011


Package: puppet
Version: 2.6.2-4
Severity: normal


After upgrading from lenny to squeeze, the following error message is generated:

  Date: Wed, 04 May 2011 06:28:59 -0300
  From: Cron Daemon <root at box.example.org>
  To: root at box.example.org
  Subject: Cron <root at box> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  
  /etc/cron.daily/logrotate:
  error: puppetmaster:1 duplicate log entry for /var/log/puppet/masterhttp.log
  error: found error in /var/log/puppet/masterhttp.log , skipping

This happens because both /etc/logrotate.d/puppet and /etc/logrotate.d/puppetmaster
have rules that apply to /var/log/puppet/masterhttp.log.

Contents of /etc/logrotate.d/puppet:

  /var/log/puppet/*log {
    missingok
    create 0644 puppet puppet
    compress
    rotate 4
    
    postrotate
      [ -e /etc/init.d/puppetmaster ] && /etc/init.d/puppetmaster restart >/dev/null 2>&1 || true
      [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 || true
    endscript
  }

Contents of /etc/logrotate.d/puppetmaster:

  /var/log/puppet/masterhttp.log {
    missingok
    notifempty
    create 0644 puppet puppet
    compress
    rotate 4
    
    postrotate
      [ -x /etc/init.d/puppetmaster ] && /etc/init.d/puppetmaster restart >/dev/null 2>&1 || true
    endscript
  }

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-vserver-amd64 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pt_BR.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages puppet depends on:
ii  adduser                 3.112+nmu2       add and remove users and groups
ii  facter                  1.5.7-3          a library for retrieving facts fro
pn  libopenssl-ruby         <none>           (no description available)
ii  libruby [libxmlrpc-ruby 4.5              Libraries necessary to run Ruby 1.
ii  libshadow-ruby1.8       1.4.1-8          Interface of shadow password for R
ii  libxmlrpc-ruby          4.2              transitional dummy package
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  puppet-common           2.6.2-4          Centralized configuration manageme
ii  ruby1.8                 1.8.7.302-2      Interpreter of object-oriented scr

Versions of packages puppet recommends:
ii  libaugeas-ruby1.8             0.3.0-1.1  Augeas bindings for the Ruby langu
ii  ruby [rdoc]                   4.5        An interpreter of object-oriented 

Versions of packages puppet suggests:
pn  libselinux-ruby1.8            <none>     (no description available)
pn  puppet-el                     <none>     (no description available)
pn  vim-puppet                    <none>     (no description available)

-- Configuration Files:
/etc/default/puppet changed:
START=yes
DAEMON_OPTS=""


-- no debconf information





More information about the Pkg-puppet-devel mailing list