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?