Turned on DEBUG logging for influx and when I update it I get a bunch of log activity like:
14:37:33.098 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - Got a query for historic points!
14:37:33.110 [DEBUG] [ernal.influx1.InfluxDB1RepositoryImpl] - query returned no series
Just to confirm how this should work, I tagged some Item with the gTemp tag, so I expect those to get picked up in Influx
My only means of checking is to create a query in Grafana and all of my Items show up there (even the ones I haven’t tagged) but no data shows up in the chart.
I using the same methods I used in my 2.5 system which works fine.
Just to be clear because a tag has a specific meaning in openHAB. Are you really using tags? If so that’s your problem. Persistence doesn’t care at all about tags. What it does care about is Groups. gTemp* means "save all members of the gTemp Group. So have you created a gTemp Group and added all your temp Items to it as members?
Each persistence has a default strategy in OH 3. Usually it’s something like “all Items every change with restoreOnStartup”.
But you’ve overridden that default with your .persist file but that doesn’t undo anything that was created prior to that. And if you’ve not defined those two as Groups it may just ignore those lines and if so that means the .persist file doesn’t actually define anything so perhaps it reverts to the default.
But you said it’s not actually saving the Item states so it probably used the default for a time but now isn’t saving anything because it’s missconfigured.
19:34:00.529 [ERROR] [org.influxdb.impl.BatchProcessor ] - Batch could not be sent. Data will be lost
org.influxdb.InfluxDBException: engine: error writing WAL entry: write /var/lib/influxdb/wal/openhab_db/autogen/21/_00002.wal: read-only file system
the thing is there is no /var/lib/influx directory
If I change any parameter in the influx persistence I get
19:40:21.788 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - Config has been modified will deactivate/activate with new config
19:40:21.796 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - InfluxDB persistence service deactivated
19:40:21.801 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - InfluxDB persistence service is being activated
19:40:21.808 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - Loaded configuration {addLabelTag=true, component.name=org.openhab.persistence.influxdb.InfluxDBPersistenceService, url=http://192.168.1.190:8086, service.config.category=persistence, replaceUnderscore=true, service.config.description.uri=persistence:influxdb, user=openhab, service.config.label=InfluxDB Persistence Service, service.pid=[org.openhab.influxdb, org.openhab.influxdb], service.config.factory=false, addCategoryTag=false, component.id=320, addTypeTag=true, password=Tiffany, db=openhab_db}
19:40:21.843 [DEBUG] [ernal.influx1.InfluxDB1RepositoryImpl] - database status is OK, version is 1.8.3
19:40:21.849 [DEBUG] [e.influxdb.InfluxDBPersistenceService] - InfluxDB persistence service is now activated
So I assume the connection to the DB is valid but no values show up in the DB.