textfile collector's apt.sh systemd timer runs as root, preventing read access

Bug #1947660 reported by Ben Ridley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
prometheus-node-exporter-collectors (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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 main node exporter process.

Revision history for this message
Ben Ridley (bridsy) wrote :

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.