Page 1 of 1
[SOLVED] Change function to "None" trough API doesn't stop zmc process
Posted: Sun Aug 28, 2016 4:13 pm
by sctt
Hello,
i'm using ZoneMinder 1.29 on a Debian 8.5 system.
The problem is this:
when i change monitor function to None trough ZM web interface, zmc process stops, tcpdump doesn't show any traffic, my camera led doesn't blink, and i can see no live stream.
when i change monitor function to None trough ZM APIs, zmc process stops for few seconds but then it respawns, tcpdump shows traffic, my camera led blinks, and i can see live streams perfectly.
in this case, even though it behaves like a Monitor function, ZM web interface reports me that the function is actually set to None.
have you got any idea on why the zmc process respawns after being stopped when i set function to None trough APIs?
thank you.
Re: Change function to "None" trough API doesn't stop zmc process
Posted: Sun Aug 28, 2016 4:34 pm
by sctt
i'm attaching some logs.
that's what happens when i change function to None from ZM web interface:
Code: Select all
Aug 28 18:29:12 oculus zmdc[28062]: WAR [Can't find process with command of 'zmtrack.pl -m 8']
Aug 28 18:29:12 oculus zmdc[28062]: WAR [Can't find process with command of 'zma -m 8']
Aug 28 18:29:12 oculus zmdc[28062]: INF ['zmc -m 8' sending stop to pid 30377 at 16/08/28 18:29:12]
Aug 28 18:29:12 oculus zmc[30377]: INF [Got signal 15 (Terminated), exiting]
Aug 28 18:29:12 oculus zmc[30377]: ERR [Select error: Interrupted system call]
Aug 28 18:29:12 oculus zmc[30377]: ERR [Unable to read content]
Aug 28 18:29:12 oculus zmc[30377]: ERR [Unable to get response, disconnecting]
Aug 28 18:29:12 oculus zmdc[28062]: INF ['zmc -m 8' exited normally]
Aug 28 18:29:13 oculus zmdc[28062]: WAR [Can't find process with command of 'zmtrack.pl -m 8']
Aug 28 18:29:13 oculus zmdc[28062]: WAR [Can't find process with command of 'zma -m 8']
that's what happens when i change function to None from ZM APIs:
Code: Select all
Aug 28 18:31:08 oculus zmdc[28062]: INF ['zmc -m 8' sending stop to pid 30511 at 16/08/28 18:31:08]
Aug 28 18:31:08 oculus zmc[30511]: INF [Got signal 15 (Terminated), exiting]
Aug 28 18:31:08 oculus zmc[30511]: ERR [Select error: Interrupted system call]
Aug 28 18:31:08 oculus zmc[30511]: ERR [Unable to read content]
Aug 28 18:31:08 oculus zmc[30511]: ERR [Unable to get response, disconnecting]
Aug 28 18:31:08 oculus zmdc[28062]: INF ['zmc -m 8' exited normally]
Aug 28 18:31:08 oculus zmdc[28062]: INF ['zma -m 8' starting at 16/08/28 18:31:08, pid = 30562]
Aug 28 18:31:08 oculus zmdc[30562]: INF ['zma -m 8' started at 16/08/28 18:31:08]
Aug 28 18:31:09 oculus undef[30562]: INF [No Server ID or Name specified in config. Not using Multi-Server Mode.]
Aug 28 18:31:09 oculus zmdc[28062]: INF [Starting pending process, zmc -m 8]
Aug 28 18:31:09 oculus zma[30562]: ERR [Shared data not initialised by capture daemon for monitor Camera]
Aug 28 18:31:09 oculus zmdc[28062]: ERR ['zma -m 8' exited abnormally, exit status 255]
Aug 28 18:31:09 oculus zmdc[28062]: INF ['zmc -m 8' starting at 16/08/28 18:31:09, pid = 30564]
Aug 28 18:31:09 oculus zmdc[30564]: INF ['zmc -m 8' started at 16/08/28 18:31:09]
Aug 28 18:31:09 oculus zmdc[28062]: INF [Starting pending process, zma -m 8]
Aug 28 18:31:09 oculus zmdc[28062]: INF ['zma -m 8' starting at 16/08/28 18:31:09, pid = 30566]
Aug 28 18:31:09 oculus zmdc[30566]: INF ['zma -m 8' started at 16/08/28 18:31:09]
Aug 28 18:31:09 oculus undef[30564]: INF [No Server ID or Name specified in config. Not using Multi-Server Mode.]
Aug 28 18:31:09 oculus undef[30566]: INF [No Server ID or Name specified in config. Not using Multi-Server Mode.]
Aug 28 18:31:09 oculus zmc[30564]: INF [Starting Capture version 1.29.0]
Aug 28 18:31:09 oculus zma[30566]: WAR [Waiting for capture daemon]
Aug 28 18:31:10 oculus zma[30566]: INF [In mode 1/0, warming up]
Re: Change function to "None" trough API doesn't stop zmc process
Posted: Fri Sep 02, 2016 2:59 am
by gert
This is happening for me as well! (1.29 as well)
I am watching `htop` while doing this (I'm using Ansible). And it actually does stop the zmc processes for a moment, and then they start up again. Even if everything was disabled (16 cameras), I restart Zoneminder, and run my disable script, they all start up.
This happens regardless of setting None, disabled, or both at the same time. I can fix it by restarting zoneminder, but that's dumb...
I should also note that I only have 10 cameras hooked up currently, though the other 6 are set up in zoneminder. Processes for these 6 are also running after API calls. It does appear that these cameras's processes aren't using as much CPU power though.
Are we missing some part of the API that we should be using? I'll look into this further tomorrow...
Re: Change function to "None" trough API doesn't stop zmc process
Posted: Fri Sep 02, 2016 1:35 pm
by knight-of-ni