- Platform information:
- Hardware: Pi4
- OS: openhabian openhabian-pi-raspios64-202308121313-gitc6a2fa1-crcaf8d881d.img.xz
- Java Runtime Environment: 17.0.10+7-1~deb11u1
- openHAB version: 4.1.1-1
- Issue of the topic:
I’ve been running open habian with a working 1-wire setup for about 3 weeks, collecting data from 10 temp sensors, and it’s been working very nicely - I even got a nice home screen set up with various graphs and temps.
I went away for a day and had to take the USB-C cable that was powering the Pi with me so I pulled the power. I plugged it back in after 2 days and when I looked at my graphs they just started from then. The previous 3 weeks RRD data was all gone!
That’s not expected is it? The whole point about RRD is that it’s hard to lose your data.
I also seem to have lost my ‘overview’ screen setup after another couple of days (It was working after the powerdown but maybe only because it was cached in a browser window?)
So can someone tell me where the RRD files live - maybe my old data is still there and can be rescued?
Why might this happen? OK, I didn’t do a proper shutdown, but I don’t see a way in the UI to do that anyway, and it shouldn’t lose weeks of data from an rrd database.
Similarly where does the overview page config live. Might I be able to rescue that from somewhere?
The ‘things’ configuration is still there.
Looking in /var/log there are some trivial files from feb 7th and then bothing until mar 6th 09:17 (when I plugged the power back in). I see that /var/log seems to be in-memory, which would explain why all the log files are gone: overlay2 on /var/log type overlay (rw,relatime,lowerdir=/opt/zram/log.bind,upperdir=/opt/zram/zram2/upper,workdir=/opt/zram/zram2/workdir,redirect_dir=on)
Looking in var/lib/openhab/persistence/rrd4j there are rrd4j files for the 10 temp sensors. Can I interrugat them directly to find out how far back they go (I bet it’s just to the 6th)?
I saw a /var/lib/openhab/backups directory which was encouraging, but it’s empty.
Anyone got any idea what’s gpoing on here? That data was important - it was for my heat-load analysis. It’s spring now - I may not get another 0C night before about November now. I really wasn’t expecting it to just evaporate!
Oh and is there a way to backup the data I have now to avoid the same problem again? I just wandered round the interface and didn’t see a ‘backup’ option.
Clues welcome.