Public bug reported:

When the glusterfs-common and glusterfs-server packages are both
installed at the same time, a conflicting logrotate rule is installed.
(glusterfs-server depends on glusterfs-common.) This rule causes the
logrotate cronjob to give an error.

$ cat glusterfs-common 
/var/log/glusterfs/*.log /var/log/glusterfs/bricks/*.log {
        daily
        rotate 7
        delaycompress
        compress
        notifempty
        missingok
        postrotate
                [ ! -f /var/run/glusterd.pid ] || kill -HUP `cat 
/var/run/glusterd.pid` ; killall -HUP glusterfs > /dev/null 2>&1 || true
        endscript
}
$ cat glusterfs-server
/var/log/glusterfs/*/*.log {
        daily
        rotate 7
        delaycompress
        compress
        notifempty
        missingok
        copytruncate
        postrotate
                [ ! -f /var/run/glusterd.pid ] || kill -HUP `cat 
/var/run/glusterd.pid`
        endscript
}
$ sudo -Hi /etc/cron.daily/logrotate
error: glusterfs-server:1 duplicate log entry for 
/var/log/glusterfs/bricks/local-glustertest-stor1.log

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: glusterfs-common 3.7.6-1ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-66.87-generic 4.4.44
Uname: Linux 4.4.0-66-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Mar 21 13:39:15 2017
InstallationDate: Installed on 2015-02-18 (761 days ago)
InstallationMedia: Xubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140723)
SourcePackage: glusterfs
UpgradeStatus: Upgraded to xenial on 2017-03-02 (19 days ago)

** Affects: glusterfs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1674673

Title:
  error: glusterfs-server:1 duplicate log entry for
  /var/log/glusterfs/bricks/local-glustertest-stor1.log

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glusterfs/+bug/1674673/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to