Summary
The "Prometheus is restarting with a permissions error" section in docs/monitoring.md instructs operators to run:
sudo chown -R 65534:65534 "$ARC_MONITORING"/prometheus-data
However, the compose.yaml provided in the same guide sets user: "0" on the Prometheus service, which runs Prometheus as root. Root always has write access to the bind-mounted ./prometheus-data directory, so the described UID 65534 write-permission error cannot occur when following the guide as written.
The troubleshooting step applies only to operators who remove user: "0" (a reasonable security hardening step), but the guide does not explain this connection, making the section misleading.
Fix
Update the troubleshooting section to note that user: "0" in the provided compose config prevents this error, and that the chown step is relevant only when Prometheus runs as a non-root user.
Summary
The "Prometheus is restarting with a permissions error" section in
docs/monitoring.mdinstructs operators to run:sudo chown -R 65534:65534 "$ARC_MONITORING"/prometheus-dataHowever, the
compose.yamlprovided in the same guide setsuser: "0"on the Prometheus service, which runs Prometheus as root. Root always has write access to the bind-mounted./prometheus-datadirectory, so the described UID 65534 write-permission error cannot occur when following the guide as written.The troubleshooting step applies only to operators who remove
user: "0"(a reasonable security hardening step), but the guide does not explain this connection, making the section misleading.Fix
Update the troubleshooting section to note that
user: "0"in the provided compose config prevents this error, and that thechownstep is relevant only when Prometheus runs as a non-root user.