I am making a fresh install of influxdb on RHEL 7.3. I can reach the admin page on port 8086, but for some reason I cannot connect to the actual database on 8086 even from the CLI:
[stgreszc@cfc-000-dev ~]$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp 127.0.0.1:8086: getsockopt: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
[stgreszc@cfc-000-dev ~]$ netstat -nap
(No info could be read for “-p”: geteuid()=1001 but you should be root.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 173.36.54.35:8083 0.0.0.0:* LISTEN -
tcp 0 0 173.36.54.35:8086 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 173.36.54.35:8086 10.61.248.167:49930 ESTABLISHED -
tcp 0 36 173.36.54.35:22 10.61.248.167:64109 ESTABLISHED -
Weird, this is the third installation I’ve done but for some reason tonight I couldn’t get Grafana to connect (object object error) and was going a bit nuts that I couldn’t connect with just “influx” (that is a cryptic error “Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp 127.0.0.1:8086: getsockopt: connection refused”) and I was getting 404 from the URL. Now it all seems to work.
Also, do you know why installing the .rpm from the influx site and running influxdb using sudo systemctl start influxd causes permission errors (ie it won’t start initially until you change some of the directories from root user to influxdb)?
May 23 22:56:30 cfc-000-dev influxd[6288]: [I] 2017-05-23T22:56:30Z reading file /var/lib/influxdb/wal/_internal/monitor/1/_00025.wal, size 34158 engine=t…acheloader
May 23 22:56:30 cfc-000-dev influxd[6288]: [I] 2017-05-23T22:56:30Z write failed for shard 1: [shard 1] open /var/lib/influxdb/wal/_internal/monitor/1/_00…vice=write
May 23 22:56:30 cfc-000-dev influxd[6288]: [I] 2017-05-23T22:56:30Z failed to store statistics: [shard 1] open /var/lib/influxdb/wal/_internal/mo
[stgreszc@cfc-000-dev ~]$ sudo ls -la /var/lib/influxdb/wal/_internal/monitor/1
total 384
drwx------. 2 influxdb influxdb 4096 May 23 22:58 .
drwx------. 3 influxdb influxdb 14 May 23 21:28 …
-rw-r–r–. 1 influxdb influxdb 3262 May 23 21:28 _00001.wal
-rw-r–r–. 1 influxdb influxdb 39827 May 23 21:48 _00002.wal
-rw-r–r–. 1 influxdb influxdb 20389 May 23 21:53 _00003.wal
-rw-r–r–. 1 influxdb influxdb 6800 May 23 21:57 _00004.wal
-rw-r–r–. 1 influxdb influxdb 23056 May 23 22:00 _00005.wal
-rw-r–r–. 1 influxdb influxdb 1120 May 23 22:13 _00022.wal
-rw-r–r–. 1 influxdb influxdb 120098 May 23 22:22 _00023.wal
-rw-r–r–. 1 influxdb influxdb 77422 May 23 22:28 _00024.wal
-rw-r–r–. 1 influxdb influxdb 34158 May 23 22:34 _00025.wal
-rw-r–r–. 1 root root 6786 May 23 22:35 _00026.wal
-rw-r–r–. 1 root root 36441 May 23 22:38 _00027.wal
-rw-r–r–. 1 influxdb influxdb 0 May 23 22:58 _00129.wal
[stgreszc@cfc-000-dev ~]$ sudo chown -R influxdb:influxdb /var/lib/influxdb/
Hi @jackzampolin,
I am also facing the same problem, have deployed the influxdb service in kubernetes which is having the private(ClusterIP) when am trying to connect to using - influx -host 10.x.x.x its giving me below error
Failed to connect to http://10.x.x.x:8086: Get http://10.x.x.x:8086/ping: dial tcp 10.x.x.x:8086: connect: operation timed out. Please check your connection settings and ensure ‘influxd’ is running.
Similar error am getting from Grafana while connecting to InfluxDB DataSource - Getting Network error 502 bad gateway. Could you please assist.