Zoneminder on Debian Lenny: No luck with installation yet

Forum for questions and support relating to the 1.24.x releases only.
Locked
lukelukeluke
Posts: 31
Joined: Tue May 01, 2007 4:19 pm

Zoneminder on Debian Lenny: No luck with installation yet

Post by lukelukeluke »

Hi there,
I'm trying to get Zoenminder (latest stable) working on Debian Lenny (latest stable) from source. I already tried unstable package source and then get zm from repository with no luck. ZM compiles and isntalls without error.
I have 3 webcam sources, for example /dev/video2 works very well with "webcam" util from v4l package.
When configuring /dev/video2 in Zoneminder, I dont get an image: In monitor mode, /dev/video2 shows as green, but there is no image (just a broken image symbol, but also nothing when I paste the image link in the browser...)
I already increased shared memory limit (add kernel.shmmax = 167772160 to /etc/sysctl.conf) because of shared memory error message.
Some of tail -f /tmp/zm* /var/log/messages is attached below.
Any ideas? Thanks!!

Code: Select all

==> /tmp/zmdc.log <==
11/27/10 11:16:30.317240 zmdc[2685].WAR [Can't find process with command of 'zma -m 3']
11/27/10 11:18:33.447449 zmdc[2685].WAR [Can't find process with command of 'zmc -d /dev/video2']
11/27/10 11:18:33.670598 zmdc[2685].WAR [Can't find process with command of 'zma -m 3']
11/27/10 11:18:37.100568 zmdc[2685].WAR [Can't find process with command of 'zmc -d /dev/video2']
11/27/10 11:18:37.344442 zmdc[2685].INF [Can't find child with pid of '3172']
11/27/10 11:18:37.345133 zmdc[2685].INF ['zmc -d /dev/video2' starting at 10/11/27 11:18:37, pid = 3172]
11/27/10 11:18:37.567411 zmdc[2685].WAR [Can't find process with command of 'zma -m 3']
11/27/10 11:18:48.502352 zmdc[2685].INF ['zmc -d /dev/video2' already running at 10/11/27 11:18:37, pid = 3172]
11/27/10 11:18:48.747348 zmdc[2685].INF [Can't find child with pid of '3185']
11/27/10 11:18:48.748042 zmdc[2685].INF ['zma -m 3' starting at 10/11/27 11:18:48, pid = 3185]

==> /var/log/messages <==
Nov 27 11:18:48 debian zmdc[2685]: INF [Can't find child with pid of '3185']
Nov 27 11:18:48 debian zmdc[2685]: INF ['zma -m 3' starting at 10/11/27 11:18:48, pid = 3185]
Nov 27 11:18:51 debian zms[3194]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:18:51 debian zms[3195]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:19:14 debian zms[3201]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:19:14 debian zms[3202]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:19:31 debian zms[3204]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:19:31 debian zms[3205]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:19:40 debian zms[3206]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:19:40 debian zms[3207]: INF [Debug Level = 0, Debug Log = <none>]

==> /tmp/zmdc.log <==
11/27/10 11:20:03.490176 zmdc[2685].INF ['zmc -d /dev/video2' starting at 10/11/27 11:20:03, pid = 3220]
11/27/10 11:20:03.725701 zmdc[2685].INF ['zma -m 3' stopping at 10/11/27 11:20:03]
11/27/10 11:20:03.984672 zmdc[2685].INF ['zma -m 3' starting at 10/11/27 11:20:03, pid = 3227]
[b]11/27/10 11:20:03.996286 zmdc[2685].ERR ['zmc -d /dev/video2' exited abnormally, exit status 6][/b]
11/27/10 11:20:03.996849 zmdc[2685].INF [Starting pending process, zmc -d /dev/video2]
11/27/10 11:20:04.007550 zmdc[2685].INF ['zmc -d /dev/video2' starting at 10/11/27 11:20:04, pid = 3229]

==> /var/log/messages <==
Nov 27 11:20:03 debian zmdc[3220]: INF ['zmc -d /dev/video2' started at 10/11/27 11:20:03]
Nov 27 11:20:03 debian zmc_dvideo2[3220]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:20:03 debian zmdc[2685]: INF ['zmc -d /dev/video2' starting at 10/11/27 11:20:03, pid = 3220]
Nov 27 11:20:03 debian zmc_dvideo2[3220]: INF [Starting Capture]
Nov 27 11:20:03 debian zmdc[2685]: INF ['zma -m 3' stopping at 10/11/27 11:20:03]
Nov 27 11:20:03 debian zmdc[3227]: INF ['zma -m 3' started at 10/11/27 11:20:03]
Nov 27 11:20:03 debian zmc_dvideo2[3220]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Nov 27 11:20:03 debian zmc_dvideo2[3220]: INF [Backtrace complete, please execute the following command for more information]
Nov 27 11:20:03 debian zmc_dvideo2[3220]: INF [addr2line -e /usr/local/bin/zmc(__gxx_personality_v0+0x32d) 0xb77b9424 0xb77b9424 0xb7311640 0xb7313018 0x80552f8 0x8066d7f 0x8067675 0x804c1a6 0xb72fc455 0x804bd21]
Nov 27 11:20:03 debian zma_m3[3227]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:20:03 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:03 debian zmdc[2685]: INF ['zma -m 3' starting at 10/11/27 11:20:03, pid = 3227]
Nov 27 11:20:03 debian zmdc[2685]: INF [Starting pending process, zmc -d /dev/video2]
Nov 27 11:20:04 debian zmdc[3229]: INF ['zmc -d /dev/video2' started at 10/11/27 11:20:03]
Nov 27 11:20:04 debian zmdc[2685]: INF ['zmc -d /dev/video2' starting at 10/11/27 11:20:04, pid = 3229]
Nov 27 11:20:04 debian zmc_dvideo2[3229]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:20:04 debian zmc_dvideo2[3229]: INF [Starting Capture]

==> /tmp/zmdc.log <==
11/27/10 11:20:04.532896 zmdc[2685].ERR ['zmc -d /dev/video2' exited abnormally, exit status 6]

==> /var/log/messages <==
Nov 27 11:20:04 debian zmc_dvideo2[3229]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Nov 27 11:20:04 debian zmc_dvideo2[3229]: INF [Backtrace complete, please execute the following command for more information]
Nov 27 11:20:04 debian zmc_dvideo2[3229]: INF [addr2line -e /usr/local/bin/zmc(__gxx_personality_v0+0x32d) 0xb76ed424 0xb76ed424 0xb7245640 0xb7247018 0x80552f8 0x8066d7f 0x8067675 0x804c1a6 0xb7230455 0x804bd21]
Nov 27 11:20:04 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:05 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:06 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:07 debian zma_m3[3227]: WAR [Waiting for capture daemon]

==> /tmp/zmdc.log <==
11/27/10 11:20:09.065944 zmdc[2685].INF [Starting pending process, zmc -d /dev/video2]
11/27/10 11:20:09.074425 zmdc[2685].INF ['zmc -d /dev/video2' starting at 10/11/27 11:20:09, pid = 3243]

==> /var/log/messages <==
Nov 27 11:20:08 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:09 debian zmdc[2685]: INF [Starting pending process, zmc -d /dev/video2]
Nov 27 11:20:09 debian zmdc[3243]: INF ['zmc -d /dev/video2' started at 10/11/27 11:20:09]
Nov 27 11:20:09 debian zmdc[2685]: INF ['zmc -d /dev/video2' starting at 10/11/27 11:20:09, pid = 3243]
Nov 27 11:20:09 debian zmc_dvideo2[3243]: INF [Debug Level = 0, Debug Log = <none>]
Nov 27 11:20:09 debian zmc_dvideo2[3243]: INF [Starting Capture]

==> /tmp/zmdc.log <==
11/27/10 11:20:09.539834 zmdc[2685].ERR ['zmc -d /dev/video2' exited abnormally, exit status 6]

==> /var/log/messages <==
Nov 27 11:20:09 debian zmc_dvideo2[3243]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Nov 27 11:20:09 debian zmc_dvideo2[3243]: INF [Backtrace complete, please execute the following command for more information]
Nov 27 11:20:09 debian zmc_dvideo2[3243]: INF [addr2line -e /usr/local/bin/zmc(__gxx_personality_v0+0x32d) 0xb7774424 0xb7774424 0xb72cc640 0xb72ce018 0x80552f8 0x8066d7f 0x8067675 0x804c1a6 0xb72b7455 0x804bd21]
Nov 27 11:20:09 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:10 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:11 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:12 debian zma_m3[3227]: WAR [Waiting for capture daemon]
Nov 27 11:20:13 debian zma_m3[3227]: WAR [Waiting for capture daemon]
I also found that there's some errors in Apache's error log:

Code: Select all

[Sat Nov 27 12:36:41 2010] [error] [client 11.22.33.44] socket_sendto( /tmp/zms-828187s.sock ) failed: No such file or directory, referer: http://11.22.33.44/zoneminder/?view=watch&mid=4
[Sat Nov 27 12:36:41 2010] [error] [client 11.22.33.44] array (\n  0 => \n  array (\n    'file' => '/var/www/zoneminder/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-828187s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/zoneminder/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/zoneminder/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://11.22.33.44/zoneminder/?view=watch&mid=4
^C
Turning on extra debug shows some lines like these in /tmp/zm_debug:

Code: Select all

11/27/10 13:24:53.794598 zmc_dvideo2[11955].DB3-zm_local_camera.cpp/349 [Opening video device /dev/video2]
11/27/10 13:24:54.210501 zmc_dvideo2[11955].DB2-zm_local_camera.cpp/355 [V4L2 support enabled, using V4L2 api]
11/27/10 13:24:54.210545 zmc_dvideo2[11955].DB3-zm_local_camera.cpp/360 [Checking video device capabilities]
11/27/10 13:24:54.210596 zmc_dvideo2[11955].FAT-zm_local_camera.cpp/362 [Failed to query video device: Invalid argument]
11/27/10 13:24:54.210759 zmc_dvideo2[11955].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
11/27/10 13:24:54.210805 zmc_dvideo2[11955].ERR-zm_signal.cpp/84 [Signal address is (nil), from 0xb76ee424]
11/27/10 13:24:54.211076 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: [0xb76ee424]]
11/27/10 13:24:54.211108 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: [0xb76ee424]]
11/27/10 13:24:54.211133 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /lib/i686/cmov/libc.so.6(gsignal+0x50) [0xb70fd640]]
11/27/10 13:24:54.211157 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /lib/i686/cmov/libc.so.6(abort+0x188) [0xb70ff018]]
11/27/10 13:24:54.211182 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8055318]]
11/27/10 13:24:54.211209 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8066d9f]]
11/27/10 13:24:54.211233 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8067695]]
11/27/10 13:24:54.211256 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804c1c6]]
11/27/10 13:24:54.211279 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb70e8455]]
11/27/10 13:24:54.212164 zmc_dvideo2[11955].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x325) [0x804bd41]]
11/27/10 13:24:54.212198 zmc_dvideo2[11955].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
11/27/10 13:24:54.212222 zmc_dvideo2[11955].INF-zm_signal.cpp/126 [addr2line -e /usr/local/bin/zmc(__gxx_personality_v0+0x325) 0xb76ee424 0xb76ee424 0xb70fd640 0xb70ff018 0x8055318 0x8066d9f 0x8067695 0x804c1c6 0xb70e8455 0x804bd41]



11/27/10 13:30:17.615746 zmc_dvideo0[12098].DB3-zm_local_camera.cpp/349 [Opening video device /dev/video0]
11/27/10 13:30:17.615795 zmc_dvideo0[12098].DB2-zm_local_camera.cpp/355 [V4L2 support enabled, using V4L2 api]
11/27/10 13:30:17.615809 zmc_dvideo0[12098].DB3-zm_local_camera.cpp/360 [Checking video device capabilities]
11/27/10 13:30:17.615829 zmc_dvideo0[12098].DB3-zm_local_camera.cpp/370 [Setting up video format]
11/27/10 13:30:17.615865 zmc_dvideo0[12098].FAT-zm_local_camera.cpp/386 [Failed to set video format: Invalid argument]
11/27/10 13:30:17.616052 zmc_dvideo0[12098].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
11/27/10 13:30:17.616208 zmc_dvideo0[12098].ERR-zm_signal.cpp/84 [Signal address is (nil), from 0xb7771424]
Locked