telegraf: Wrong perms for main config file and config dir in 1.28

Relevant telegraf.conf

none

Logs from Telegraf

none

System info

telegraf 1.28, RockyLinux 8

Docker

No response

Steps to reproduce

  1. install telegraf
  2. observe /etc/telegraf/telegraf.conf gets installed with mode 0644 , and /etc/telegraf/telegraf.d gets installed with mode 0750 .
  3. observe this prevents telegraf from starting.

Expected behavior

telegraf should start

Actual behavior

telegraf does not start

Additional info

ll /etc/telegraf/

total 500 drwxr-xr-x 2 root root 4096 Sep 12 05:22 crypto -rw-r----- 1 root root 1016 Sep 12 05:22 telegraf.conf -rw-r–r-- 1 root root 497518 Sep 11 15:52 telegraf.conf.sample drwxr-x— 2 root root 4096 Sep 12 05:23 telegraf.d

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 2
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Hi,

The package repo now contains version v1.28.1 now which includes the revert. Waiting on upstream reviews for the docker image.

@soymgomez, @Hount, @moucho, I would still very much like to see a ls -la /etc/telegraf from the upgrade to v1.28.0 if possible.

Thanks folks!

It creates telegraf.conf.sample and deletes telegraf.conf. The contents of telegraf.conf.sample are not the same as the deleted telegraf.conf:

[root@test]# ls -lah /etc/telegraf/ total 1004K drwxr-xr-x 7 root root 4,0K sep 13 08:08 . drwxr-xr-x. 129 root root 20K sep 13 08:00 … drwxr-x— 3 telegraf root 4,0K ago 19 2021 .cache -rw-r–r-- 1 root root 467K ago 21 16:03 telegraf.conf.rpmnew -rw-r----- 1 telegraf root 320 ago 5 2020 telegraf.conf.rpmsave -rw-r–r-- 1 root root 486K sep 11 17:52 telegraf.conf.sample drwxr-x— 2 telegraf root 4,0K sep 13 08:08 telegraf.d drwxr-x— 2 telegraf root 4,0K ago 5 2020 telegraf.debug