Page 1 of 1

index.php?view=log duplicating log entries

Posted: Sat Apr 10, 2021 7:30 pm
by solarpenguin
Hello,
I've searched and found similar incidents in old versions of ZM, but nothing current nor documented fixes, but it appears when accessing the log view from the main UI, it is duplicating entries from the linux log over and over and over.

Did I miss a setting or is there an error with the js or php?

Thanks,
SP

Re: index.php?view=log duplicating log entries

Posted: Thu Apr 15, 2021 10:53 am
by kitkat
I'm afraid that I don't have an answer, but I am seeing the same behaviour here with version 1.34.23: viewtopic.php?f=40&t=30530

Re: index.php?view=log duplicating log entries

Posted: Fri Apr 16, 2021 9:01 pm
by solarpenguin
Thanks for the reply! I should have posted I'm using 1.34.23 as well.

Re: index.php?view=log duplicating log entries

Posted: Fri Apr 16, 2021 9:26 pm
by solarpenguin
So it looks like there is an error logged in github which shows the same behaviour.

https://github.com/ZoneMinder/zoneminder/issues/3086

Whilst the problem statement is a little different, you can see from Tony763's first screenshot, one log entry is repeating over and over.

Re: index.php?view=log duplicating log entries

Posted: Sat Apr 17, 2021 3:27 am
by Beetleboy
I have had the same behaviour on versions 1.34.23, 1.34.24 and 1.34.25.
The count of log entries at the top of the screen is correct.
Also, when I switch to log view, quite often there is a lot of flicker on the entries on the screen for several seconds before it settles down.
Occurred both on Raspberry pi running Raspberry OS, and on intel running Ubuntu 10.04 and 20.04.

Re: index.php?view=log duplicating log entries

Posted: Mon Apr 19, 2021 3:00 pm
by solarpenguin
Upgraded to 1.34.25 and issue is still there. Verified the logs table in mysql just had the one hi-lighted log from my log file noted above.

Re: index.php?view=log duplicating log entries

Posted: Mon Apr 19, 2021 9:17 pm
by iconnor
It will be fixed in in .26.

If you want to fix your install, edit /usr/share/zoneminder/www/ajax/log.php
on lines 51 and 62 change the >= and <= to > and < respectively

Re: index.php?view=log duplicating log entries

Posted: Tue Apr 20, 2021 1:54 am
by solarpenguin
Cheers Isaac,
That did the trick! Many thanks!

Re: index.php?view=log duplicating log entries

Posted: Wed Apr 21, 2021 12:52 am
by Beetleboy
Issac, thank you as well. this seems to resolve the duplicate entries and the issues with the unstable screen.
However, I do notice now when I go to delete entries on the log screen, it leaves 2 entries I can delete without truncating the table in mysql. The entry appear to be the oldest and newest entry in the logs table.