Hoping someone here can work this out, I’ve searched and searched again.
Platform information:
- Hardware: Intel® Atom™ CPU C2750 / 6GB / 16GB (Sits on Esxi node, so dedicated diskspace etc)
- OS: Debian 8
- Java Runtime Environment: 1.8.0_191
- openHAB version: 2.4.0
- InfluxdB plugin: persistence-influxdb - 1.13.0
reinstalled, reconfigured and i just can’t quite work it out.
Logs don’t show any error on startup
2019-01-07 22:48:15.485 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'influxdb.persist'
2019-01-07 22:48:31.749 [DEBUG] [org.openhab.persistence.influxdb ] - BundleEvent STARTING - org.openhab.persistence.influxdb
2019-01-07 22:48:31.761 [DEBUG] [org.openhab.persistence.influxdb ] - ServiceEvent REGISTERED - {org.osgi.service.cm.ManagedService}={service.id=359, service.bundleid=204, service.scope=singleton} - org.openhab.persistence.influxdb
2019-01-07 22:48:31.793 [DEBUG] [.internal.InfluxDBPersistenceService] - influxdb persistence service activated
2019-01-07 22:48:34.255 [DEBUG] [org.openhab.persistence.influxdb ] - ServiceEvent REGISTERED - {org.openhab.core.persistence.PersistenceService, org.openhab.core.persistence.QueryablePersistenceService}={password=openhab, service.id=360, service.bundleid=204, service.scope=bundle, retentionPolicy=autogen, user=openhab, service.pid=org.openhab.influxdb, component.name=org.openhab.persistence.influxdb, db=HAB, component.id=220} - org.openhab.persistence.influxdb
2019-01-07 22:48:34.258 [DEBUG] [org.openhab.persistence.influxdb ] - BundleEvent STARTED - org.openhab.persistence.influxdb
Logs confirm OpenHAB2 and influxDB are communicating
2019-01-07 23:02:47.126 [TRACE] [.internal.InfluxDBPersistenceService] - adding historic item BreadboardTest_Light_Light: time Mon Jan 07 19:58:48 NZDT 2019 value 30.0
2019-01-07 23:02:47.127 [TRACE] [.internal.InfluxDBPersistenceService] - startEntryNum 0
2019-01-07 23:02:47.126 [TRACE] [.internal.InfluxDBPersistenceService] - columns [time, value]
2019-01-07 23:02:47.133 [DEBUG] [.internal.InfluxDBPersistenceService] - objectToState found a NumberItem
2019-01-07 23:02:47.134 [TRACE] [.internal.InfluxDBPersistenceService] - adding historic item BreadboardTest_Pressure_Pressure: time Mon Jan 07 19:58:59 NZDT 2019 value 995.87
2019-01-07 23:02:47.129 [DEBUG] [.internal.InfluxDBPersistenceService] - query string: select value from "autogen"."BreadboardTest_Vcc_Voltage" where time > 1546768870s and time < 1546855367s limit 2147483647
2019-01-07 23:02:47.154 [TRACE] [.internal.InfluxDBPersistenceService] - series Series [name=BreadboardTest_Vcc_Voltage, tags=null, columns=[time, value], values=[[1.546844358067E12, 3.29]]]
2019-01-07 23:02:47.155 [TRACE] [.internal.InfluxDBPersistenceService] - columns [time, value]
2019-01-07 23:02:47.157 [DEBUG] [.internal.InfluxDBPersistenceService] - objectToState found a NumberItem
2019-01-07 23:02:47.159 [TRACE] [.internal.InfluxDBPersistenceService] - adding historic item BreadboardTest_Vcc_Voltage: time Mon Jan 07 19:59:18 NZDT 2019 value 3.29
monitor@MonitorHost:/var/log/openhab2$ tail -f openhab.log
2019-01-07 23:02:47.126 [TRACE] [.internal.InfluxDBPersistenceService] - adding historic item BreadboardTest_Light_Light: time Mon Jan 07 19:58:48 NZDT 2019 value 30.0
2019-01-07 23:02:47.127 [TRACE] [.internal.InfluxDBPersistenceService] - startEntryNum 0
2019-01-07 23:02:47.126 [TRACE] [.internal.InfluxDBPersistenceService] - columns [time, value]
2019-01-07 23:02:47.133 [DEBUG] [.internal.InfluxDBPersistenceService] - objectToState found a NumberItem
2019-01-07 23:02:47.134 [TRACE] [.internal.InfluxDBPersistenceService] - adding historic item BreadboardTest_Pressure_Pressure: time Mon Jan 07 19:58:59 NZDT 2019 value 995.87
2019-01-07 23:02:47.129 [DEBUG] [.internal.InfluxDBPersistenceService] - query string: select value from "autogen"."BreadboardTest_Vcc_Voltage" where time > 1546768870s and time < 1546855367s limit 2147483647
2019-01-07 23:02:47.154 [TRACE] [.internal.InfluxDBPersistenceService] - series Series [name=BreadboardTest_Vcc_Voltage, tags=null, columns=[time, value], values=[[1.546844358067E12, 3.29]]]
2019-01-07 23:02:47.155 [TRACE] [.internal.InfluxDBPersistenceService] - columns [time, value]
2019-01-07 23:02:47.157 [DEBUG] [.internal.InfluxDBPersistenceService] - objectToState found a NumberItem
influxdb.persist
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
* : strategy = everyChange, everyDay, restoreOnStartup
}
influxdb.cfg
user=*snip*
password=*snip*
db=HAB
retentionPolicy=autogen
As noted, After a reboot or any edits to items, it dies.
If i delete the measures and series in influxdb, Remove all things, items and links from openhab and configure they start to work until the next reboot.