Influx on PI3 stops writing

Hey all.

Since I had big trouble getting my Raspi Pi3 with Debian Jessie, Openhab and InfluxDB to run for more than a few hours I think I have sorted it out and it seems to run quite fine now.
But why not some new troubles? InfluxDB 1.3 (or whatever the latest is as a armfh package) just stops writing datapoints after an undefined amount of time. Last time I got approx. 6 hours.
For the moment I just log new data every 5 minutes from a DIY weatherstation via MQTT through Openhab2 persistence service. I need to get a stable system before I fully embark on modifiying everything and add more data. So its just a test setup at the moment.
As I am a newbie to the Linux world I have no idea where to look for errors that cause Influx to stop writing.
If I systemctl status -l each and every service (Influx, Openhab, MQTT and Grafana) I can’t see anything wrong. They all work and influx reports that data is send from Openhab and requested by Grafana all the time. But all I get is the last value that Influx recorded before it stopped.
A restart of the whole PI seems to sort things out for a while. Restarting Influx or any other of the services did not seem to help.

EDIT: I have the databases for Influx setup on a permanently mounted USB stick (just in case its important). The Pi just killed too many sc cards and even other thumb drives before so I ddi not want to jeopardize the system drive :wink:


I have found this in the openhab2 log file and read that one should update to the latest influxdb-java version. But I have no clue how. Any hints apprecieted.
right now no new data is written to the DB at all.

2017-12-10 19:52:00.087 [ERROR] [org.influxdb.impl.BatchProcessor ] - Batch could not be sent. Data will be lost
retrofit.RetrofitError: Connection refused (Connection refused)
at retrofit.RetrofitError.networkError(
at retrofit.RestAdapter$RestHandler.invokeRequest([184:org.openhab.persistence.influxdb:1.10.0]
at retrofit.RestAdapter$RestHandler.invoke([184:org.openhab.persistence.influxdb:1.10.0]
at org.influxdb.impl.$Proxy109.writePoints(Unknown Source)[184:org.openhab.persistence.influxdb:1.10.0]
at org.influxdb.impl.InfluxDBImpl.write([184:org.openhab.persistence.influxdb:1.10.0]
at org.influxdb.impl.BatchProcessor.write([184:org.openhab.persistence.influxdb:1.10.0]
at org.influxdb.impl.BatchProcessor$[184:org.openhab.persistence.influxdb:1.10.0]
at java.util.concurrent.Executors$[:1.8.0_151]
at java.util.concurrent.FutureTask.runAndReset([:1.8.0_151]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301([:1.8$
at java.util.concurrent.ScheduledThreadPoolExecutor$[:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.runWorker([:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$[:1.8.0_151]
Caused by: Connection refused (Connection refused)
at Method)[:1.8.0_151]
at com.squareup.okhttp.internal.Platform.connectSocket([184:org.openhab.persistence.influxdb:1.10.0]
at com.squareup.okhttp.internal.http.SocketConnector.connectRawSocket([184:org.openhab.persistence.i$
at com.squareup.okhttp.internal.http.SocketConnector.connectCleartext([$
at com.squareup.okhttp.Connection.connect([184:org.openhab.persistence.influxdb:1.10.0]
at com.squareup.okhttp.Connection.connectAndSetOwner([184:org.openhab.persistence.influxdb:1.10.0]
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner([184:org.openhab.persistence.influxdb:1.10.0]
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed([184:org.openhab.persistence.influxdb:1.10.0]
at com.squareup.okhttp.Call.getResponseWithInterceptorChain([184:org.openhab.persistence.influxdb:1.10.0]
at com.squareup.okhttp.Call.execute([184:org.openhab.persistence.influxdb:1.10.0]
at retrofit.client.OkClient.execute([184:org.openhab.persistence.influxdb:1.10.0]
at retrofit.RestAdapter$RestHandler.invokeRequest([184:org.openhab.persistence.influxdb:1.10.0]
… 12 more