Influxdb cannot start

[root@myownhost-rybs ~]# systemctl status -l influxdb.service
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-01-11 23:03:48 +08; 5min ago
Docs: InfluxDB OSS 2.6 Documentation
Process: 7877 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
Main PID: 7878 (code=exited, status=1/FAILURE)

Jan 11 23:03:48 myownhost-rybs influxd-systemd-start.sh[7877]: ts=2023-01-11T15:03:48.367976Z lvl=info msg=“InfluxDB starting” log_id=0fKL_uZl000 version=1.8.10 branch=1.8 commit=688e697c51fd
Jan 11 23:03:48 myownhost-rybs influxd-systemd-start.sh[7877]: ts=2023-01-11T15:03:48.368001Z lvl=info msg=“Go runtime” log_id=0fKL_uZl000 version=go1.13.8 maxprocs=1
Jan 11 23:03:48 myownhost-rybs influxd-systemd-start.sh[7877]: Merging with configuration at: /etc/influxdb/influxdb.conf
Jan 11 23:03:48 myownhost-rybs influxd-systemd-start.sh[7877]: Merging with configuration at: /etc/influxdb/influxdb.conf
Jan 11 23:03:48 myownhost-rybs influxd-systemd-start.sh[7877]: InfluxDB started
Jan 11 23:03:48 myownhost-rybs systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Jan 11 23:03:48 myownhost-rybs influxd-systemd-start.sh[7877]: run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use
Jan 11 23:03:48 myownhost-rybs systemd[1]: influxdb.service: main process exited, code=exited, status=1/FAILURE
Jan 11 23:03:48 myownhost-rybs systemd[1]: Unit influxdb.service entered failed state.
Jan 11 23:03:48 myownhost-rybs systemd[1]: influxdb.service failed.
[root@myownhost-rybs ~]#

So, “listen: listen tcp 127.0.0.1:8088: bind: address already in use” should
point you in the direction of the problem.

Try “netstat -lptn” to find out what is already listening on that port.

Antony.

[root@myownhost-rybs ~]# netstat -lptn
Active Internet connections (only servers)
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 1056/influxd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1371/master
tcp 0 0 0.0.0.0:45056 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 664/rpcbind
tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 1106/rpc.mountd
tcp 0 0 0.0.0.0:34256 0.0.0.0:* LISTEN 1057/rpc.statd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1044/sshd
tcp6 0 0 :::3000 :::* LISTEN 1050/grafana-server
tcp6 0 0 ::1:25 :::* LISTEN 1371/master
tcp6 0 0 :::443 :::* LISTEN 1046/httpd
tcp6 0 0 :::44510 :::* LISTEN 1057/rpc.statd
tcp6 0 0 :::2049 :::* LISTEN -
tcp6 0 0 :::111 :::* LISTEN 664/rpcbind
tcp6 0 0 :::80 :::* LISTEN 1046/httpd
tcp6 0 0 :::36336 :::* LISTEN -
tcp6 0 0 :::20048 :::* LISTEN 1106/rpc.mountd
tcp6 0 0 :::8086 :::* LISTEN 1056/influxd
tcp6 0 0 :::22 :::* LISTEN 1044/sshd

this is the full output of “netstat -lptn”
seems here 8088 is only used by influxd