Running OH 4.2.1 on a Pi 4B with 4GB RAM.
Technical Information:
runtimeInfo:
version: 4.2.1
buildString: Release Build
locale: en-US
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 17.0.12
javaVendor: Debian
osName: Linux
osVersion: 6.6.31+rpt-rpi-v8
osArchitecture: aarch64
availableProcessors: 4
freeMemory: 339648040
totalMemory: 805306368
uptime: 79033
startLevel: 70
addons:
- automation-jsscripting
- automation-jsscriptingnashorn
- binding-androidtv
- binding-astro
- binding-denonmarantz
- binding-exec
- binding-generacmobilelink
- binding-gpstracker
- binding-icalendar
- binding-icloud
- binding-ipcamera
- binding-irobot
- binding-logreader
- binding-mail
- binding-mqtt
- binding-network
- binding-networkupstools
- binding-ntp
- binding-openweathermap
- binding-remoteopenhab
- binding-roku
- binding-tplinksmarthome
- binding-zwave
- misc-homekit
- misc-openhabcloud
- persistence-rrd4j
- transformation-jinja
- transformation-jsonpath
- transformation-map
- transformation-regex
- ui-basic
- ui-habpanel
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1.5
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 8
language: en-US
languages:
- en-US
- en
onLine: true
platform: Win32
screen:
width: 1707
height: 1067
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: light
filled: true
pageTransitionAnimation: default
bars: light
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
blocklyRenderer: null
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/128.0.0.0 Safari/537.36
timestamp: 2024-09-12T19:11:40.671Z
I am getting many of these errors (different items, but the same error.
2024-09-11 16:49:01.690 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/gGarlandLights.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/gGarlandLights.rrd] is not a RRD4J RRD file
2024-09-11 16:49:01.701 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/gThermostatsLowerTemperatureSettings.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/gThermostatsLowerTemperatureSettings.rrd] is not a RRD4J RRD file
2024-09-11 16:49:01.710 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/somecomfort1863934Upstairs_Temperature.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/somecomfort1863934Upstairs_Temperature.rrd] is not a RRD4J RRD file
2024-09-11 16:49:01.715 [ERROR] [d4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/somecomfort1864745Master_Humidity.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/somecomfort1864745Master_Humidity.rrd] is not a RRD4J RRD file```
Searching the forum I found many references to this error, such as:
https://community.openhab.org/t/could-not-create-rrd4j-database-file-error-in-oh3/113025/47
https://community.openhab.org/c/add-ons/persistence/16
https://community.openhab.org/t/could-not-create-rrd4j-database-file-file-is-not-a-rrd4j-rrd-file/149613
My non expert takeaway from these threads is that it is a ZRAM memory problem. I have seen suggestions to increase the memory allocation to this, but don't want to randomly change numbers I don't really understand.
```yaml
openhabian@oh-s:/etc/default $ zramctl --output-all
NAME DISKSIZE DATA COMPR ALGORITHM STREAMS ZERO-PAGES TOTAL MEM-LIMIT MEM-USED MIGRATED MOUNTPOINT
/dev/zram0 1G 4K 87B lzo-rle 4 0 12K 300M 12K 0B [SWAP]
/dev/zram1 750M 699.5M 15.6M zstd 4 137843 18M 300M 18M 0B /opt/zram/zram1
/dev/zram2 1G 105.4M 19.6M zstd 4 1776 23.2M 600M 23.2M 0B /opt/zram/zram2
openhabian@oh-s:/etc/default $
It would probably be helpful to prune items, as I’m sure I have some legacy items that I no longer use that are encumbering the process. But I would appreciate suggestions of how to change the memory settings.
Thanks