Persistance Influx DB not starting after reboot

Hello,

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

Thx,
Andreas

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/influxd-systemd-start.sh
└─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 influxd-systemd-start.sh[19697]: Merging with configuration at: /etc/influxdb/influxdb.conf
Nov 23 11:23:34 openhabian influxd-systemd-start.sh[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 influxd-systemd-start.sh[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 influxd-systemd-start.sh[19695]: run: create server: proto: required field “MaxShardID” not set
Nov 23 11:23:34 openhabian influxd-systemd-start.sh[19716]: Merging with configuration at: /etc/influxdb/influxdb.conf
Nov 23 11:23:34 openhabian influxd-systemd-start.sh[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: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:8086
at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:831) ~[bundleFile:?]
at org.influxdb.impl.InfluxDBImpl.write(InfluxDBImpl.java:460) ~[bundleFile:?]
at org.influxdb.impl.OneShotBatchWriter.write(OneShotBatchWriter.java:22) ~[bundleFile:?]
at org.influxdb.impl.BatchProcessor.write(BatchProcessor.java:340) [bundleFile:?]
at org.influxdb.impl.BatchProcessor$1.run(BatchProcessor.java:287) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:8086
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:265) ~[bundleFile:?]
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:183) ~[bundleFile:?]
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224) ~[bundleFile:?]

After reinstallation of the Influxdb package its somehow working again.

Andreas

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

Köchi