addon-grafana icon indicating copy to clipboard operation
addon-grafana copied to clipboard

cannot connecto to influxdb

Open magnum opened this issue 3 years ago • 2 comments

Problem/Motivation

cannot connecto to influxdb

Expected behavior

i can set datasource

Actual behavior

cannot create influxdb datasources

Steps to reproduce

  • homeassistant installed on my raspberry, as supervised
  • installed hassio add-ons: graft, influxdb, glance
  • create dbs on influxdb: grafana, homessistant
  • create users on influxdb: grafana, homeassistant, glances (all w/ same password)
  • try to create grafana influxdb datasources using database: homessistant, username: grafana, password: [redacted]

Proposed changes

maybe the tutorial i'm following is too old https://www.youtube.com/watch?v=m9qIqq104as&t=326s and something changed in the last 2 years?

screenshots Screenshot 2022-10-06 alle 00 51 39

Screenshot 2022-10-06 alle 00 51 27 Screenshot 2022-10-06 alle 00 52 25 Screenshot 2022-10-06 alle 00 52 33

magnum avatar Oct 05 '22 22:10 magnum

Hey, I have the same issue. Followed the same tutorial and getting the same error

Not sure what we are doing wrong, any suggestions?

EDIT: Found someone implying its grafana's fault? https://community.grafana.com/t/error-connecting-influxdb-influxql-from-local-grafana-to-local-influxdb/73382

EDIT2: Someone with a workaround and this is working for me; first setup the connection in HA to fill the db with data, then grafana will work https://github.com/grafana/grafana/issues/55707

Penait1 avatar Oct 06 '22 18:10 Penait1

UPDATE: it connected AFTER the data started being sent from homeassistant. i suppose grafana checks for data, and if there's nothing yet, it thinks the connection was not succesful

magnum avatar Oct 06 '22 19:10 magnum

Yeah I've got a potential solution for this in https://github.com/grafana/grafana/pull/56426, it looks as though the health check in Grafana is failing when influx is returning zero results, but the connection was otherwise successful.

gtk-grafana avatar Oct 17 '22 17:10 gtk-grafana

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

github-actions[bot] avatar Nov 17 '22 08:11 github-actions[bot]