Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did not get it to work #18

Open
Just2Confuse opened this issue Mar 15, 2024 · 2 comments
Open

Did not get it to work #18

Just2Confuse opened this issue Mar 15, 2024 · 2 comments

Comments

@Just2Confuse
Copy link

Hi,

i did not get it to work. Looks like there are no datas from Tibber pulled? I dont no how to debug.
I try it with "TIBBER_TOKEN=... docker compose up"

logger=authn.service t=2024-03-15T07:50:15.244014237Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.252705223Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.253834772Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.254765599Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.257340566Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"

Also i try it with the token in docker-compose.yml
Same
grafana-1 | logger=authn.service t=2024-03-15T07:58:41.018031129Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
Any ideas abou my problems :). I hope the did not sit in front of my monitor :D

@Just2Confuse
Copy link
Author

Just2Confuse commented Mar 15, 2024

PS: I also get a lot of this failures. I pull all scripts from source to my folder and set "docker compose up".

grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:08.355989913Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-prices.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:08.356029209Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-without-pulse.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:08.356064524Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356035675Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-monthly.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356096693Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-prices.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356130841Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-without-pulse.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356162989Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:28.356178816Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-prices.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:28.356237927Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-without-pulse.json error=EOF

@terjesannum
Copy link
Owner

Sorry about the very late reply, I've been busy on other projects.

Your error messages are from Grafana, and the errors are not releated to TIBBER_TOKEN which is only used by the tibber-exporter container. Do you see any output from tibber-exporter?

For the Grafana errors it might be that the volume mounts are not correct. If you do not run from the same directory structure as this repo you need to modify the volumes:

    volumes:
      - ./datasource.yml:/etc/grafana/provisioning/datasources/prometheus.yml
      - ./dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
      - ../grafana/dashboard.json:/dashboard.json
      - ../grafana/dashboard-without-pulse.json:/dashboard-without-pulse.json
      - ../grafana/dashboard-prices.json:/dashboard-prices.json
      - ../grafana/dashboard-monthly.json:/dashboard-monthly.json
      - ./grafana.sh:/grafana.sh
      - grafana_data:/var/lib/grafana

The docker compose setup is expected to be run from the docker-compose directory, and you can see that it references ../grafana. So ensure that all these references are correct on your setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants