404 error on http://server_name:8086


#1

Hi,
I just installed influxdb v1.7 on linux and I’m trying to understand it so basicly I’m a noob in the influx`s world. I understood that there are a web api that I can use to query but it seems that something is wrong. Whenever I try to query via http (and port 8086) on my pc I’m getting the 404 error page not found.

However, if on the same machine I run curl with the same url i get the result back :
curl -G http://172.24.180.17:8086/query -u myuser:mypw --data-urlencode “q=show databases”
{“results”:[{“statement_id”:0,“series”:[{“name”:“databases”,“columns”:[“name”],“values”:[["_internal"],[“mar”]]}]}]

Any idea what is behind it ?


#2

Forgive me if you have done this already, but have you enabled the [http] section?

[http]
      # Determines whether HTTP endpoint is enabled.
      # enabled = true

      # The bind address used by the HTTP service.
      # bind-address = ":8086"

      # Determines whether HTTP authentication is enabled.
      auth-enabled = true

The last line should be set to true.


#3

Yes sure, this was one of the first things that I did.