index.php?view=log duplicating log entries

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
solarpenguin
Posts: 5
Joined: Sat Apr 10, 2021 7:16 pm

index.php?view=log duplicating log entries

Post 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
Attachments
Linux Log File showing one line for the event
Linux Log File showing one line for the event
LinuxLogFile.jpg (228.16 KiB) Viewed 1988 times
ZM View=Log UI showing the event duplicated many times
ZM View=Log UI showing the event duplicated many times
ZMViewLogUI.jpg (843.48 KiB) Viewed 1988 times
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

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

Post 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
solarpenguin
Posts: 5
Joined: Sat Apr 10, 2021 7:16 pm

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

Post by solarpenguin »

Thanks for the reply! I should have posted I'm using 1.34.23 as well.
solarpenguin
Posts: 5
Joined: Sat Apr 10, 2021 7:16 pm

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

Post 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.
Beetleboy
Posts: 13
Joined: Tue Feb 18, 2020 10:24 pm

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

Post 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.
solarpenguin
Posts: 5
Joined: Sat Apr 10, 2021 7:16 pm

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

Post 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.
User avatar
iconnor
Posts: 2880
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

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

Post 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
solarpenguin
Posts: 5
Joined: Sat Apr 10, 2021 7:16 pm

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

Post by solarpenguin »

Cheers Isaac,
That did the trick! Many thanks!
Beetleboy
Posts: 13
Joined: Tue Feb 18, 2020 10:24 pm

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

Post 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.
Post Reply