[Bug 1947660] Re: textfile collector's apt.sh systemd timer runs as root, preventing read access

2021-10-18 Thread Ben Ridley
Turns out this was caused by a stricter umask meaning global read wasn't allowed on the file. Vanilla setup seems to work ok, so closing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947660 Title:

[Bug 1947660] Re: textfile collector's apt.sh systemd timer runs as root, preventing read access

2021-10-18 Thread Ben Ridley
Turns out this was caused by a stricter umask meaning global read wasn't allowed on the file. Vanilla setup seems to work ok, so closing. ** Changed in: prometheus-node-exporter-collectors (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of

[Bug 1947660] [NEW] textfile collector's apt.sh systemd timer runs as root, preventing read access

2021-10-18 Thread Ben Ridley
Public bug reported: prometheus-node-exporter-apt.service currently runs as the root account, and uses sponge to write the output into /var/lib/prometheus/node- exporter. This results in ownership of the apt.prom file belonging to root so it cannot be read by the prometheus user that runs the