gd35
(Gd35)
November 7, 2023, 7:32am
1
Since I upgraded from OpenHAB 3.4 to OpenHAB 4.0, I noticed that sometimes OpenHAB stops visualizing data in a chart. It happens today (see the following screenshot taken at 8h20)
The current version of OpenHAB is 4.0.3. It is hosted within a Docker container on my NAS (Synology). I have to stop and restart the container to fix the problem. It seems that it is an issue with the persistence service (RR4D4J) since data were not recorded. When I restart the OpenHAB container, data are again stored but there are missing data (see the following screenshot)
I had a look into the log file and did not see a warning/error when OpenHAB stopped storing tha data (around 4h42 this morning).
Any advice to fix the problem ? Thanks in advance.
Wolfgang_S
(Wolfgang_S)
November 7, 2023, 8:27pm
2
Sounds similar to All persistence stopped saving data suddenly (mapDB not active) . RRD4J is mentioned in that thread as well.
1 Like
helipus
(helipus)
November 7, 2023, 8:51pm
3
I did open an issue to this bug. Maybe you can post your problem there with some more details to support the issue and help the maintainers more to solve it.
opened 01:31PM - 22 Oct 23 UTC
bug
Hi there,
For some weeks I have now the problem that the RRD4J persistence stop… ped 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:
```
2023-10-22 14:22:13.830 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'WT_Arbeitszimmer_IstTemperatur' changed from NULL to 21.6 °C
2023-10-22 14:34:22.604 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'WT_Arbeitszimmer_IstTemperatur' changed from 21.6 °C to 21.3 °C
2023-10-22 14:37:24.094 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'WT_Arbeitszimmer_IstTemperatur' changed from 21.3 °C to 21 °C
2023-10-22 14:45:02.340 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'WT_Arbeitszimmer_IstTemperatur' changed from 21 °C to 20.6 °C
2023-10-22 14:49:30.676 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'WT_Arbeitszimmer_IstTemperatur' changed from 20.6 °C to 20.5 °C
2023-10-22 15:02:58.618 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'WT_Arbeitszimmer_IstTemperatur' changed from 20.5 °C to 20.9 °C
```
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)
```
2023-10-22 14:23:27.435 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel
2023-10-22 14:37:49.546 [INFO ] [penhab.core.model.script.Anwesenheit] - Veit ist wieder da! Er war 9 Minuten weg.
2023-10-22 14:49:12.161 [INFO ] [automation.script.file.oeffnungen.js] - Durchsage auf: Alexa_Arbeitszimmer_TTS
2023-10-22 14:49:39.052 [INFO ] [automation.script.file.oeffnungen.js] - Durchsage auf: Alexa_Arbeitszimmer_TTS
2023-10-22 14:49:39.056 [INFO ] [automation.script.file.oeffnungen.js] - Durchsage auf: Alexa_Werkstatt_TTS
2023-10-22 15:05:29.488 [INFO ] [automation.script.file.bewegungen.js] - Automatisierung gestartet durch: BW_Westfassade_Nord_Bewegung ON
2023-10-22 15:05:29.490 [INFO ] [automation.script.file.bewegungen.js] - Kamera Garten: Preset 7
```
## 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`:
```
# configure specific rrd properties for given items in this file.
# please refer to the documentation available at
# https://www.openhab.org/addons/persistence/rrd4j/
#
# default_numeric and default_other are internally defined defnames and are used as
# defaults when no other defname applies
#<dsName>.def=[ABSOLUTE|COUNTER|DERIVE|GAUGE],<heartBeat>,[<minValue>|U],[<maxValue>|U],<sampleInterval>
#<dsName>.archives=[AVERAGE|MIN|MAX|LAST|FIRST|TOTAL],<xff>,<samplesPerBox>,<boxCount>
#<dsName>.items=<comma separated list of items for this dsName>
```
gd35
(Gd35)
November 8, 2023, 8:24am
4
Thanks for having pointing me a similar post. I will have a look at it. By the way, did you try the last version of OpenHAB : 4.1.M3 ? Does this version have the same bug ?