Thought I would create a new thread instead of doing this in the 4.3 release one.
first off: I updated a openHABian-based 4.3.3-release installation (Pi4/4GB) from within openhabian (menu 02):
- after restarting OH4 during update, there are no more rrd4j-based historic states.
- all sub-directories I created in the persistence directories (I purposely copied my
/srv/openhab-userdata/persistence/rrd4j
into/srv/openhab-userdata/persistence/BACKUP_rrd4j
before updating!) are gone.
I also deactivated ZRAM with menu 38 - Uninstall zram before updating, because I do have A LOT of items: 1455. So ZRAM should not be the issue.
except:
- the logfiles are NOT in
/var/log/openhab/
anymore, the./openhab
directory does not exist anymore. - there IS indeed item changes/updates in the now built in openhab GUI, but no openhab.log entries
- there really is no logging anymore:
openhabian@openHABMain:~ $ sudo find / -name openhab.log -ls
399927 276 -rw-r--r-- 1 openhab openhab 278695 Dec 8 12:13 /var/lib/openhab/logs/openhab.log
39 3204 -rw-r--r-- 1 openhab openhab 3280099 Apr 3 09:07 /opt/zram/zram2/upper/openhab/openhab.log
399927 276 -rw-r--r-- 1 openhab openhab 278695 Dec 8 12:13 /srv/openhab-userdata/logs/openhab.log
openhabian@openHABMain:~ $ sudo find / -name events.log -ls
399934 1684 -rw-r--r-- 1 openhab openhab 1722400 Dec 8 12:13 /var/lib/openhab/logs/events.log
97 15664 -rw-r--r-- 1 openhab openhab 16032458 Apr 3 09:06 /opt/zram/zram2/upper/openhab/events.log
399934 1684 -rw-r--r-- 1 openhab openhab 1722400 Dec 8 12:13 /srv/openhab-userdata/logs/events.log
openhabian@openHABMain:~ $ date
Thu Apr 3 09:48:55 AM CEST 2025
as you can see, somehow there’s still logs in /opt/zram? but they stopped after I uninstalled ZRAM via openHABian.
in conclusion:
- I do get rrd-updates since restart
- I don’t get any logs (and subsequently my ELK-stack doesn’t get updated)
- OH seems to not use ZRAM, with ZRAM still somehow active in the system:
openhabian@openHABMain:~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 30189212 15691040 13227136 55% /
devtmpfs 1933400 0 1933400 0% /dev
tmpfs 1968248 1320 1966928 1% /dev/shm
tmpfs 787300 9852 777448 2% /run
tmpfs 5120 0 5120 0% /run/lock
/dev/mmcblk0p1 258095 51430 206665 20% /boot
/dev/zram1 738048 520752 163536 77% /opt/zram/zram1
/dev/zram2 996780 76008 851960 9% /opt/zram/zram2
tmpfs 393648 0 393648 0% /run/user/1000
Is there anything I can do to regain at least the logs?
oh, OH4.3.4 seems to run, the rules should’ve all fired as expected - but I have no means to check as there’s no logs with no ERRORs/WARNs/…, but only item changes.
edit 1:
after a reboot at least it seems, all ZRAM is gone:
openhabian@openHABMain:/var/log $ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 30189212 15330396 13587780 54% /
devtmpfs 1933400 0 1933400 0% /dev
tmpfs 1968248 1304 1966944 1% /dev/shm
tmpfs 787300 9876 777424 2% /run
tmpfs 5120 0 5120 0% /run/lock
/dev/mmcblk0p1 258095 51430 206665 20% /boot
tmpfs 393648 0 393648 0% /run/user/1000
but still: no /var/log/openhab
-directory and no logfile anywhere:
openhabian@openHABMain:/var/log $ sudo find / -name events.log -ls
[sudo] password for openhabian:
399934 1684 -rw-r--r-- 1 openhab openhab 1722400 Dec 8 12:13 /var/lib/openhab/logs/events.log
399934 1684 -rw-r--r-- 1 openhab openhab 1722400 Dec 8 12:13 /srv/openhab-userdata/logs/events.log
edit 2
it even purged all other logfiles, e.g. my zabbig-agent crashed as it no longer had access to /var/log/zabbix-agent/zabbix_agentd.log
:
openhabian@openHABMain:/var/log $ sudo systemctl status zabbix-agent.service
× zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2025-04-03 10:04:37 CEST; 20s ago
Duration: 23ms
Docs: man:zabbix_agentd
Process: 4462 ExecStart=/usr/sbin/zabbix_agentd --foreground (code=exited, status=1/FAILURE)
Main PID: 4462 (code=exited, status=1/FAILURE)
CPU: 20ms
Apr 03 10:04:37 openHABMain systemd[1]: Started zabbix-agent.service - Zabbix Agent.
Apr 03 10:04:37 openHABMain zabbix_agentd[4462]: zabbix_agentd [4462]: cannot open log: unable to open log file [/var/log/zabbix-agent/zabbix_agentd.log]: [2] No such file or directory
Apr 03 10:04:37 openHABMain zabbix_agentd[4462]: Starting Zabbix Agent [openHABMain]. Zabbix 6.0.14 (revision 3f184b456c7).
Apr 03 10:04:37 openHABMain zabbix_agentd[4462]: Press Ctrl+C to exit.
Apr 03 10:04:37 openHABMain systemd[1]: zabbix-agent.service: Main process exited, code=exited, status=1/FAILURE
Apr 03 10:04:37 openHABMain systemd[1]: zabbix-agent.service: Failed with result 'exit-code'.