Page MenuHomeSoftware Heritage

cron spam: <root@*> find /var/log/kafka -type f -not -name *.gz -a -ctime +1 -exec gzip {} \+
Closed, MigratedEdits Locked

Description

This is recurrent daily on various machines running kafka. Details on the affected files vary, but the typical email body is:

gzip: /var/log/kafka/kafka-request.log.gz already exists;       not overwritten
gzip: /var/log/kafka/controller.log.gz already exists;  not overwritten
gzip: /var/log/kafka/kafka-authorizer.log.gz already exists;    not overwritten

Event Timeline

zack triaged this task as Normal priority.Feb 6 2020, 8:18 AM
zack created this task.
olasd claimed this task.
olasd added a subscriber: olasd.
zack reopened this task as Open.EditedNov 17 2020, 12:48 PM

I'm not ~100% sure is the same issue, but the symptoms are very similar. I'm still getting daily this logspam:

Subject: Cron <root@esnode1> find /var/log/kafka -type f -name *.log.* -a -not -name *.gz -a -ctime +1 -exec gzip {} \+

it's always from the same 3 nodes (esnode{1,2,3}) and the mail content is:

gzip: /var/log/kafka/kafkaServer-gc.log.7.gz already exists;    not overwritten
gzip: /var/log/kafka/kafkaServer-gc.log.8.gz already exists;    not overwritten
gzip: /var/log/kafka/kafkaServer-gc.log.6.gz already exists;    not overwritten

with varying log rotation numbers.