- Platform information:
- HRPi 4, 4 GB
- OS: Openhabian (Debian 12)
- Java Runtime Environment: 17
- openHAB version: 4
- Issue of the topic: I updated Openhab from version 3 to version 4. Imported the configuration from Openhab 3. Did some minor changes (locations, equipment).
I noticed that after a few minutes (around 10) the logging of events (in the events.log file) stops.
If I reboot the RPi the situation is repeated (logging of events for a few minutes and then logging stops). - Please post configurations (if applicable): 4.12
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
- If logs where generated please post these here using code fences:
Do you have any indication whether the events are still occurring and the problem is the logger, or is it the events themselves that stopped?
Try to disable zram sync systemctl disable --now zsync.timer
and let us know if that makes a difference.
The system is operating normally (data acquisition and execution of rules based on time) but the changes in measurements and control actions are not logged.
Yesterday, I rebooted the RPi at 11:57 2024-05-24 and I have logs of measurements changes and control actions till 12:06 2024-05-24 (first and last logs of the events.log file below).
2024-05-24 11:57:39.165 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘shelly:shellyplugs:948ba86391’ changed from UNINITIALIZED (HANDLER_MISSING_ERROR): Handler factory not found to UNINITIALIZED (NOT_YET_READY)
…
2024-05-24 12:06:12.471 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘LR_TvSetPlug_Power’ changed from 11.232406 W to 11.415866 W
I followed your suggestion but the situation seems the same: no logs.
Should I reboot the RPi or, how can I restore the previous zram sync situation?
Does systemctl list-timers
show that the zsync
timer is disabled ?
Don’t boot. You can re-enable it using systemctl enable zsync.timer
.
Thank you.
I really do not need the logs since I can follow the measurements and the results of the control actions.
My main concern is “why is the logging stopped”, since in my previous version (3), it was active.
I would just like to add that the date of the last record in the “openhab.log” file is from 11:57 2024-05-24.
I enabled zsync.timer but it does not appear in the active timers list.
zsync.timer only appears in the list that includes inactive timers (list-timers --all)
systemctl enable --now zsync.timer
zsync.timer now appears in the active timers list.
Thank you.
The files openhab.log and events.log remain the same (2024-05-24 11:57 for openhab.log and 2024-05-24 12:06 for events.log)