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 previous message
wsap is currently offline  wsap
Messages: 52
Registered: March 2018
Location: Halifax, NS
Member
From: notavpn.ca
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

 
Read Message
Read Message
Read Message
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: Sun Oct 17 22:21:10 GMT 2021