I’m having weird problems with MapDB not restoring values even though the API shows that the values are there.
I also moved influx from the same server to a synology docker container, and if I set the IP address of the server to the new host, it works but does not survive a service restart or reboot - reverting to the previous settings.
If I want to wipe all persistence settings and start from scratch, what do I need to do? I’ve used openhabian-config to reset permissions to no avail.
I hadn’t touched persistence configuration in about 3 years and forgot that it used a file in the services directory.
However, when I recently rebuilt a OH3 configuration from scratch, I pointed it at this new influx server through the UI and not through config files. Which I guess is what mislead me.
I guess if the influxdb.cfg file exists it overrides the UI configuration at restart? I’ll test that at some point.
Anything configured in files at /etc/openhab is going to take precedence over anything done in the UI.
Anything configured through the UI does not get saved to files in /etc/openhab. Instead they get saved to /var/lib/openhab.
It is not a great idea to modify any files on /var/lib/openhab while openHAB is running. These are files that are created by and managed by openHAB itself and any changes you make are likely to be overwritten as soon as you make them. For certain OH tends to dump it’s current settings and state to those files when it’s stopped.