Page 1 of 1

zoneminder 1.22.3 no video shared memory error

Posted: Sun Jun 10, 2007 11:32 pm
by rrk
i seem to be missing something for shared memory allocation
the log error in zmwatch.log is
[Can't get shared memory id '7a6d2003', 3: No such file or directory]
so zmdc is restarting
['zmc -d /dev/video' starting at 07/06/10 18:14:02, pid = 3711]
should there be a device number like /dev/video0 instead of just /dev/video?
when i look at shmall and shmmax that is a little strange also
cat /proc/sys/kernel/shmall 2097152
cat /proc/sys/kernel/shmmax 33554432
i thought shmall was the max that could be allocated in 1 chunk
why is it smaller than shmmax and why is it so small?

any help would be appreciated
rob

Posted: Mon Jun 11, 2007 4:36 am
by rrk
no video -- i looked at php.ini -- enabled mysql is there something else i should be looking for in php.ini ?

got rid of the shared memory errors all the logs look good
zmpkg zmaudit zmupdate /var/logs/ messages and syslog

tail /var/log/messages
Jun 10 23:16:18 siduxbox zmdc[7452]: INF ['zmupdate.pl -c' started at 07/06/10 23:16:18]
Jun 10 23:16:19 siduxbox Update agent starting at 07/06/10 23:16:19
Jun 10 23:19:57 siduxbox zmc_dvideo0[7442]: INF [New1: 1000 - Capturing at 4.52 fps]
Jun 10 23:19:57 siduxbox zmc_dvideo0[7442]: INF [New2: 1000 - Capturing at 4.55 fps]
Jun 10 23:23:37 siduxbox zmc_dvideo0[7442]: INF [New1: 2000 - Capturing at 4.55 fps]
Jun 10 23:23:37 siduxbox zmc_dvideo0[7442]: INF [New2: 2000 - Capturing at 4.55 fps]
Jun 10 23:27:16 siduxbox zmc_dvideo0[7442]: INF [New1: 3000 - Capturing at 4.57 fps]

where should i be looking ?





.

Posted: Mon Jun 11, 2007 5:24 am
by cordel
As zmc is capturing images, I'd start looking into apache to see why you can't get a stream.
Check the apache error log, and see what path for zms is being passed to the client.

Posted: Mon Jun 11, 2007 5:41 am
by rob
got it thanks cordel -- it was using nph-zms instead of zms -- what is the
difference between zms and nph-zms ?
switched to zms and everything appears to work
rrk

Posted: Mon Jun 11, 2007 6:23 am
by cordel
The binaries are exactly the same except for the file name. Apache interprets the nph as No Parse Headers so it does not parse the headers.