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] Persistence stops saving data suddenly (mapDB not active) #15794
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: |
I restricted the number of items which have the default strategy everyMinute by adding my own persistence configuration:
|
Still no errors with this strategy. So I think it is a bug. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-0-stopped-visualizing-data-in-a-chart/151032/3 |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
described here why it appears to be rather a terrible rrd4j-performance leading to backlogs-issue than a stopping. For full details please read above post. An extract of what I described there:
See the first entry logged at 2024-04-03 18:22:48: So in ~6.5 minutes it was able to only store values of ~1.75 minutes (from meanwhile almost two days ago!). And in deed, the OpenHAB graphs show the values up to that very timestamp. While those that are being logged with a current timestame 1712161xxx (=the white ones) were all discarded, due to “new value arrived with same timestamp”, but strangely that one is not logged here at all. Maybe it will in 2-3 days, when the processing finally reaches that timestamp. Looks like I can observe the above for every item. A little difference to the energy meter values above though can be seen for the values that are not reported that often:
There (with the same delay in timestamps) it looks like each one is processed twice, which looks strange to me as well but could be as expected. |
Hi there,
For some weeks I have now the problem that the RRD4J persistence stopped saving data suddently. I recognized this because in the temperature graphs the line stopped suddenly. After I restarted openhab everything worked fine for some hours and then it happens always again. Since then I'm troubleshooting this problem and didn't found a solution yet. I tried the forum and discord.
https://community.openhab.org/t/all-persistance-stopped-saving-data-suddenly-mapdb-not-active/
The problem got worth from day to day. Now it takes only a few minutes till the persistence is not working anymore.
Expected Behavior
Every minute the value of WT_Arbeitszimmer_IstTemperatur should be save from the rrd4j persistence.
Current Behavior
After a restart it shortly works like expected and then it just stops recording values.
Possible Solution
none found yet.
Steps to Reproduce (for Bugs)
Example:
I restarted openhab at:
2023-10-22 14:20:18.869 [INFO ] [org.openhab.core.Activator ] - Starting openHAB 4.0.3 (build Release Build)
The first value was saved at 14:22 the last value at 14:47. Then it stopped again. (some other values stopped at 14:40 some at 14:48?!)
The rrd4j database file still gets written every minute if I check the filetime:
In total there are 1181 files in the persistence folder.
events.log filtered for this item:
So the item is changing correctly, the pesistence file is update but nothing is written.
Because when I restart openhab the time from 14:47 till the restart stays empty in the graph.
Context
Maybe this helps debbuging the error:
The log at the time the peristances stops: (nothing there which helps)
Your Environment
I’m running openHAB 4.0.3 on a Synology NAS DS716 with DSM 7.1.1.-42962 in a docker container.
docker container configuration:
in docker:
on server:
the following folder just has a readme:
conf\persistence
conf\services\rrd4j.cfg
:The text was updated successfully, but these errors were encountered: