Page 1 of 1

Problem with shared memory, .sock file, and authorization

Posted: Thu Jan 21, 2010 6:06 pm
by astera
hey all,

i'm having troubles with my fresh install of zoneminder 1.24.2 on a ubuntu 9.04 desktop machine; the camera(s) i'm using is(are) axis m1011, connected with a netgear switch.

so far, everything _seems_ to work exept for the fact that i don't get an image when accessing http://127.0.1.1/index.php?view=watch&mid=4 (the pop-up window i get when clicking on the camera name - so far, i only added this one monitor, but tried various settings) - instead, the video frame stays black (as in black polished chrome, that came over the frame like liquid night)...

however, the video (well, mjpeg that is) displays just fine when i point my browser (firefox) directly to the camera's ip.

what i got out of the various logfiles is the following:

root@SECTION6:/home/astera/ZoneMinder-1.24.2# cat /tmp/zm_debug.log.23106
01/21/10 18:50:14.082600 zmc_m4[-1].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.23106]
01/21/10 18:50:14.082747 zmc_m4[-1].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
01/21/10 18:50:14.082873 zmc_m4[-1].DB2-zm_remote_camera_http.cpp/69 [Request: GET /axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=5 HTTP/1.1
User-Agent: ZoneMinder/1.24.2
Host: 10.254.50.201
Connection: Keep-Alive

]
01/21/10 18:50:14.084810 zmc_m4[-1].DB1-zm_monitor.cpp/338 [monitor purpose=1]
01/21/10 18:50:14.084837 zmc_m4[-1].DB1-zm_monitor.cpp/345 [mem.size=36865524]
01/21/10 18:50:14.127365 zmc_m4[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
01/21/10 18:50:14.131564 zmc_m4[-1].DB1-zm_monitor.cpp/458 [Monitor CAM-201 has function 2]
01/21/10 18:50:14.131576 zmc_m4[-1].DB1-zm_monitor.cpp/459 [Monitor CAM-201 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
01/21/10 18:50:14.131581 zmc_m4[-1].DB1-zm_monitor.cpp/460 [Monitor CAM-201 IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
01/21/10 18:50:14.131711 zmc_m4[-1].DB1-zm_zone.cpp/889 [Got 1 zones for monitor CAM-201]
01/21/10 18:50:14.131724 zmc_m4[-1].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 639,0 639,479 0,479]
01/21/10 18:50:14.131729 zmc_m4[-1].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 639,0 639,479 0,479']
01/21/10 18:50:14.131734 zmc_m4[-1].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
01/21/10 18:50:14.131739 zmc_m4[-1].DB3-zm_zone.cpp/796 [Got coordinate 639,0 from polygon string]
01/21/10 18:50:14.131744 zmc_m4[-1].DB3-zm_zone.cpp/796 [Got coordinate 639,479 from polygon string]
01/21/10 18:50:14.131748 zmc_m4[-1].DB3-zm_zone.cpp/796 [Got coordinate 0,479 from polygon string]
01/21/10 18:50:14.131754 zmc_m4[-1].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
01/21/10 18:50:14.131759 zmc_m4[-1].DB1-zm_zone.cpp/50 [Initialised zone 4/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:9216, MxAP:230400, FB:3x3, MnFP:9216, MxFP:230400, MnBS:6144, MxBS:0, MnB:1, MxB:0, OF: 0]
01/21/10 18:50:14.135972 zmc_m4[-1].DB1-zm_monitor.cpp/2459 [Loaded monitor 4(CAM-201), 1 zones]
01/21/10 18:50:14.135988 zmc_m4[-1].INF-zmc.cpp/188 [Starting Capture]
01/21/10 18:50:14.139154 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/105 [Connected to host, socket = 3]
01/21/10 18:50:14.139209 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/126 [Request sent]
01/21/10 18:50:14.142497 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/171 [Expecting 546 bytes]
01/21/10 18:50:14.142533 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/196 [Read 546 bytes]
01/21/10 18:50:14.142570 zmc_m4[-1].ERR-zm_remote_camera_http.cpp/683 [Invalid response status 401: Unauthorized]
01/21/10 18:50:14.142666 zmc_m4[-1].ERR-zm_remote_camera_http.cpp/1043 [Unable to get response]
01/21/10 18:50:14.142725 zmc_m4[-1].ERR-zmc.cpp/260 [Failed to capture image from monitor 4 (0/1)]


root@SECTION6:/home/astera/ZoneMinder-1.24.2# tail -12 /tmp/zmdc.log
01/21/2010 18:20:14.003277 zmdc[5699].INF [Starting pending process, zmc -m 4]
01/21/2010 18:20:14.004740 zmdc[5699].INF ['zmc -m 4' starting at 10/01/21 18:20:14, pid = 22086]
01/21/2010 18:20:14.121128 zmdc[5699].ERR ['zmc -m 4' exited abnormally, exit status 255]
01/21/2010 18:30:14.092437 zmdc[5699].INF [Starting pending process, zmc -m 4]
01/21/2010 18:30:14.093831 zmdc[5699].INF ['zmc -m 4' starting at 10/01/21 18:30:14, pid = 22410]
01/21/2010 18:30:14.229454 zmdc[5699].ERR ['zmc -m 4' exited abnormally, exit status 255]
01/21/2010 18:40:14.077617 zmdc[5699].INF [Starting pending process, zmc -m 4]
01/21/2010 18:40:14.079053 zmdc[5699].INF ['zmc -m 4' starting at 10/01/21 18:40:14, pid = 22760]
01/21/2010 18:40:14.201188 zmdc[5699].ERR ['zmc -m 4' exited abnormally, exit status 255]
01/21/2010 18:50:14.066106 zmdc[5699].INF [Starting pending process, zmc -m 4]
01/21/2010 18:50:14.071132 zmdc[5699].INF ['zmc -m 4' starting at 10/01/21 18:50:14, pid = 23106]
01/21/2010 18:50:14.162805 zmdc[5699].ERR ['zmc -m 4' exited abnormally, exit status 255]



root@SECTION6:/home/astera/ZoneMinder-1.24.2# tail -5 /tmp/zmwatch.log
01/21/2010 18:54:31.600100 zmwatch[5728].ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
01/21/2010 18:54:41.600939 zmwatch[5728].ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
01/21/2010 18:54:51.601773 zmwatch[5728].ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
01/21/2010 18:55:01.602631 zmwatch[5728].ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
01/21/2010 18:55:11.603511 zmwatch[5728].ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]



root@SECTION6:/home/astera/ZoneMinder-1.24.2# tail -4 /var/log/apache2/error.log
[Thu Jan 21 18:58:32 2010] [error] [client 127.0.1.1] socket_sendto( /tmp/zms-447858s.sock ) failed: No such file or directory, referer: http://127.0.1.1/index.php?view=watch&mid=4
[Thu Jan 21 18:58:32 2010] [error] [client 127.0.1.1] array (\n 0 => \n array (\n 'file' => '/var/www/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-447858s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://127.0.1.1/index.php?view=watch&mid=4
[Thu Jan 21 18:58:40 2010] [error] [client 127.0.1.1] socket_sendto( /tmp/zms-447858s.sock ) failed: No such file or directory, referer: http://127.0.1.1/index.php?view=watch&mid=4
[Thu Jan 21 18:58:40 2010] [error] [client 127.0.1.1] array (\n 0 => \n array (\n 'file' => '/var/www/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-447858s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://127.0.1.1/index.php?view=watch&mid=4


root@SECTION6:/home/astera/ZoneMinder-1.24.2# tail /var/log/messages
Jan 21 18:50:14 SECTION6 zmdc[5699]: INF ['zmc -m 4' starting at 10/01/21 18:50:14, pid = 23106]
Jan 21 18:50:14 SECTION6 zmc_m4[23106]: INF [Debug Level = 0, Debug Log = <none>]
Jan 21 18:50:14 SECTION6 zmc_m4[23106]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.23106]
Jan 21 18:50:14 SECTION6 zmc_m4[23106]: INF [Starting Capture]
Jan 21 19:00:14 SECTION6 zmdc[5699]: INF [Starting pending process, zmc -m 4]
Jan 21 19:00:14 SECTION6 zmdc[5699]: INF ['zmc -m 4' starting at 10/01/21 19:00:14, pid = 23690]
Jan 21 19:00:14 SECTION6 zmdc[23690]: INF ['zmc -m 4' started at 10/01/21 19:00:14]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: INF [Debug Level = 0, Debug Log = <none>]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.23690]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: INF [Starting Capture]


root@SECTION6:/home/astera/ZoneMinder-1.24.2# tail -12 /var/log/syslog
Jan 21 19:00:11 SECTION6 zmwatch[5728]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]
Jan 21 19:00:14 SECTION6 zmdc[5699]: INF [Starting pending process, zmc -m 4]
Jan 21 19:00:14 SECTION6 zmdc[5699]: INF ['zmc -m 4' starting at 10/01/21 19:00:14, pid = 23690]
Jan 21 19:00:14 SECTION6 zmdc[23690]: INF ['zmc -m 4' started at 10/01/21 19:00:14]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: INF [Debug Level = 0, Debug Log = <none>]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.23690]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: INF [Starting Capture]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: ERR [Invalid response status 401: Unauthorized]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: ERR [Unable to get response]
Jan 21 19:00:14 SECTION6 zmc_m4[23690]: ERR [Failed to capture image from monitor 4 (0/1)]
Jan 21 19:00:14 SECTION6 zmdc[5699]: ERR ['zmc -m 4' exited abnormally, exit status 255]
Jan 21 19:00:21 SECTION6 zmwatch[5728]: ERR [Can't get shared memory id '7a6d0004', 4: No such file or directory]


This might be trivial - but I just don't seem to find an existing post that gets me back on the right track.
Help, anyone? o_O

Thanks so much in advance,
/astera

Posted: Thu Jan 21, 2010 9:21 pm
by cordel
01/21/10 18:50:14.135988 zmc_m4[-1].INF-zmc.cpp/188 [Starting Capture]
01/21/10 18:50:14.139154 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/105 [Connected to host, socket = 3]
01/21/10 18:50:14.139209 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/126 [Request sent]
01/21/10 18:50:14.142497 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/171 [Expecting 546 bytes]
01/21/10 18:50:14.142533 zmc_m4[-1].DB3-zm_remote_camera_http.cpp/196 [Read 546 bytes]
01/21/10 18:50:14.142570 zmc_m4[-1].ERR-zm_remote_camera_http.cpp/683 [Invalid response status 401: Unauthorized]
01/21/10 18:50:14.142666 zmc_m4[-1].ERR-zm_remote_camera_http.cpp/1043 [Unable to get response]
01/21/10 18:50:14.142725 zmc_m4[-1].ERR-zmc.cpp/260 [Failed to capture image from monitor 4 (0/1)]
You need to either configure the correct authorization for your camera in ZM or disable Password protection on your camera. All the other errors are collateral from ZM being denied access to your IP cam.