How to run Flux on Raspberry Pi

#1

I have Influxdb and Grafana running on a Raspberry Pi. With InfluxQL all is stable.
But Flux scripts don’t work. Also error ‘Could not fetch measurements’ in Chronograf 1.7.9.
Any idea what could be wrong?

0 Likes

#2

Hi Roel welcome !

Have you enabled Flux ?

Best regards

Flux is packaged with InfluxDB v1.7+ and does not require any additional installation, however it is disabled by default and needs to be enabled .

Enable Flux

Enable Flux by setting the flux-enabled option to true under the [http] section of your influxdb.conf

0 Likes

#3

Hi Marc! Yes, I did! I see the Flux Script Wizard and all functions, but the queries don’t work. Same issue with Grafana.

0 Likes

#4

Hi Roel ,
I keep guessing :slight_smile:
Have you selected a data source ?

Ps i understand influxql is no problem in chronograf ?

0 Likes

#5

Maybe these screenshots help:
screenshot1|690x349

0 Likes

#6

0 Likes

#7

Hi Roel,
I cannot reproduce it , here it works on a Linux …
have you tried to restart chronograf ?
What does the script wizard shows ?

0 Likes

#8

Hi Mark, Thanks for your prompt reaction. Yes, I did restart chronograf.
The script wizard seems to work and gives drop-down-lists for input. The screenshot above gives the screen after running the script. I aslo did enter quries manually. Same issue. I also did a fresh install (new SD-card, new OS + fresh downloads) and the same problem persists.
Any idea? Maybe an issue with the Raspberry OS (Raspian, based on Debian)?
Any help would be appreciated.

0 Likes

#9

Hi Roel ,
Have you found a solution ?

0 Likes

#10

Hi Mark,
no idea how to solve this, or where to get support. Wait for InfluxDB v2.0?

0 Likes

#11

Maybe these issues from earlier versions and journalctl can help to troubleshoot ?

 journalctl -u chronograf

 https://github.com/influxdata/chronograf/issues/5046

 https://github.com/influxdata/chronograf/issues/5043
0 Likes

#12

Thank for your ideas. I checked with journalctl, but no error-messages appear if I run the query-editor in Flux.
I have Influxdb vs.1.7.4. installed; the in 5046 mentioned issues should be solved by this.,
Unfortunately no results. Any further ideas?

0 Likes

#13

My last idea :slight_smile:

In the left upper corner you have dynamic source ,
you can try selecting your datasource by using the drop down list ?

0 Likes

#14

nope…
but I will keep trying!
Marc, thanks for your support!
Roel

0 Likes