ZM camera control under Jessie: Can't get it work

Forum for questions and support relating to the 1.28.x releases only.
Locked
tomrey
Posts: 2
Joined: Fri Nov 11, 2016 10:10 am

ZM camera control under Jessie: Can't get it work

Post by tomrey »

Hi all,
after several non successful days I must admit not being able to configure the control for my foscam-clone camera.
I installed Zoneminder on my Jessie according to:
http://zoneminder.readthedocs.io/en/sta ... ian-jessie
from the Jessie repos (not jessie-backports)
Apache and Mysql were already running.
The monitor works fine as well, just the control does not.
My camera reacts as it should after direkt browser instructions as e.g.
http://192.168.1.121/decoder_control.cg ... pwd=SECRET
In Zoneminder the PTZ option is ticked and I tried as wellt he foscam presets as an own config for foscam clones.
In the config-window I put:
Control Type: ipc_1a (same as the ipc_1a.pm)
Control Device: USER:SECRET or I tried as well user=USER&pwd=SECRET
Control Address: 192.168.1.121

Which gives me the control buttons but when pressing after 4-5 seconds I receive in a popup:
Control response was status = undefined
message = /usr/bin/zmcontrol.pl --autostop --command=moveConRight --id=2=>

ZM-Log gives me:
2016-11-11 11:50:11.082496 web_php 6531 ERR /usr/bin/zmcontrol.pl --autostop --command=moveConRight --id=2=> /usr/share/zoneminder/www/includes/functions.php 2330
2016-11-11 11:50:11.073680 zmcontrol 7023 FAT Can't connect: No such file or directory zmcontrol.pl

With: tail -f /var/log/syslog I get:
Nov 11 11:46:24 terra zmcontrol[6730]: INF [Starting control server 2/ipc_1a]
Nov 11 11:46:24 terra zmcontrol[6735]: INF [Control server 2/ipc_1a starting at 16/11/11 11:46:24]
Nov 11 11:46:34 terra zmcontrol[6730]: FAT [Can't connect: No such file or directory]
Nov 11 11:46:34 terra web_php[6721]: ERR [/usr/bin/zmcontrol.pl --autostop --command=moveConRight --id=2=>]

Regfarding: "Can't connect: No such file or directory" I sware, the names are identical and the files are executable and readable by everyone.
What I have observed – at least I think so is, that after closing the monitor’s configuration-window, the changes are not always applied even if I restart zm.
Same puzzling effect I found when editing a control type, changes are reflected in the control capabilities window but not in the monitor's control window.
Therefore after some googling I reinstalled perl and perl-modules – no efect.
Before I just forget about this function I give it a try here…

I do have webmin and phpmyadmin to look into the database directly but I didnt dare so far...
update: Table control presets is empty, but they are in the table controls
If I add a new preset in the browser, it does appear in the control presets window but not bin the database table control presets.

another issue: When I press clear in the log-window the following error appears:
2016-11-11 14:13:22.218776 web_js 3147 ERR TypeError: e[c] is undefined http://192.168.1.20/zm/tools/mootools/mootools-more.js 1
Regards
Thomas
tomrey
Posts: 2
Joined: Fri Nov 11, 2016 10:10 am

Re: ZM camera control under Jessie: Can't get it work

Post by tomrey »

update:
The problem is that Zoneminder does not use the data stored in mysql until I reboot the server.
A service restart doesn't help.
After changing in the source and hitting save
Nov 12 13:20:14 terra zmdc[5243]: WAR [Can't find process with command of 'zmtrack.pl -m 2']
Nov 12 13:20:14 terra zmdc[5243]: WAR [Can't find process with command of 'zma -m 2']

sometimes even after a reboot I find:
web_php[3316]: ERR [socket_sendto( /var/run/zm/zms-828951s.sock ) failed: No such file or directory]

So the problem seems not around the .pm script or the data entered in the config-windows but zoneminder not digesting from the web interface (I am working from a win7 laptop with firefox) as it should.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM camera control under Jessie: Can't get it work

Post by bbunge »

What camera?
Locked