Can't get flux to work

When I try to connect chronograf to flux I get “Unable to reach flux http:localhost:8093: 404 page not found”, and the connection is not created. The same if I use the IP address.
If I send a curl I get “404 page not found”:
curl -XPOST --data-urlencode ‘q=from(db:“telegraf”).filter(exp:{“_measurement”==“cpu”}).range(start: -1h).limit(n: 10)’ http://localhost:8093/query

This is what I did to configure it:
I installed the nightly version of influx and flux. I made sure the configuration for influxdb is correct:
enabled = true
log-enabled = true
bind-address = “:8082”
And I started influxd and flux:
user 28572 28417 0 17:55 pts/0 00:00:00 /apps/platform_nightly_linux_amd64/fluxd --verbose
influxdb 31025 1 13 Aug24 ? 16:59:05 /usr/bin/influxd -pidfile /var/run/influxdb/ -config /etc/influxdb/influxdb.conf

What am I missing? Can somebody help me?

I’m having the same problem. The only difference being that I’m trying to use Grafana instead of Chronograf.

I’m using the Flux datasource plugin from Grafana and when trying to add the Flux datasource I get “Network Error: Not Found(404)” in Grafana, the following in the fluxd log:

2018-08-30T14:57:42.144267Z info served http request {“log_id”: “0AEqHKy0000”, “handler”: “query”, “method”: “POST”, “path”: “/v1/query”, “status”: 404, “duration_ns”: 15329, “error”: “”, “reference”: “”}
2018-08-30T14:57:42.144327Z info query:/v1/query {“log_id”: “0AEqHKy0000”, “handler”: “query”, “ot_trace_id”: “028ed51bc005b002”, “ot_span_id”: “028ed51bc005b001”, “ot_start”: “2018-08-30T14:57:42.144163Z”, “ot_stop”: “2018-08-30T14:57:42.144324Z”, “ot_duration”: “0.161ms”}

and nothing in the influxd log.

I’m using the influxdb-1.7.0~n201808290800-0 influxdb nightly and the flux nightly that I got at the same time as the influxdb one.

The API has changed a bit so that might be part of the issue. Make sure you are using the latest Flux nightlies with the influxdb nightlies.

Our README is up to date on the most recent API.

curl -XPOST --data-urlencode \
    |> filter(fn: (r) => r["_measurement"] == "cpu" AND r["_field"] == "usage_user")
    |> range(start:-170h)
    |> sum()' \

That curl command should work and return some results assuming you have some telegraf cpu data.

We have been staying in touch with Grafana about these API changes. Maybe the Grafana Flux plugin needs to be updated?

I just updated flux and influxdb to the latest nightlies and the problem persists.
Now I get an answer to the curl (this has improved!), but chronograf keeps saying me “404 file not found” when I try to create the new connection. I am also using grafana and I have the same problem (not found-404-) as mev, when I create the data source.
Any idea?

I can confirm this. I just downloaded the latest influxdb and flux nightlies (September 4) and the 404 error persists.

Try the latest nightlies…

Flux is now embedded into the nightly. Instructions for configuring the API access are here:

The Flux URL should be accessible here: http://influxdb:8086/v2