danopstech / starlink

📈 Starlink Monitoring System. Measuring the performance of your Starlink internet connection
GNU General Public License v3.0
272 stars 42 forks source link

Can't access localhost:3000 - Error message in logs #1

Closed SheriffOfNotts closed 3 years ago

SheriffOfNotts commented 3 years ago

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

dwillcocks commented 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.

Reference: https://linuxize.com/post/linux-chown-command/

SheriffOfNotts commented 3 years ago

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

dwillcocks commented 3 years ago

Its a relative path, so your need to run the command from the repository root

SheriffOfNotts commented 3 years ago

Thanks for the info, but still got problems :( Sorry to be a pain..

These are the steps I've taken..

  1. Copied the contents of the zip file to my docker folder

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$

SheriffOfNotts commented 3 years ago

No idea why, but tried re-installing and all works. Fab tool - thanks for your help.