2021-04-14T19:04:57.217578Z info InfluxDB starting {“log_id”: “0TWSCKWG000”, “version”: “1.8.4”, “branch”: “1.8”, “commit”: “bc8ec4384eed25436d31045f974bf39f3310fa3c”}
2021-04-14T19:04:57.217678Z info Go runtime {“log_id”: “0TWSCKWG000”, “version”: “go1.13.8”, “maxprocs”: 4}
run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use
How to resolve this problem? I tried to change more ways. Still I can’t solve this after influxdb version up-gradation (1.5 → 1.8)…Current version 1.8.4
Something else is already listening on that port on that machine. Isn’t 8086 the default for Influxdb, how did you get 8088? Are you sure you stopped the last version? Do ‘netstat -aln | grep 8086’ and see what ports are being listened to.
That output does mean something is listening on that port. Even if you don’t have influxdb running yet, 8088 is a pretty common default port for web servers to listen on. I didn’t know 8088 is used for backup and restore but I am not also using that feature just yet in my lab.
Try this command to get a better idea of what is listening on 8088.
sudo netstat -tulpn | grep LISTEN
So you still have influxdb running. See what version is running. Open your terminal and the command below. Are you trying to start it manually? I haven’t done the upgrade process myself since I am just running containers in a lab.
$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure 'influxd' is running.
Used System Version
Raspberry Pi 3 B+
model name : ARMv7 Processor rev 4 (v7l)
OS Version
PRETTY_NAME=“Raspbian GNU/Linux 9 (stretch)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“9”
VERSION=“9 (stretch)”
VERSION_CODENAME=stretch
ID=raspbian
$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
Now I start from beginning
1. $sudo netstat -lptn
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN 4679/influxd
2. $sudo kill 4679
3.
$influxd
2021-04-15T18:13:09.799677Z info InfluxDB starting {“log_id”: “0TXgd69l000”, “version”: “1.8.4”, “branch”: “1.8”, “commit”: “bc8ec4384eed25436d31045f974bf39f3310fa3c”}
2021-04-15T18:13:09.799787Z info Go runtime {“log_id”: “0TXgd69l000”, “version”: “go1.13.8”, “maxprocs”: 4}
2021-04-15T18:13:09.946770Z info Using data dir {“log_id”: “0TXgd69l000”, “service”: “store”, “path”: “/var/lib/influxdb/data”}
2021-04-15T18:13:09.947069Z info Compaction settings {“log_id”: “0TXgd69l000”, “service”: “store”, “max_concurrent_compactions”: 2, “throughput_bytes_per_second”: 50331648, “throughput_bytes_per_second_burst”: 50331648}
2021-04-15T18:13:09.947172Z info Open store (start) {“log_id”: “0TXgd69l000”, “service”: “store”, “trace_id”: “0TXgd6jl000”, “op_name”: “tsdb_open”, “op_event”: “start”}
2021-04-15T18:13:09.951670Z info Open store (end) {“log_id”: “0TXgd69l000”, “service”: “store”, “trace_id”: “0TXgd6jl000”, “op_name”: “tsdb_open”, “op_event”: “end”, “op_elapsed”: “4.502ms”}
run: open server: open tsdb store: mkdir /var/lib/influxdb/data/_internal/_series: permission denied
4.
$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
Now I start from beginning
1. $sudo netstat -lptn
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name tcp 0 0 127.0.0.1:8088
0.0.0.0:* LISTEN 4679/influxd 2.
That shows that influxd is running, and listening on port 8088.
$sudo kill 4679
It is no longer running.
$influxd
You start influxd but not as root, therefore it will not have the required
permissions to run.
run: open server: open tsdb store: mkdir
/var/lib/influxdb/data/_internal/_series: permission denied 4.
It does not have the required permissions to run. You cannot start influxd as
non-root.
$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping:
dial tcp [::1]:8086: connect: connection refused Please check your
connection settings and ensure ‘influxd’ is running.
You now have two problems:
You are trying to start influxd as non-root. This will not work.
When you do start influxd as root, it listens only on port 8088, and you
then try to connect to it on port 8086, This will not work.
To fix this:
Make sure you either have bind-address = “:8086” in the [http] section of
/etc/influxdb/influxdb.conf or that this is commented out and there is no other
bind-address statement in that section of the file.
Start influxd as root, do not kill it, and do not try re-starting it as non-
root.
Connect using the command “influx” as non-root; it should connect to port
If that does not work, check the output of “netstat -lptn” again and check
whether influx is listening on both port 8086 and 8088.
Now I tried $sudo influxd in root (It loading more file 1-2 minutes)
After I start $ influx … (not connected to port)
$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
$sudo netstat -lptn (no listen port on influxdb)
**Config file is default
[http] #bind-address = “.8086” (default, commented)