OH3 Influxdb restoreOnStartup stopped working

Hey Guys,

I updated to the latest Stable OH 3.4.2 on Debian Bullseye…

I always used infliuxdb 1.8 to store persistence and restore on startup.


Strategies {
    everyMinute : "0 * * * * ?"
    everyHour   : "0 0 * * * ?"
    everyDay    : "0 0 0 * * ?"
    default = everyChange

Items {
    * : strategy = everyChange, restoreOnStartup

My influxdb 1.8 is running in an external lxc container.

Yesterday I decided to give influxdb 2.6 a try, I created an additional container with another IP.
But then I realized that restoreOnStartup is not working with influxdb 2.6…

I changed my persistence config in MainUI back to the previous values to use the 1.8 container again and restarted. but now even influxdb 1.8 does not restoreOnStartup anymore.

Seems like the UI settings changed something in addition that made my restore stop working?!?
In the UI persistence config the field Retention Policy / Bucket wasn’t filled while using 1.8 but now the UI complains that I have to fill out this field. I tried to fill it with the name of my persist file (influxdb.persist) but this is not working either…

I tried to change the influxdb.cfg manually but maybe this data is stored somewhere in the openhab db too. No matter what I try and how often I restart, I don’t get it to work again!

Any ideas on that, or am I out of luck after my changes?

Cheers, Dan

Ok after restarting three times without changing my settings the restoreOnStartup seems to work again…

maybe a hickup caused by the cache - don’t know what that was…