I can curl to a remote InfluxDB but get 'connection refused' from influx client

influxdb
#1

I have an Influx server running version 1.6.3 with IP address 192.168.1.110.

I then have an Influx client running version 1.6.3 with IP address 192.168.1.201.

From the client, I can use curl to ping the server.

[~]$ curl -sl -I http://192.168.1.110:8068/ping
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 233db6c2-5b9b-11e9-96b2-000000000000
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.6.3
X-Request-Id: 233db6c2-5b9b-11e9-96b2-000000000000
Date: Wed, 10 Apr 2019 14:15:48 GMT

If I try to use influx from the same client I get an error.

[~]$ influx -host 192.168.1.110
Failed to connect to http://192.168.1.110:8086: Get http://192.168.1.110:8086/ping: dial tcp 192.168.1.110:8086: connect: connection refused
Please check your connection settings and ensure 'influxd' is running.

This doesn’t appear to be a user permission issue, since passing a query to CURL works:

[~]$ curl -XGET 'http://192.168.1.110:8068/query?db=FOODB' --data-urlencode 'q=SELECT "bar" FROM "FOOMES" LIMIT 10'
{"results":[{"statement_id":0,"series":[{"name":"FOOMES","columns":["time","bar"],"values" etc.
0 Likes

#2

Hi welcome John ,

your curl contains port 8068 … and influx connects default to 8086 …

does the following work ?

influx -host 192.168.1.110 -port 8068
1 Like

#3

Ha! Yes, that did it. I would not have noticed that in a million years, thanks!

1 Like