cant take usb webcam work

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
slacklnx
Posts: 5
Joined: Wed Oct 28, 2009 10:57 am
Location: Portugal

cant take usb webcam work

Post 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.
Administrador de Sistemas.
Programador php & MySQL.

All the troubles you have, will pass away very quickly.

www.PTnux.com
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

see documentation on shared memory
User avatar
slacklnx
Posts: 5
Joined: Wed Oct 28, 2009 10:57 am
Location: Portugal

Post 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...
Administrador de Sistemas.
Programador php & MySQL.

All the troubles you have, will pass away very quickly.

www.PTnux.com
User avatar
slacklnx
Posts: 5
Joined: Wed Oct 28, 2009 10:57 am
Location: Portugal

Post 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
Administrador de Sistemas.
Programador php & MySQL.

All the troubles you have, will pass away very quickly.

www.PTnux.com
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post 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
User avatar
slacklnx
Posts: 5
Joined: Wed Oct 28, 2009 10:57 am
Location: Portugal

Post by slacklnx »

cgi directory are correct, i think the problem is zms , the /tmp/zms-718621s.sock is not created.

other solution??

thanks
Administrador de Sistemas.
Programador php & MySQL.

All the troubles you have, will pass away very quickly.

www.PTnux.com
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post 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
User avatar
slacklnx
Posts: 5
Joined: Wed Oct 28, 2009 10:57 am
Location: Portugal

Post by slacklnx »

the problem continues :S anyone ???
Administrador de Sistemas.
Programador php & MySQL.

All the troubles you have, will pass away very quickly.

www.PTnux.com
Locked