Page 1 of 1

cant take usb webcam work

Posted: Thu Oct 29, 2009 7:13 pm
by slacklnx
hi there,
i have zm-1.24.2 installed in slackware, whit mjpg-streamer cam works great, but i can add to zm. the log show me these:

/tmp/zmwatch.log:

Code: Select all

10/29/09 19:09:33.589363 zmwatch[4398].ERR [Can't get shared memory id '7a6d000d', 13: No such file or directory]
10/29/09 19:09:43.593241 zmwatch[4398].ERR [Can't get shared memory id '7a6d000d', 13: No such file or directory]
10/29/09 19:09:53.597003 zmwatch[4398].ERR [Can't get shared memory id '7a6d000d', 13: No such file or directory]
10/29/09 19:10:03.600817 zmwatch[4398].ERR [Can't get shared memory id '7a6d000d', 13: No such file or directory]
10/29/09 19:10:13.604601 zmwatch[4398].ERR [Can't get shared memory id '7a6d000d', 13: No such file or directory]
/var/logmessagens:

Code: Select all

Oct 29 19:07:26 ptnux zmdc[4359]: INF [Starting pending process, zmc -m 12]
Oct 29 19:07:26 ptnux zmdc[4359]: INF ['zmc -m 12' starting at 09/10/29 19:07:26, pid = 4623]
Oct 29 19:07:26 ptnux zmdc[4623]: INF ['zmc -m 12' started at 09/10/29 19:07:26]
Oct 29 19:07:26 ptnux zmc_m12[4623]: INF [Debug Level = 0, Debug Log = <none>]
Oct 29 19:09:39 ptnux zmdc[4359]: INF [Starting pending process, zmc -m 13]
Oct 29 19:09:39 ptnux zmdc[4359]: INF ['zmc -m 13' starting at 09/10/29 19:09:39, pid = 4633]
Oct 29 19:09:39 ptnux zmdc[4633]: INF ['zmc -m 13' started at 09/10/29 19:09:39]
Oct 29 19:09:39 ptnux zmc_m13[4633]: INF [Debug Level = 0, Debug Log = <none>]
Oct 29 19:09:39 ptnux zmc_m13[4633]: INF [Starting Capture]
Oct 29 19:09:39 ptnux MJPG-streamer [4449]: serving client: 192.168.1.64
and ipcs -m only give this:

Code: Select all

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x00000000 0          root      600        33554432   11         dest
Any help very much appreciated.

Posted: Thu Oct 29, 2009 8:00 pm
by kingofkya
see documentation on shared memory

Posted: Thu Oct 29, 2009 8:23 pm
by slacklnx
ok everything orks great. but apache log give me errors must more complicates

Code: Select all

[Thu Oct 29 20:44:24 2009] [error] [client 85.139.11.76] socket_sendto( /tmp/zms-718621s.sock ) failed: No such file or directory, referer: http://cctv.ptnux.com/?view=watch&mid=14
[Thu Oct 29 20:44:24 2009] [error] [client 85.139.11.76] array (\n  0 => \n  array (\n    'file' => '/var/www/cctv/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-718621s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/cctv/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/cctv/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://cctv.ptnux.com/?view=watch&mid=14
[Thu Oct 29 20:44:36 2009] [error] [client 85.139.11.76] socket_sendto( /tmp/zms-718621s.sock ) failed: No such file or directory, referer: http://cctv.ptnux.com/?view=watch&mid=14
[Thu Oct 29 20:44:36 2009] [error] [client 85.139.11.76] array (\n  0 => \n  array (\n    'file' => '/var/www/cctv/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-718621s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/cctv/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/cctv/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://cctv.ptnux.com/?view=watch&mid=14
it seem that socket isn't created...

Posted: Thu Oct 29, 2009 8:51 pm
by slacklnx
my /tmp dir looks like this:

Code: Select all

srwxrwxrwx 1 clamav   clamav     0 2009-10-29 17:53 clamd.socket=
srw------- 1 slacklnx users      0 2009-10-29 17:52 rpc.socket=
-rw-r--r-- 1 apache   apache     0 2009-10-29 17:54 zmaudit.log
-rw-r--r-- 1 apache   apache 39282 2009-10-29 20:25 zmdc.log
srwxr-xr-x 1 apache   apache     0 2009-10-29 19:31 zmdc.sock=
-rw-r--r-- 1 apache   apache   532 2009-10-29 19:31 zmfilter.log
-rw-r--r-- 1 apache   apache   539 2009-10-29 19:31 zmpkg.log
-rw-r--r-- 1 apache   apache   135 2009-10-29 17:54 zmupdate.log
-rw-r--r-- 1 apache   apache 47804 2009-10-29 19:31 zmwatch.log
-rw-r--r-- 1 apache   apache    65 2009-10-29 19:31 zmx10.log
srwxr-xr-x 1 apache   apache     0 2009-10-29 19:31 zmx10.sock=
thanks for any help

Posted: Thu Oct 29, 2009 10:38 pm
by kingofkya
because of this http://cctv.ptnux.com/?view=watch&mid=14
should be /index.php?view=watch

So make sure the cgi web directorys are set correctly in zm



Also congrats on being a new user posting appropriate logs

Posted: Fri Oct 30, 2009 10:56 am
by slacklnx
cgi directory are correct, i think the problem is zms , the /tmp/zms-718621s.sock is not created.

other solution??

thanks

Posted: Fri Oct 30, 2009 5:42 pm
by kingofkya
If recall correctly there is something to do with php sockets.
a dependancy introduced in 1.23.3

and i really don't remember how to enable them

Posted: Fri Oct 30, 2009 8:21 pm
by slacklnx
the problem continues :S anyone ???