Hi. I have openhab 2.3 running on win 10 PC as a service. I’m having strange problems as my HABpanel seem to be constantly wiped when I restart PC or openhab service, and the panel goes blackscreen. After restart if I go to paperui -> Configuration -> Services -> UI -> HABPanel -> CONFIGURE and see the “panel registry JSON”, I notice that most of the JSON-code has been wiped out.
I have working backups, but after I start a working backup, same thing still happens.
I have noticed that “habpanel.config”-file in “C:\Openhab2\userdata\config\org\openhab”, and “org.openhab.habpanel.cfg-file” in “C:\Openhab2\userdata\etc” are overwritten on every startup with these false setting.
I think it might have something to do with custom widgets, as the json-code seems to be always wiped after self made widgets appear in the code. For example currently it seems to have stopped in the middle of the custom widget setting, and wiped everything after that.
Last line is “<div class=” and after tjat there is nothong left.
If I stop the service and copy working versions of the above mentioned files (from backups), and start the service, those files get again overwritten with the broken json-code. Where does openhab pull these files at startup?
Only workaround that I found out, is that I have to copy the json-code from the working habpanel version, paperui -> Configuration -> Services -> UI -> HABPanel -> CONFIGURE “panel registry JSON” and save it as .txt-file. When I start the Openhab2 service again, and the blackscreen appears again, I copy the json from the .txt-file to the above mentioned path and it works again.
I have redd through the community but I haven’t found the same kind of problem as I’m having.
Has anyone had this kind of problem, and know the way to fix this?