influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

logrotate cron job reports error for influxdb

Open codyshepherd opened this issue 3 years ago • 3 comments

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

codyshepherd avatar Sep 09 '21 17:09 codyshepherd

I'm also affected by this issue. A simple temporarily fix:

chmod g-w /etc/logrotate.d/influxdb

boutetnico avatar Dec 10 '21 09:12 boutetnico

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).

jdstrand avatar Apr 17 '22 21:04 jdstrand

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.

CendioMartin avatar Jul 19 '22 07:07 CendioMartin

This should now be fixed with #24306

bnpfeife avatar Jul 05 '23 16:07 bnpfeife