Events data in database is incorrect
ZM version is 1.36.7 but I've also seen this on 1.37.1 I install from source My O/S is OpenSuse Leap15.2 and it has MariaDB installed I'm using Firefox 92.0.1 but I don't think this is a web problem
The problem seems to be with writing event data to the database. I have observed three issues:
- The Frames count may be incorrect when compared with the number of entries in the events filestore - so far I have only found that the Frames count is one less than the filestore
- The Name for some events remains as New Event and doesn't get the name of the monitor or the event id as other events
- The EndDateTime is sometimes left NULL
The effect of any of these is that it causes reply to crash and therefore the screen output stops.
I can reproduce this by clicking on the Events counter for a camera on the console and then clicking on the first event in the list. Playback stops when it runs into one of these problems.
I have written a simple shell script to correct these errors and now I can replay without the interruption.
I can provide a log output if this is of any value but the problem only seems to show up on playback, I've yet to see anything being logged about the writing of the data and this problem didn't exist in version 1.34.nn
Please advise if there is more information I can supply
I am unable to reproduce this. Just tested a cam, turned on jpeg frames storage. Recorded event had 90 frames, and there were 90 jpegs in the file store.
#2 and #3 imply a crash in the zmc process. Check your zmc logs.
Problem number 1 occurs randomly, at least as of yet I haven't been able to see a pattern.
I have checked logs for #2 and #3 when the problem shows and I can see nothing in the logs associated with the events that are showing this problem.
I think I may have found a possible cause. I have a script running periodically that makes sure zm is running - partly to make sure it restarts after a reboot and also because I sometimes change the run state during the day. I found that the script was looking at a runstate with the wrong case so it thought zm needed to be restarted so it was running zmpkg.pl. Each time it ran a number of errors were repeated in the log. Does the system allow capture in progress to complete before the new state is started?
zmc_m4 ERR Failed to capture image from monitor 4 Conservatory (1/1) zmc.cpp 306 zmc_m4 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087 zmc_m4 ERR Unable to read subheader zm_remote_camera_http.cpp 937 zmc_m4 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 241 zmc_m6 ERR Failed to capture image from monitor 6 Drive (1/1) zmc.cpp 306 zmc_m6 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087 zmc_m6 ERR Unable to read subheader zm_remote_camera_http.cpp 937 zmc_m6 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 241 zmc_m1 ERR Failed to capture image from monitor 1 Kitchen (1/1) zmc.cpp 306 zmc_m1 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087 zmc_m1 ERR Unable to read subheader zm_remote_camera_http.cpp 937 zmc_m1 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 241 zmsystemctl 16534 INF Redirecting command through systemctl zmsystemctl.pl -
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Triaging the issue backlog. This traced to an external cron script restarting ZoneMinder mid-capture and was never reproducible. Closing.