Yesterday I made some experiments without paying attention to the log. Today OH was active but UI was irresponsive. I was not able to login, logout, see my locations, equipments, etc. openhab.log was full of errors, the last ones were RRD4j complainning to be unable to persist data, and immediatly before were the errors from my faulty experiment. The last log entry was from 3h ago and the log size size was exactly 16M.
I’ve stopped OH, deleted the logs, started OH, and now it’s ok. I’m not saying that this is a general error, but my suggestion is that OH should create log1, log2, etc to avoid these situations, like Plex does (for example).
OH is able to do so but the configuration needs to fit to what is available on the local system.
You wrote that the logsize was 16MB. Was still free space available on the disk/ZRAM ?
Thanks. In my case it creates a new log file when OH starts, but last night openhab.log grew to 16M and OH simply stopped. Last messages recorded in the log were from RRD4j complainning to be unable to persist data, which is strange, there’s lot of free space available (more than 1Tb).
Which probably means that the log grew to 16 MB and when it tried to rotate and start a new file it couldn’t because the file system was locked or otherwise in a state where writes were not allowed by the openHAB user.
There really isn’t anything you can change in the openHAB log settings to fix this. You need to figure out why the openhab user or openHAB process was not allowed to write to the file system.
Thanks, but I have no idea of how to do that. The original mistake I did was to install the Zigbee add-on and use its serial capability to communicate with a zigbee coordinator where the zigbee process was not active. That led to a series of error messages, for each access attempt I had one entry complainning of the error, and several lines with a java traceback. So my suspicion is that the log filled during this trace process and that left OH “squeezed” and other processes were affected.
That wouldn’t happen until the log file filled up all your 1TB drive. The log file is not the source of the original problem. And I can’t tell you how to go about figuring it out since I’ve never seen any problem like it that wasn’t caused by the drive running out of space, which you’ve assured us was not the case.