Persistance Influx DB not starting after reboot


maybe anyone can assist, after a reboot my influxdb sevice does not start anymore here are some outputs:


openhabian@openhabian:/var/lib/influxdb/data/openhab/autogen $ sudo systemctl status influxdb
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: activating (start) since Wed 2022-11-23 11:23:33 CET; 784ms ago
Docs: InfluxDB OSS 2.5 Documentation
Cntrl PID: 19694 (influxd-systemd)
Tasks: 2 (limit: 2176)
CPU: 588ms
CGroup: /system.slice/influxdb.service
├─19694 /bin/bash -e /usr/lib/influxdb/scripts/
└─19726 sleep 1

Nov 23 11:23:33 openhabian systemd[1]: Starting InfluxDB is an open-source, distributed, time series database…
Nov 23 11:23:34 openhabian[19697]: Merging with configuration at: /etc/influxdb/influxdb.conf
Nov 23 11:23:34 openhabian[19695]: ts=2022-11-23T10:23:34.047575Z lvl=info msg=“InfluxDB starting” log_id=0eL04Ccl000 version=1.8.10 branch=1.8 commit=688e697c51>
Nov 23 11:23:34 openhabian[19695]: ts=2022-11-23T10:23:34.047729Z lvl=info msg=“Go runtime” log_id=0eL04Ccl000 version=go1.13.8 maxprocs=4
Nov 23 11:23:34 openhabian[19695]: run: create server: proto: required field “MaxShardID” not set
Nov 23 11:23:34 openhabian[19716]: Merging with configuration at: /etc/influxdb/influxdb.conf
Nov 23 11:23:34 openhabian[19694]: InfluxDB API unavailable after 1 attempts…

From oenhab.log:

2022-11-23 11:26:01.481 [ERROR] [org.influxdb.impl.BatchProcessor ] - Batch could not be sent. Data will be lost
org.influxdb.InfluxDBIOException: Failed to connect to localhost/0:0:0:0:0:0:0:1:8086
at org.influxdb.impl.InfluxDBImpl.execute( ~[bundleFile:?]
at org.influxdb.impl.InfluxDBImpl.write( ~[bundleFile:?]
at org.influxdb.impl.OneShotBatchWriter.write( ~[bundleFile:?]
at org.influxdb.impl.BatchProcessor.write( [bundleFile:?]
at org.influxdb.impl.BatchProcessor$ [bundleFile:?]
at java.util.concurrent.Executors$ [?:?]
at [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
at java.util.concurrent.ThreadPoolExecutor$ [?:?]
at [?:?]
Caused by: Failed to connect to localhost/0:0:0:0:0:0:0:1:8086
at okhttp3.internal.connection.RealConnection.connectSocket( ~[bundleFile:?]
at okhttp3.internal.connection.RealConnection.connect( ~[bundleFile:?]
at okhttp3.internal.connection.ExchangeFinder.findConnection( ~[bundleFile:?]

After reinstallation of the Influxdb package its somehow working again.


Hi Andreas,

I have the same behavior as you.
I use OH 3.3 Release and I have already installed everything new.

I found in one thread this code.
This fix my issue until the next reboot and then I have to reinstall it again.

sudo zram-config "stop"
sudo apt reinstall influxdb
sudo systemctl start zram-config.service
sudo systemctl restart influxdb
sudo reboot