Open leeprevost opened 2 years ago
Did you run 'run_me_1st.sh' before starting docker-compose? There are bind mount stuff for Grafana in yaml and if they are not available then this could happen.
https://github.com/KEGustafsson/influxdbv2-test-docker/blob/main/run_me_1st.sh#L46-L47
Yes I did.
Sent from my iPhone
On Sep 26, 2022, at 11:46 AM, Karl-Erik Gustafsson @.***> wrote:
Did you run 'run_me_1st.sh' before starting docker-compose? There are bind mount stuff for Grafana in yaml and if they are not available then this could happen.
https://github.com/KEGustafsson/influxdbv2-test-docker/blob/main/run_me_1st.sh#L46-L47
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Just tested fresh deployment and all components are running fine. OS Ubuntu 22.04LTS on amd64. Docker version 20.10.18 Docker-compose version 1.29.2
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
af9136bfdb08 grafana/grafana:latest "/run.sh" 7 minutes ago Up 7 minutes 0.0.0.0:3002->3000/tcp, :::3002->3000/tcp grafana_test
32e3f705dd5e telegraf:latest "/entrypoint.sh tele…" 7 minutes ago Up 7 minutes telegraf_test
2c7bb930f788 influxdb:latest "/entrypoint.sh infl…" 7 minutes ago Up 7 minutes 0.0.0.0:8087->8086/tcp, :::8087->8086/tcp influxdbv2_test
Attaching to grafana_test
grafana_test | Grafana server is running with elevated privileges. This is not recommended
grafana_test | logger=settings t=2022-09-26T18:56:27.065034661Z level=info msg="Starting Grafana" version=9.1.6 commit=92461d8d1e branch=HEAD compiled=2022-09-20T10:06:14Z
grafana_test | logger=settings t=2022-09-26T18:56:27.065514206Z level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
grafana_test | logger=settings t=2022-09-26T18:56:27.065554255Z level=info msg="Config loaded from" file=/etc/grafana/grafana.ini
grafana_test | logger=settings t=2022-09-26T18:56:27.065581163Z level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana"
grafana_test | logger=settings t=2022-09-26T18:56:27.065597266Z level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana"
grafana_test | logger=settings t=2022-09-26T18:56:27.065607886Z level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins"
grafana_test | logger=settings t=2022-09-26T18:56:27.065617796Z level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning"
grafana_test | logger=settings t=2022-09-26T18:56:27.065627754Z level=info msg="Config overridden from command line" arg="default.log.mode=console"
grafana_test | logger=settings t=2022-09-26T18:56:27.065638214Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_DATA=/var/lib/grafana"
grafana_test | logger=settings t=2022-09-26T18:56:27.065648482Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_LOGS=/var/log/grafana"
grafana_test | logger=settings t=2022-09-26T18:56:27.065658543Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
grafana_test | logger=settings t=2022-09-26T18:56:27.065668387Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
grafana_test | logger=settings t=2022-09-26T18:56:27.065678321Z level=info msg="Path Home" path=/usr/share/grafana
grafana_test | logger=settings t=2022-09-26T18:56:27.065688073Z level=info msg="Path Data" path=/var/lib/grafana
grafana_test | logger=settings t=2022-09-26T18:56:27.065697626Z level=info msg="Path Logs" path=/var/log/grafana
grafana_test | logger=settings t=2022-09-26T18:56:27.065708866Z level=info msg="Path Plugins" path=/var/lib/grafana/plugins
grafana_test | logger=settings t=2022-09-26T18:56:27.06600197Z level=info msg="Path Provisioning" path=/etc/grafana/provisioning
grafana_test | logger=settings t=2022-09-26T18:56:27.066036569Z level=info msg="App mode production"
grafana_test | logger=sqlstore t=2022-09-26T18:56:27.066275676Z level=info msg="Connecting to DB" dbtype=sqlite3
grafana_test | logger=migrator t=2022-09-26T18:56:27.108457939Z level=info msg="Starting DB migrations"
grafana_test | logger=migrator t=2022-09-26T18:56:27.126060714Z level=info msg="migrations completed" performed=0 skipped=447 duration=1.178584ms
grafana_test | logger=plugin.manager t=2022-09-26T18:56:27.234545719Z level=info msg="Plugin registered" pluginId=input
grafana_test | logger=secrets t=2022-09-26T18:56:27.23535174Z level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
grafana_test | logger=query_data t=2022-09-26T18:56:27.242093261Z level=info msg="Query Service initialization"
grafana_test | logger=live.push_http t=2022-09-26T18:56:27.256598859Z level=info msg="Live Push Gateway initialization"
grafana_test | logger=ticker t=2022-09-26T18:56:27.268598625Z level=info msg=starting first_tick=2022-09-26T18:56:30Z
grafana_test | logger=infra.usagestats.collector t=2022-09-26T18:56:27.394606395Z level=info msg="registering usage stat providers" usageStatsProvidersLen=2
grafana_test | logger=provisioning.alerting t=2022-09-26T18:56:27.39591758Z level=info msg="starting to provision alerting"
grafana_test | logger=provisioning.alerting t=2022-09-26T18:56:27.396034008Z level=info msg="finished to provision alerting"
grafana_test | logger=grafanaStorageLogger t=2022-09-26T18:56:27.398007622Z level=info msg="storage starting"
grafana_test | logger=ngalert t=2022-09-26T18:56:27.398873399Z level=info msg="warming cache for startup"
grafana_test | logger=http.server t=2022-09-26T18:56:27.404304043Z level=info msg="HTTP Server Listen" address=[::]:3000 protocol=http subUrl= socket=
grafana_test | logger=ngalert.multiorg.alertmanager t=2022-09-26T18:56:27.417540269Z level=info msg="starting MultiOrg Alertmanager"
Does $PWD
works for you? Could you try with fixed paths in docker-compose.yml
Or try to remove bind mounts https://github.com/KEGustafsson/influxdbv2-test-docker/blob/main/docker-compose.yml#L27-L29
I just ran this in powershell which I’m pretty sure is the environment I was in when I ran the start_first script.
(base) PS C:\Users\lee> $PWD
Path
C:\Users\lee
(base) PS C:\Users\lee>
Works fine.
Lee
From: Karl-Erik Gustafsson @.> Sent: Monday, September 26, 2022 3:32 PM To: KEGustafsson/influxdbv2-test-docker @.> Cc: Lee Prevost @.>; Author @.> Subject: Re: [KEGustafsson/influxdbv2-test-docker] granfana not starting (Issue #2)
Does $PWD works for you? Could you try with fixed paths?
— Reply to this email directly, view it on GitHub https://github.com/KEGustafsson/influxdbv2-test-docker/issues/2#issuecomment-1258520935 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB4LTGCPO3OHVKQFOYZQR3WAH24RANCNFSM6AAAAAAQVKTGRA . You are receiving this because you authored the thread.Message ID: @.***>
I have never tried to run this on Windows PC. That might add some extra twist to the setup.
Do you have any real or virtual machine running Linux, which you could use for testing?
I could run it on my Rpi4. I have not tried setting up WSL on my windows machine. Can I do it all in docker on windows? Sorry, I'm still on my learning curve with docker.
WSL or WSL2 do not support docker, you have to use Docker Desktop environment. Therefore I have avoided docker in natively in Windows... Linux natively or in virtually should work without problems.
I'm trying to run all apps in docker if feasible, both on arm64 and amd64 platforms. It is so much simple to keep system clean and up-to-date.
Yes. Maybe I misunderstood as I thought I needed to clone the repo and then run the script in my windows environment using shell. I do have Docker on my machine. Can I run it in there? Sorry if I misunderstood as I’m a little over my head using Docker.
Thanks,
Lee
From: Karl-Erik Gustafsson @.> Sent: Thursday, September 29, 2022 9:53 AM To: KEGustafsson/influxdbv2-test-docker @.> Cc: Lee Prevost @.>; Author @.> Subject: Re: [KEGustafsson/influxdbv2-test-docker] granfana not starting (Issue #2)
I have never tried to run this on Windows PC. That might add some extra twist to the setup.
Do you have any real or virtual machine running Linux, which you could use for testing?
— Reply to this email directly, view it on GitHub https://github.com/KEGustafsson/influxdbv2-test-docker/issues/2#issuecomment-1262317635 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB4LTBGTELRUKY5FUJ4WPDWAWNLXANCNFSM6AAAAAAQVKTGRA . You are receiving this because you authored the thread.Message ID: @.***>
You did exactly right things, clone repository and run the script. For the script you need to have certain binaries and settings ready. 1) docker (include Docker Desktop) 2) docker-compose (include Docker Desktop) 3) curl (need to be installed if not available) 4) jq (need to be installed if not available)
Added the same info to README
Hi @KEGustafsson, Could you think to implement .env file and store all variables on this instead of running script? I am thinking of a container with AIS-catcher + SignalK+ Influxdb+Telegraf+Grafana. .env
username =
password =
token =
org =
bucket =
my AIS-catcher compose
services:
ais-catcher:
container_name: ais-catcher-e
devices:
- "/dev/bus/usb:/dev/bus/usb"
build: .
restart: always
ports:
- 10120:10110
- 10121:10111
- 8200:8100
command: >
-N LAT 20.8 LON 106.64
-N 8100
-d 00000162
-v 10
-M DT
-o 2
-u 192.168.11.165 10110
@NgTrThanh Script does also folder creation, but ENV stuff could be transfered to .env
If you are willing to do mods, a PR is welcome 😀
Thanks for posting this! My only snag was that grafana didn't start correctly. Looks like its looking for config files. I didn't have time to test interworkings yet. Will do that later.