influxdb
influxdb copied to clipboard
logrotate cron job reports error for influxdb
reported log error:
"/etc/cron.daily/logrotate:
error: Ignoring influxdb because it is writable by group or others."
Possibly related to permissions issue of logrotate files laid down by influxdb installation:
If I take a look inside the package, the permissions for the logrotate file are set incorrectly:
" rpm -qvl influxdb2-2.0.8-1.x86_64 | grep logrotate
-rw-rw-r-- 1 root root 113 Aug 13 20:14 /etc/logrotate.d/influxdb"
Possibly new in 2.0.8 and/or 2.x
I'm also affected by this issue. A simple temporarily fix:
chmod g-w /etc/logrotate.d/influxdb
The temporary fix indeed works but gets overwritten on upgrade. @bnpfeife - I think the umask must be 002 on the system this is being generated on. Can you add this to your list of the next release? (I've tentatively assigned you; feel free to adjust).
This affects us as well on all servers where we have InfluxDB installed. It's a pain to get hit by this cron warning each time the package gets bumbed.
This should now be fixed with #24306