trying Openhab 5.1.0 M4 and encountered the following error in the console of the browser. Navigation to Settings > Persistence is possible, but the interface for the persistence is broken. Just wanted to check if it’s a bug or just a glitch on my side.
TypeError: Cannot read properties of undefined (reading 'getters')
at Proxy.loadCounters (settings-menu-Cs95xK0p.js:40:19)
at Proxy.onPageAfterIn (settings-menu-Cs95xK0p.js:62:8)
at Nn (index-o7zm7EQ2.js:1028:19)
at Pn (index-o7zm7EQ2.js:1035:16)
at fa (index-o7zm7EQ2.js:2468:52)
at e2.b2 (index-o7zm7EQ2.js:15839:53)
at index-o7zm7EQ2.js:4626:16
at Array.forEach (<anonymous>)
at index-o7zm7EQ2.js:4625:18
at Array.forEach (<anonymous>)
I guess it’s something with persistence changes (Proxy.loadCounters):
I performed an upgrading from 5.0.3 to 5.1.0 M4 a few days ago and noticed my persistance was not working, it didn’t restore any of my values post upgrade so i ended up reverting back to 5.0.3 as a temporary fix till i had a chance to research and look into this.
Hi,same problem after upgrade from 5.0.4 to 5.1.0 this night. I also went forward to 5.2.0 to see if it’s fixed, but still the same problem.
I can’t find this .persist’ file to fix this manually.
I checked this directory; Only a readme.txt file exists. I never touched this file in the past, just used the default for all.
I also searched for rrd4j.persist in all subdirectories below ‘/snap/openhab/current’, but failed, doesn’t exists (anymore).
I’m not sure when the fix for persistence was added to upgradeTool but it is likely that happened after M4.
How did you do the upgrade?
Previous to OH 5.1 all the persistence add-ons had a default configuration built into the add-on itself. That caused significant problems for a lot of users so it had to be removed. But if you did the upgrade in a way that skipped some upgrade steps, particularly running upgradeTool, you missed out on the step that created a persistence config for you.
Correct, but only if the upgradeTool was run. If not, no persistence config exists at all now.
@chris66 can either run the upgradeTool or go to Settings → Persistence and create a configuration. To reproduce the same config as was built into the add-ons previously select “all Items” with strategies “everyChange, restoreOnStartup”. For rrd4j, include “everyMinute” as well. However, now is a great time to remove a potential source of race conditions and make sure only one of your persistence configs does restoreOnStartup.