Prometheus-grafana stack never starts #678

Open
opened 2026-03-07 21:21:37 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @aj619 on GitHub (Mar 30, 2023).

After going to the prometheus-grafana folder and doing docker compose up -d there is a error for the prometheus config

prometheus | ts=2023-03-30T16:54:25.711Z caller=main.go:468 level=error msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="open /etc/prometheus/prometheus.yml: permission denied"
prometheus exited with code 2

Please fix this.

Originally created by @aj619 on GitHub (Mar 30, 2023). After going to the prometheus-grafana folder and doing docker compose up -d there is a error for the prometheus config prometheus | ts=2023-03-30T16:54:25.711Z caller=main.go:468 level=error msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="open /etc/prometheus/prometheus.yml: permission denied" prometheus exited with code 2 Please fix this.
Author
Owner

@Xiakit commented on GitHub (Jul 21, 2023):

I now it has been long, but the following fixed it for me. You just need to find out what id the container uses and then make the id owner of the data directories you configured.

What worked for me was: chown -R 65534:65534 prometheus/

@Xiakit commented on GitHub (Jul 21, 2023): I now it has been long, but the following fixed it for me. You just need to find out what id the container uses and then make the id owner of the data directories you configured. What worked for me was: `chown -R 65534:65534 prometheus/`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#678