Event notification

Discussion topics related to mobile applications for ZoneMinder
cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Event notification

Post by cafftab » Tue Nov 12, 2019 6:05 pm

Hi

I have a working zoneminder at 1.32.3 with notification going out to zmninja but the notification server stops somewhat randomly and doesn't restart until I restart zoneminder then it works again for hours sometimes days. I understand from the installation instructions that this version of zm (above 1.32.0) that you don't need to edit /usr/bin/zmdc.pl so I didn't do it. I think allows the system to check to see if daemons are running and restarts them, could that be needed? Looking for suggestions.

Thanks

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Wed Nov 13, 2019 8:41 pm

1. Make sure you are on the latest ES
2. I've seen this happen at times (not as frequently as you report). ZM just stops reporting events on SHM even if I update the SHM handles on the ES. Not really sure why
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Thu Nov 14, 2019 6:20 pm

Currently running 3.6 isn't that the current version if running zoneminder at 1.32.3?

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Fri Nov 15, 2019 7:13 pm

3.6 of the ES? No, we are at 4.5 now.
https://github.com/pliablepixels/zmeven ... ion.pl#L62
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Mon Nov 18, 2019 4:47 pm

Thanks for the tip, I upgraded to 4.5 and other than not saving bbox files to my image directory, (which I see could be related to not being at 1.33) I still have the same thing happening. I didn't notice before but I can see a log saying "EventSever: Failed to connect to WebSocket: code: 1006, reason: undefined, exception: The operation couldn’t be completed. Operation timed out"

Does that mean anything or should I report the issue via through the app

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Wed Nov 20, 2019 5:59 pm

Update on my issues, I upgraded to 133 and everything seems more stable. Objects even license plates are detected. Thanks to asker for the tips linked in his/her signature, I have reduced the load on my system and smearing is not as bad. I even get a thumbnails in the zmninja notification on my phone. If it holds I can stop sending alarm emails to myself.

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Wed Nov 20, 2019 6:01 pm

Well, keep me updated.
For some reason, I see the ES "just stopping" after several hours. I haven't found the issue yet (still debugging).
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Thu Nov 21, 2019 5:11 pm

opps spoke to soon ES stopped responding again, lasted longer (maybe?) If there was a log file from me you think would help let me know which one and I would be happy to send it to you. It appears that when I sudo zmdc.pl status zmeventnotification.pl it's running but I will confirm that the next time it happens.

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Thu Nov 21, 2019 7:09 pm

I think the issue has been found. Stay tuned (will know tomorrow)
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Fri Nov 22, 2019 3:54 pm

Still working on it. Fixes last night did not work. If its not solved by tomorrow, we may have to wait a week. I am out all of the coming week.
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Wed Dec 04, 2019 8:11 pm

Hi. I was wondering if there is a fix for this issue yet?

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Wed Dec 04, 2019 9:39 pm

Yes, a hack, but it works
Please follow https://github.com/pliablepixels/zmeven ... issues/175
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Wed Dec 04, 2019 10:44 pm

Great, I upgraded ES to 4.7 Hopefully that will cure it for now

cafftab
Posts: 17
Joined: Mon May 06, 2019 6:03 pm

Re: Event notification

Post by cafftab » Fri Dec 06, 2019 12:49 am

Nope, it stopped overnight, if I were to shorten the restart time do I have to do it in both the zmnotification.pl and zmnotification.ini ? I see there is a new zoneminder build should I upgrade or get this working first?

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: Event notification

Post by asker » Fri Dec 06, 2019 1:07 am

It should restart every 2 hrs. Make sure your debug logs say so. If not your upgrade did not work.
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests