I have created a Droplet in Digital Ocean and installed influxdb inside it. I have attached a Volume to which it writes data. It works fine for sometime ( may be a day or two ).
Then suddenly it shows the error :
root@influxdb-01:~# influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp 127.0.0.1:8086: connect: connection refused
Please check your connection settings and ensure 'influxd' is running.
root@influxdb-01:~# sudo systemctl status influxd
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-05-15 09:41:21 UTC; 1s ago
Docs: https://docs.influxdata.com/influxdb/
Main PID: 13886 (influxd)
Tasks: 5 (limit: 1152)
CGroup: /system.slice/influxdb.service
└─13886 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
May 15 09:41:21 influxdb-01 systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
May 15 09:41:23 influxdb-01 influxd[13886]: ts=2019-05-15T09:41:23.385025Z lvl=info msg="InfluxDB starting" log_id=0F
May 15 09:41:23 influxdb-01 influxd[13886]: ts=2019-05-15T09:41:23.389548Z lvl=info msg="Go runtime" log_id=0FQijFEG0
lines 1-12/12 (END)...skipping...
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-05-15 09:41:21 UTC; 1s ago
Docs: https://docs.influxdata.com/influxdb/
Main PID: 13886 (influxd)
Tasks: 5 (limit: 1152)
CGroup: /system.slice/influxdb.service
└─13886 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
May 15 09:41:21 influxdb-01 systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
May 15 09:41:23 influxdb-01 influxd[13886]: ts=2019-05-15T09:41:23.385025Z lvl=info msg="InfluxDB starting" log_id=0FQijFEG000 version=1.7.6 branch=1.7 commit=01c8dd416270f424ab0c40f9291e269ac6921964
May 15 09:41:23 influxdb-01 influxd[13886]: ts=2019-05-15T09:41:23.389548Z lvl=info msg="Go runtime" log_id=0FQijFEG000 version=go1.11 maxprocs=1
I am not getting it why it happens each time, since the volume has so much memory left.
Please help.
Here is some info about the tsi1 indexes and how to convert your existing indexes … tsi1 indexes
in fact it is stopping the database ,
execute : influx_inspect buildtsi -datadir <data_dir> -waldir <wal_dir> ( with the user that runs influxd )
changing the parameter index-version
and restaring the database …
@MarcV I have recreated the droplet with slightly increasing the memory. I will let you know if it crashes this time. Btw do yo know how to tweak influxdb to run on a machine with low hardware config?