Page 1 of 1
zmwatch shared memory not valid
Posted: Mon Feb 27, 2006 3:47 pm
by bsonnenf
Hi.
I've got a Haupage BT878 ImpactVCB card and can get video to stream using xawtv.
When I add a monitor to ZM, it adds the monitor, but video doesn't come in.
I've looked at the logs. The zmwatch.log file contains a message
02/27/06 09:33:01.024119 zmwatch[16637].ERR [Can't get shared memory id '7a6d2006', 6: No such file or directory]
02/27/06 09:33:01.024499 zmwatch[16637].INF [Restarting capture daemon for Vid1_2, shared memory not valid]
02/27/06 09:33:01.261404 zmwatch[16637].INF ['zmc -d /dev/video1' stopping at 06/02/27 09:33:01]
Any idea what I need to do to get this monitor to work?
Thanks,
Bruce
Posted: Mon Feb 27, 2006 5:35 pm
by zoneminder
You will almost certainly find other error messages in /var/log/messages so if you haven't checked already I would look there.
Some /var/log/messages
Posted: Mon Feb 27, 2006 8:45 pm
by bsonnenf
Here is some information from messages file:
Feb 27 12:59:54 linux zmc_dvideo1[21983]: INF [Vid1_3: 50000 - Capturing at 30.30 fps]
Feb 27 12:59:59 linux zmpkg[22450]: INF [Command: start] Feb 27 12:59:59 linux su: FAILED SU (to apache) daemon on none
Feb 27 13:00:02 linux su: FAILED SU (to apache) daemon on none Feb 27 13:00:05 linux kernel: ACPI-0212: *** Warning: Device is not power ma
nageable Feb 27 13:00:05 linux kernel: ACPI-0629: *** Warning: Unable to turn cooling
device [dffe3c40] 'on' Feb 27 13:00:05 linux zmpkg[22450]: ERR [Unable to find valid 'su' syntax]
Feb 27 13:00:28 linux zmc_dvideo1[21983]: INF [Vid1_3: 51000 - Capturing at 29.41
It appears that the "su" command for apache is failing as well?
Please help.
Posted: Tue Feb 28, 2006 6:09 pm
by zoneminder
Can you tell us what distro you are using? It is likely that you will have to edit /etc/passwd and give the apache user a login shell I think. This should be addressed in 1.22.1 so you don't have to do this.
Distribution 1.22.0
Posted: Tue Feb 28, 2006 6:16 pm
by bsonnenf
Distribution is 1.22.0 on SUSE Linux 10.0 Kernel 2.6.13.
I've created an "apache" account manually (useradd) and placed it in an apache group with a login directory. I also set the suid for the zmpkg.pl script and changed the owner to root in order to get the "su" command prefix to work.
What else should I do? I really want to get this to work.
Thanks ahead of time.
Posted: Fri Mar 03, 2006 4:31 pm
by zoneminder
Are you saying that the su command works now? If so then is something else failing? If not then you need to make sure your apache user has a login shell specified in /etc/passwd.
/tmp/zmdc.sock
Posted: Fri Mar 03, 2006 5:26 pm
by bsonnenf
Phil,
It turns out that the permission on /tmp/zmdc.sock was not writable by "others" and "group". When I set these, things seem to work.
Question for you ... every time I reset the zmpkg.pl restart, I need to do a chmod on /tmp/zmdc.sock to allow write permission for others and group. How can I avoid this?
Thanks.
Posted: Tue Mar 07, 2006 11:21 pm
by zoneminder
I have to say that I don't know. It should be created by the script so the script should be able to delete itm which it will do on normal shutdown as well as on startup.