Data loss in rrd4j database after reboot

thanks

seems that all of you are on the track - and maybe there is more than one thing I didn’t care about so far!

As I understand from https://community.openhab.org/t/zram-status/80996 ZRAM is enabled per default meanwhile. Would you recommend trying to deinstall it?

I’m rebooting the system by sending a ‘sudo reboot’ to the pi via putty. Pretty brutal…?

To show you some of the other code I used for storing the data:

addons.cfg
A comma-separated list of persistence services to install (e.g. “persistence = rrd4j,jpa”)
persistence = rrd4j

runtime.cfg
################ PERSISTENCE ####################
The persistence service to use if no other is specified.
org.eclipse.smarthome.persistence:default=rrd4j

flat.sitemap
Frame
{
Switch item=Chart1Period mappings=[0=“Stunde”, 1=“Tag”, 2=“Woche”, 3=“Monat”, 4=“Jahr”]

    Chart item=gSchlafzimmer period=h refresh=600 visibility[Chart1Period==0, Chart1Period=="Uninitialized"]
    Chart item=gRoom01 period=D refresh=6000 visibility=[Chart1Period==1]
    Chart item=gRoom01 perinotod=W refresh=6000 visibility=[Chart1Period==2]
    Chart item=gRoom01 period=M refresh=6000 visibility=[Chart1Period==3]
    Chart item=gRoom01 period=Y refresh=6000 visibility=[Chart1Period==4]
}

I’ve not used REST API so far so I will need some time to get into it. But my understanding at the moment is that charting itsself is working fine and the issue is with the data. I belive this cause after a reboot the chart will suddenly be without any data line but a minute later (strategy = everyMinute !) it is starting to build up a new line based on the next data coming in.

Ok and permissions of the data log files:
-rw-rw-r-- 1 openhab openhab 28280 Jul 25 23:44 humid_N00.rrd
-rw-rw-r-- 1 openhab openhab 28280 Jul 25 23:44 tempe_N00.rrd

hope this makes clearer what I’m doing here
Rick