oijkn / Docker-Raspberry-PI-Monitoring

A docker-compose stack solution for monitoring host and containers with Prometheus, Grafana, cAdvisor and NodeExporter.
MIT License
363 stars 55 forks source link

Unwritable directory #15

Closed cyberralf83 closed 2 years ago

cyberralf83 commented 2 years ago

The grafana container never starts for me and the log says: mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied GF_PATHS_DATA='/var/lib/grafana' is not writable. You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later

I have changed the host path in /home/pi/graphs so it should have write access. I also tried to change the container's permissions running: docker exec monitoring-grafana sudo chown 472 /var/lib/grafana/ but i get. Error response from daemon: Container is restarting, wait until the container is running. Or that the container is not running

hellotinh03 commented 2 years ago

I'm having the same problem, have you found a fix yet?

enthusedamateur commented 2 years ago

Also having this issue. Can this be reopened?

teemue commented 1 year ago

Anyone? OK, using bind mounts was the answer