Hi all,
I am running OpenHAB 4.3 M2 in a docker container on my NAS (x86_64). The OpenHAB data is stored on mounted, writeable, persistent file systems.
I am using the existing Maria DB environment on my NAS for the persistence and everything works fine storing and retrieving item data. And before I started using the Main UI for dashboards I did not realize that I have a problem that OpenHAB forgets the setting of the standard persistence service at every restart/reboot.
My addons.cfg:
persistence = jdbc-mariadb,mapdb
My runtime.cfg:
#org.eclipse.smarthome.persistence:default=jdbc
org.eclipse.smarthome.persistence:default=jdbc-mariadb
I tested both entries in the runtime.cfg as the first one was active first. I learned during my research in the community topics that in addons.cfg
the entry needs to be jdbc-maradb
. Hence, I tried this now also in the runtime.cfg
.
But neither entry makes OH persistently saving the standard persistence service.
When I am opening the “Settings” in the UI and go to “Persistence” I see no service active:
In this condition I do not see any data in the charts of my Main UI dashboards.
When I am now selecting JDBC and saving this setting everything is ok because I see data in the charts of my Main UI dashboards.
But when I need to restart my OH instance this setting is gone and there is no standard persistence service active. I always need to go to “Settings” => “Persistence” and select&save JDBC in the “General Settings”.
I would love to have this setting persistently stored as I need to restart my docker instance from time to time and it is annoying that I cannot really use my Main UI dashboards because I always need this manual intervention.
I am carrying this behaviour since OH v3 I guess but it never bothered me as I used HABPanel in the past and that works without that setting but the Main UI requires the standard persistence service to be set.
I found this old topic with same problem but it was solved with the persistence settings in the addons.cfg
and runtime.cfg
. I tried this already without success and I now have no more idea how solve this:
Can somebody tell me where OH stores this setting when I click “Save” at the top right of the UI:
So that I can check where if and how it is stored to find out why it gets lost at restart?
I kindly appreciate any guidance as I would like to rely on the Main UI in the future.
Thank you for all your support
Cheers
Justus