OpenVZ Forum


Home » General » Support » logrotate duplicates for vz-event
logrotate duplicates for vz-event [message #53746] Mon, 10 May 2021 22:27 Go to next message
wsap is currently offline  wsap
Messages: 60
Registered: March 2018
Location: Halifax, NS
Member
Hey folks,

We recently started getting alerts every time logrotate is run like this from a few host nodes:

error: vz-event:1 duplicate log entry for /var/log/vz-events.log


It appears that the disp-helper package has created two different logrotate configs for vz-events.log:

- /etc/logrotate.d/vz-event
- /etc/logrotate.d/collector

The contents of each are identical:

/var/log/vz-events.log {
        daily
        rotate 3
        size 100M
        delaycompress
        missingok
}


And according to yum whatprovides, both files are supposed to be there...


# yum whatprovides '*vz-event' 

disp-helper-1.0.19-2.vz7.x86_64 : Stat collector
Repo        : openvz-os
Matched from:
Filename    : /etc/logrotate.d/vz-event


# yum whatprovides '*logrotate.d/collector'

disp-helper-1.0.19-2.vz7.x86_64 : Stat collector
Repo        : openvz-os
Matched from:
Filename    : /etc/logrotate.d/collector


Is the vz-event file or the collector file the correct one going forward? Would like to remove the right one so updates don't create duplicates again in the future. (Both files have the same edited date).

Or perhaps devs need to update the disp-helper package to remove one of them?

Cheers

[Updated on: Tue, 11 May 2021 13:41]

Report message to a moderator

Re: logrotate duplicates for vz-event [message #53747 is a reply to message #53746] Tue, 11 May 2021 13:46 Go to previous messageGo to next message
wsap is currently offline  wsap
Messages: 60
Registered: March 2018
Location: Halifax, NS
Member
Compared the disp-helper package from 7.0.15 with the one in 7.0.16 release and it's clear that the logrotate config file 'collector' was the one that was added, whereas vz-event existed previously.

We're going to assume that collector is the one vz devs wanted there and vz-event was accidentally not removed when collector was added. This fixes it for each node:

[ -f /etc/logrotate.d/collector ] && rm -f /etc/logrotate.d/vz-event

[Updated on: Tue, 11 May 2021 13:51]

Report message to a moderator

Re: logrotate duplicates for vz-event [message #53748 is a reply to message #53747] Wed, 12 May 2021 01:09 Go to previous message
wsap is currently offline  wsap
Messages: 60
Registered: March 2018
Location: Halifax, NS
Member
Details here https://bugs.openvz.org/browse/OVZ-7266

Proper solution:

rpm -Uvh http://repo.virtuozzo.com/vzlinux/7/x86_64/os/Packages/d/disp-helper-1.0.19-3.vz7.x86_64.rpm

[Updated on: Wed, 12 May 2021 01:13]

Report message to a moderator

Previous Topic: ext4 checksum errors after upgrade to OpenVZ 7.0.16
Next Topic: OpenVZ 7, option "bootorder" seems to have no effect when starting/stopping CT
Goto Forum:
  


Current Time: Tue Mar 19 05:00:30 GMT 2024

Total time taken to generate the page: 0.02441 seconds