-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rrd4j] "Tried to set invalid state" errors when restoring values on startup #8806
Comments
Do you also use mapdb to restore values on startup? The version used with OH3 was rewritten and seems to have some issues. |
No, I don't use mapdb at all, is it enabled by default? |
No it's not enabled by default. But I have also seen similar error logging about invalid state. I hope to find the root cause. :-) |
It does appear that state is somehow persisted across restarts |
It could be that you are now using rrd4j to restore the state on startup. IIRC rrd4j doesn't store the unit with quantity type items so that might cause your other issue https://github.com/openhab/openhab-core/issues/1732. |
I uninstalled rrd4j and the errors went away. |
OK that at least explains some of the issues. When a persistence service is installed it is enabled and it will use the default persistence strategies of the service if none are configured, which seems to be storing items every minute and restoring on startup. The default service setting is only used to determine which source should be used for charts. |
I didn't install a persistence service. I'm using the conf/services/addons.cfg, and persistence isn't even defined. |
It's installed by default and that is also not obvious in the setup wizard, see openhab/openhab-webui#306 (comment). So it doesn't help that its default persistence strategies will now also start generating these issues for everyone out of the box. |
We'd have to investigate why this happens - for me, restoring switch items works flawlessly with rrd4j. |
It seems when rrd4j restores values the precision gets lost causing #8798 and it has other issues as well. When I use the demo setup it also cannot restore the Heating item:
|
I have found a few flaws in rrd4j and am working on fixing it - stay tuned. |
Here you go: #8815 |
I see the following in openhab.log:
The .items file is similar to:
The text was updated successfully, but these errors were encountered: