Closed SheriffOfNotts closed 3 years ago
Hi, This is because of the file/folder permissions.
You need to change the owner of the ./data/grafana
folder on your host machine to match the uid the Grafana container is running as.
chown -R 472 ./data/grafana
I will look to commit a permanent fix into the repo.
Hi thanks for your quick reply. FYI I'm running this on a Synology. Sorry for the dumb questions, but I know my UID, but chown is throwing an error saying it can't find the ./data/grafana folder?
chown -R 1026 ./data/grafana chown: cannot access ‘./data/grafana’: No such file or directory
Its a relative path, so your need to run the command from the repository root
Thanks for the info, but still got problems :( Sorry to be a pain..
These are the steps I've taken..
Then:
xxx@Server:/volume1/docker/starlink-main$ chown -R 1026 ./data/grafana xxx@Server:/$ cd /volume1/docker xxx@Server:/volume1/docker$ cd starlink-main xxx@Server:/volume1/docker/starlink-main$ docker-compose pull && docker-compose up --remove-orphan ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. xxx@Server:/volume1/docker/starlink-main$ sudo docker-compose pull && docker-compose up --remove-orphan Password: Pulling starlink_exporter ... done Pulling speedtest_exporter ... done Pulling blackbox ... done Pulling prometheus ... done Pulling grafana ... done ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. xxx@Server:/volume1/docker/starlink-main$
No idea why, but tried re-installing and all works. Fab tool - thanks for your help.
Installed on docker and all containers running. I can't access localhost:3000 and when looking at grafana logs:
GF_PATHS_DATA='/var/lib/grafana' is not writable. mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later