awesome-compose icon indicating copy to clipboard operation
awesome-compose copied to clipboard

Prometheus-grafana stack never starts

Open aj619 opened this issue 2 years ago • 1 comments

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.

aj619 avatar Mar 30 '23 16:03 aj619

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 avatar Jul 21 '23 13:07 Xiakit