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
index.php?view=log duplicating log entries
-
- Posts: 5
- Joined: Sat Apr 10, 2021 7:16 pm
index.php?view=log duplicating log entries
- Attachments
-
- Linux Log File showing one line for the event
- LinuxLogFile.jpg (228.16 KiB) Viewed 2680 times
-
- ZM View=Log UI showing the event duplicated many times
- ZMViewLogUI.jpg (843.48 KiB) Viewed 2680 times
Re: index.php?view=log duplicating log entries
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
-
- Posts: 5
- Joined: Sat Apr 10, 2021 7:16 pm
Re: index.php?view=log duplicating log entries
Thanks for the reply! I should have posted I'm using 1.34.23 as well.
-
- Posts: 5
- Joined: Sat Apr 10, 2021 7:16 pm
Re: index.php?view=log duplicating log entries
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.
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
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.
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.
-
- Posts: 5
- Joined: Sat Apr 10, 2021 7:16 pm
Re: index.php?view=log duplicating log entries
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
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
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
-
- Posts: 5
- Joined: Sat Apr 10, 2021 7:16 pm
Re: index.php?view=log duplicating log entries
Cheers Isaac,
That did the trick! Many thanks!
That did the trick! Many thanks!
Re: index.php?view=log duplicating log entries
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.
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.