hassio-addons/addon-influxdb

Troubleshooting Flux crash #70

y-lohse posted onGitHub

Hi, thanks for this add-on and apologies in advance — I doubt this is an issue with the actual add-on, but I'm not sure how to collect more information.

I try to run a rather simple flux script:

from(bucket: "homeassistant/autogen")
  |> range(start: -1m)
  |> filter(fn: (r) => r._field == "consumption" and r.domain == "sensor")
  |> sum()

And get the following result: {"error":"panic: runtime error: invalid memory address or nil pointer dereference"}

The error comes from the sum() function. if I remove it the query works. mean() produces the same error, but median() works just fine. This is an example out of the docs and I've tried many different variations, so I don't think it's a problem with my script itself.

My question is, how can I get more logs about this error? The logs in HA seem to be the apache/nginx logs, I can see the error being returned but no further details. The log viewer in Chronograf has nothing in it as far as I can tell. How can i find out more about the problem?


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] about 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

posted by addons-assistant[bot] almost 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests