Cron error was:
/etc/cron.daily/logrotate: error: error running non-shared postrotate script for /var/cache/kafkatee/kafkatee.stats.json of '/var/cache/kafkatee/kafkatee.stats.json ' run-parts: /etc/cron.daily/logrotate exited with return code 1
From a quick look at the files, seems that we have 2 issues:
- /etc/logrotate.d/kafkatee is in charge of rotating /var/cache/kafkatee/kafkatee.stats.json and issue a reload of kafkatee
- /etc/logrotate.d/kafkatee-webrequest is in charge of rotating many other kafkatee files and issue a reload of kafkatee. Moreover it doesn't have the sharedscripts directive for logrotate so I think it's issuing a reload for each rotated file.
My educated guess is that moving the path /var/cache/kafkatee/kafkatee.stats.json into the /etc/logrotate.d/kafkatee-webrequest configuration and using the sharedscripts directive should solve the issue.