mariolukas / Docker-CO2-Monitoring

A Docker environment with Grafana, InfluxDB, Telegraf and Mosquitto for monitoring Co2 values.
GNU General Public License v3.0
7 stars 1 forks source link

Permission issues for grafana #4

Open olberger opened 3 years ago

olberger commented 3 years ago

FWIW, I'm trying to run on Linux, and have permission issues for Grafana:

$ sudo docker-compose up
Starting mosquitto ... done
Starting influxdb  ... done
Starting grafana   ... done
Starting telegraf  ... done
Attaching to influxdb, mosquitto, grafana, telegraf
influxdb     | 2021-03-14T18:03:57.045466240Z   info    found existing boltdb file, skipping setup wrapper  {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
grafana      | GF_PATHS_DATA='/var/lib/grafana' is not writable.
mosquitto    | 1615745037: mosquitto version 2.0.9 starting
mosquitto    | 1615745037: Config loaded from /mosquitto/config/mosquitto.conf.
mosquitto    | 1615745037: Opening ipv4 listen socket on port 1884.
mosquitto    | 1615745037: mosquitto version 2.0.9 running
mosquitto    | 1615745038: New connection from 172.19.0.5:36164 on port 1884.
telegraf     | 2021-03-14T18:03:58Z I! Starting Telegraf 1.17.3
mosquitto    | 1615745038: New client connected from 172.19.0.5:36164 as Telegraf-Consumer-1nE0S (p2, c1, k60).
mosquitto    | 1615745038: Telegraf-Consumer-1nE0S 0 sensors
grafana      | You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later

Will try to report if I find a suitable workaround

KernelPanicAUS commented 3 years ago

This should be fixed when #5 is merged