Hello all,
I have decided to reinstall my old - not working influx 2.0 and upgrade it in the process to 2.1 ( I deleted all files connected to influx and telegraf to have fresh start). I am using Linux Ubuntu x64 and I am using container I have got from my server admin for this purpose. I have used this step-by-step: Install InfluxDB | InfluxDB OSS 2.1 Documentation .
Somehow I managed finish the install with some errors.
Let me give you some commands I run.
ubuntu@influx:~$ systemctl list-units:
influxdb.service loaded failed failed InfluxDB is an open-source, distributed, time series database
influxdb2.service loaded active running InfluxDB 2.0 service file.
ubuntu@influx:~$ influxd
2021-12-16T12:51:17.874514Z info Welcome to InfluxDB {"log_id": "0YSpa_xW000", "version": "2.1.1", "commit": "657e1839de", "build_date": "2021-11-09T03:03:48Z"}
2021-12-16T12:51:18.830338Z error Failed opening bolt {"log_id": "0YSpa_xW000", "error": "unable to open boltdb: timeout"}
Error: unable to open boltdb: timeout
See 'influxd -h' for help
ubuntu@influx:~$ sudo service influxdb start
Job for influxdb.service failed because the control process exited with error code.
See "systemctl status influxdb.service" and "journalctl -xe" for details.
ubuntu@influx:~$ sudo service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-12-16 13:54:04 CET; 12s ago
Docs: https://docs.influxdata.com/influxdb/
Process: 2094 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=1/FAILURE)
Dec 16 13:54:04 influx systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Dec 16 13:54:04 influx systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
Dec 16 13:54:04 influx systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Dec 16 13:54:04 influx systemd[1]: influxdb.service: Start request repeated too quickly.
Dec 16 13:54:04 influx systemd[1]: influxdb.service: Failed with result 'exit-code'.
Dec 16 13:54:04 influx systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
sudo influxd run
[sudo] password for ubuntu:
2021-12-16T14:08:23.004235Z info Welcome to InfluxDB {"log_id": "0YSt~srl000", "version": "2.1.1", "commit": "657e1839de", "build_date": "2021-11-09T03:03:48Z"}
2021-12-16T14:08:23.005271Z info Resources opened {"log_id": "0YSt~srl000", "service": "bolt", "path": "/root/.influxdbv2/influxd.bolt"}
2021-12-16T14:08:23.005386Z info Resources opened {"log_id": "0YSt~srl000", "service": "sqlite", "path": "/root/.influxdbv2/influxd.sqlite"}
2021-12-16T14:08:23.007585Z info Using data dir {"log_id": "0YSt~srl000", "service": "storage-engine", "service": "store", "path": "/root/.influxdbv2/engine/data"}
2021-12-16T14:08:23.007622Z info Compaction settings {"log_id": "0YSt~srl000", "service": "storage-engine", "service": "store", "max_concurrent_compactions": 24, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}
2021-12-16T14:08:23.007641Z info Open store (start) {"log_id": "0YSt~srl000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "start"}
2021-12-16T14:08:23.007728Z info Open store (end) {"log_id": "0YSt~srl000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "0.090ms"}
2021-12-16T14:08:23.007774Z info Starting retention policy enforcement service {"log_id": "0YSt~srl000", "service": "retention", "check_interval": "30m"}
2021-12-16T14:08:23.007800Z info Starting precreation service {"log_id": "0YSt~srl000", "service": "shard-precreation", "check_interval": "10m", "advance_period": "30m"}
2021-12-16T14:08:23.007857Z info Starting query controller {"log_id": "0YSt~srl000", "service": "storage-reads", "concurrency_quota": 1024, "initial_memory_bytes_quota_per_query": 9223372036854775807, "memory_bytes_quota_per_query": 9223372036854775807, "max_memory_bytes": 0, "queue_size": 1024}
2021-12-16T14:08:23.011001Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {"log_id": "0YSt~srl000", "max_select_point": 0, "max_select_series": 0, "max_select_buckets": 0}
2021-12-16T14:08:23.311096Z error Failed to set up TCP listener {"log_id": "0YSt~srl000", "service": "tcp-listener", "addr": ":8086", "error": "listen tcp :8086: bind: address already in use"}
Error: listen tcp :8086: bind: address already in use
See 'influxd -h' for help
2021-12-16T14:08:23.311168Z info Starting {"log_id": "0YSt~srl000", "service": "telemetry", "interval": "8h"}
There seems to be an issue with my port :8086 but influx is only service using it.
ubuntu@influx:~$ sudo netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:40475 0.0.0.0:* LISTEN 1000 181489268 2313/influxd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 0 181315335 86/vsftpd
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 101 181337955 68/systemd-resolved
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 181454066 104/sshd
tcp6 0 0 :::3000 :::* LISTEN 106 181449838 257/grafana-server
tcp6 0 0 :::80 :::* LISTEN 0 181449810 109/apache2
tcp6 0 0 :::8086 :::* LISTEN 1000 181532393 2313/influxd
tcp6 0 0 :::22 :::* LISTEN 0 181454068 104/sshd
udp 0 0 127.0.0.53:53 0.0.0.0:* 101 181337954 68/systemd-resolved
udp 0 0 10.0.3.93:68 0.0.0.0:* 100 181540259 44/systemd-networkd
Another think which seems odd for me is that i am unable to locate influx.conf file at all. Its not in the .influxdbv2 folder nor anywhere in /etc/…
So any idea what exactly could be wrong with it? Do you guys have any idea when could i find my config file? Thanks !!