After a couple of days/weeks this issue appears and only a restart (or sometimes refreshing/saving a rule or item) solves it. The log in http://openhab:9001/ only shows
==> /var/log/openhab2/events.log <==
==> /var/log/openhab2/openhab.log <==
Everything else that was shown before like item updates, rules executions, etc. is not reflected anymore in the frontail.
I haven’t found a similar issue in this forum. Can anyone please tell me what I am doing wrong?
When I first read it I was thinking about if rotating logs could be the problem. This would mean in case a new logfile is created and frontail might not be able to “attach the viewer” to the new file. But according to frontail this should be possible and others would report to have the same problem.
It shows logs from 9 days ago. Those are also the last entries in the log file when I open it via FTP. Any clue why this happens? This is happening every couple of days, sometimes only a few days, sometimes 2 weeks.
Edit: Actually it just recovered and shows now the logs again. Everything I did was just opening the logs file
Yes, a normal openhabian installation on a PI 3. Nothing specific changed. I cleaned up the log file yesterday and it is currently running smoothly. I can’t say what causes this. All of a sudden the issue appears in the browser view (frontail) and it won’t recover unless I restart the Pi or clean up the logs. But without my interaction nothing gets resolved.
You just deleted the log files that are in the /var/log/openhab folder and the files were re-created by the system ? In case the problem happens again could you check how big the files are ?
To do so please run:
ls -l /var/log/openhab/
and post the output. As you wrote before that there is enough space on the disk the only idea I have at the moment would be the file size of the logfiles itself.
I did not delete the whole file as I was not sure it will be automatically created (now I know). I had just removed most entries. Before I did that the log file was about 8.x MB. I will try to monitor it again. My initial thought was that some event (maybe in the logs itself) caused the stop.
But I am convinced it will happen again after some time. I will post the file size then again.
The last timestamps in the logs are as follows, you may note that there is a java error there. Yes there is and it is another issue I am chasing but this doesn’t account for loss of logs when I have been monitoring in real-time in frontail across this hole! Strange.
2020-10-08 02:35:26.303 [vent.ItemStateChangedEvent] - LocalPi_Cpu_SystemUptime changed from 7657.4 to 7658.6
2020-10-16 21:15:12.527 [hingStatusInfoChangedEvent] - ‘astro:sun:dee38be5’ changed from UNINITIALIZED to INITIALIZING
2020-10-08 11:53:07.983 [WARN ] [y.util.thread.ReservedThreadExecutor] -
java.lang.OutOfMemoryError: Java heap space
2020-10-16 21:14:59.190 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to ‘Europe/London’.
Going to have another look about for anyone else with this. Cheers.
You mean reinstalling openhabian completely? I am not sure if this will solve the issue forever. I have installed multiple versions this year (complete new openhabian installations) and the issue appeared with every version. I guess it happens when the file reaches a certain size, as someone else mentioned in a previous post.
I thought that frontail was just a log viewer? Would this be able to create days worth of lost lines in the logs? I haven’t considered frontail as a suspect but will dive in that direction if you have had success.
Ah right, yes so actual missing lines in the log couldn’t have been caused by frontail.
I also don’t feel there would be a way to recover, I am more interested in how it has started to happen, when at the time I can see the line of the log in frontail but when looking at the actual .log file that line is not present. Could it be when restarting openhab under certain conditions it dumps lines from the .log files?