Page 1 of 1

Problems getting capture daemon to run

Posted: Sun Feb 08, 2004 11:39 am
by norman
Hi,

Thanks to Philip and Fernado for your advice back in November with regard to the image brightness fluctuations. It was a hardware issue and once I had all four cameras connected, ZM 0.9.15 ran happily under SuSE8.2. Well, ran is a misnomer - it was struggling on a Pentium 450MZ with 192 MB of RAM and only 2GB of total disk spacae. I therefore built a new machine (Athlon XP2000, 512MB RAM, 80GB disk), installed SusE8.2 and tried to install the (then) current version of ZoneMinder, 1.17.1. It all appeared to configure, make and install OK but I could not get any images in the watch windows. I did a complete uninstall then re-installed 0.9.15 - same result. I've just downloaded 1.17.2 - same result. Putting the card (a GrandTec MultiCapture - four input on a BT878) back in the old PC and checking various logs appears to suggest that the capture daemon is not staying up on the new PC.

I can run xawtv and see all four channels OK in the new PC and when I run zmu -d 0 -q -v it also sees the card OK. Obviously I've done something silly when setting up SuSE8.2 on the new PC but I can't figure out what. I've attached various logs which may help - this is frustrating as it did work on the old PC and it really is a brilliant piece of software!

Regards,

Norman

Apache access.log

127.0.0.1 - - [07/Feb/2004:19:17:50 +0000] "GET /zm.php HTTP/1.1" 200 995
127.0.0.1 - - [07/Feb/2004:19:18:00 +0000] "POST /zm.php HTTP/1.1" 200 720
127.0.0.1 - - [07/Feb/2004:19:18:01 +0000] "GET /zm.php HTTP/1.1" 200 3688
127.0.0.1 - - [07/Feb/2004:19:18:01 +0000] "GET /favicon.ico HTTP/1.1" 200 318
127.0.0.1 - - [07/Feb/2004:19:18:12 +0000] "GET /zm.php?view=state HTTP/1.1" 200 2252
127.0.0.1 - - [07/Feb/2004:19:18:14 +0000] "POST /zm.php HTTP/1.1" 200 1499
127.0.0.1 - - [07/Feb/2004:19:18:19 +0000] "GET /zm.php?view=none&action=state&run_state=start HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:18:19 +0000] "GET /zm.php HTTP/1.1" 200 3688
127.0.0.1 - - [07/Feb/2004:19:18:19 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:18:22 +0000] "GET /zm.php?view=monitor HTTP/1.1" 200 4656
127.0.0.1 - - [07/Feb/2004:19:18:39 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:18:39 +0000] "POST /zm.php HTTP/1.1" 200 4599
127.0.0.1 - - [07/Feb/2004:19:18:57 +0000] "POST /zm.php HTTP/1.1" 200 4104
127.0.0.1 - - [07/Feb/2004:19:18:57 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:18:59 +0000] "POST /zm.php HTTP/1.1" 200 3975
127.0.0.1 - - [07/Feb/2004:19:19:03 +0000] "POST /zm.php HTTP/1.1" 200 4020
127.0.0.1 - - [07/Feb/2004:19:19:03 +0000] "GET /zm.php HTTP/1.1" 200 5851
127.0.0.1 - - [07/Feb/2004:19:19:03 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:19:09 +0000] "GET /zm.php?view=watch&mid=1 HTTP/1.1" 200 696
127.0.0.1 - - [07/Feb/2004:19:19:09 +0000] "GET /zm.php?view=watchfeed&mid=1&scale=1 HTTP/1.1" 200 1550
127.0.0.1 - - [07/Feb/2004:19:19:09 +0000] "GET /zm.php?view=watchstatus&mid=1 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:09 +0000] "GET /zm.php?view=watchevents&max_events=10&mid=1 HTTP/1.1" 200 3113
127.0.0.1 - - [07/Feb/2004:19:19:13 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:16 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:19 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:19 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:19:22 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:25 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:32 +0000] "GET /zm.php?view=settings&mid=1 HTTP/1.1" 200 1654
127.0.0.1 - - [07/Feb/2004:19:19:33 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:36 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:19:36 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:19:41 +0000] "GET /zm.php?view=options HTTP/1.1" 200 7635
127.0.0.1 - - [07/Feb/2004:19:19:57 +0000] "GET /zm.php?view=options&tab=video HTTP/1.1" 200 7530
127.0.0.1 - - [07/Feb/2004:19:19:58 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:20:09 +0000] "GET /zm.php?view=options&tab=network HTTP/1.1" 200 4609
127.0.0.1 - - [07/Feb/2004:19:20:13 +0000] "GET /zm.php?view=options&tab=web HTTP/1.1" 200 5199
127.0.0.1 - - [07/Feb/2004:19:20:16 +0000] "GET /zm.php?view=options&tab=tools HTTP/1.1" 200 7062
127.0.0.1 - - [07/Feb/2004:19:20:30 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:20:30 +0000] "GET /zm.php?view=options&tab=highband HTTP/1.1" 200 6504
127.0.0.1 - - [07/Feb/2004:19:20:33 +0000] "GET /zm.php?view=options&tab=users HTTP/1.1" 200 3978
127.0.0.1 - - [07/Feb/2004:19:20:35 +0000] "GET /zm.php?view=user&uid=-1 HTTP/1.1" 200 3438
127.0.0.1 - - [07/Feb/2004:19:20:51 +0000] "GET /cgi-bin/zms?monitor=1&idle=250&refresh=50&scale=1 HTTP/1.1" 200 4129
127.0.0.1 - - [07/Feb/2004:19:21:01 +0000] "POST /zm.php HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:21:01 +0000] "GET /zm.php?view=options&tab=users HTTP/1.1" 200 4677
127.0.0.1 - - [07/Feb/2004:19:21:01 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:21:12 +0000] "GET /zm.php?view=state HTTP/1.1" 200 2291
127.0.0.1 - - [07/Feb/2004:19:21:13 +0000] "POST /zm.php HTTP/1.1" 200 1498
127.0.0.1 - - [07/Feb/2004:19:21:24 +0000] "GET /zm.php?view=none&action=state&run_state=stop HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:21:25 +0000] "GET /zm.php HTTP/1.1" 200 5851
127.0.0.1 - - [07/Feb/2004:19:21:25 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:21:27 +0000] "GET /zm.php?view=logout HTTP/1.1" 200 827
127.0.0.1 - - [07/Feb/2004:19:21:29 +0000] "POST /zm.php HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:21:29 +0000] "GET /zm.php HTTP/1.1" 200 995
127.0.0.1 - - [07/Feb/2004:19:21:29 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:40:27 +0000] "GET /zm.php HTTP/1.1" 200 995
127.0.0.1 - - [07/Feb/2004:19:40:27 +0000] "GET /zm_styles.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Feb/2004:19:40:36 +0000] "POST /zm.php HTTP/1.1" 200 720
127.0.0.1 - - [07/Feb/2004:19:40:37 +0000] "GET /zm.php HTTP/1.1" 200 5853
127.0.0.1 - - [07/Feb/2004:19:40:41 +0000] "GET /zm.php?view=state HTTP/1.1" 200 2252
127.0.0.1 - - [07/Feb/2004:19:40:45 +0000] "POST /zm.php HTTP/1.1" 200 1499
127.0.0.1 - - [07/Feb/2004:19:40:50 +0000] "GET /zm.php?view=none&action=state&run_state=start HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:40:50 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:40:50 +0000] "GET /zm.php HTTP/1.1" 200 5853
127.0.0.1 - - [07/Feb/2004:19:41:00 +0000] "GET /zm.php?view=watch&mid=1 HTTP/1.1" 200 696
127.0.0.1 - - [07/Feb/2004:19:41:00 +0000] "GET /zm.php?view=watchfeed&mid=1&scale=1 HTTP/1.1" 200 1550
127.0.0.1 - - [07/Feb/2004:19:41:00 +0000] "GET /zm.php?view=watchevents&max_events=10&mid=1 HTTP/1.1" 200 3113
127.0.0.1 - - [07/Feb/2004:19:41:00 +0000] "GET /zm.php?view=watchstatus&mid=1 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:41:03 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:41:07 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:41:30 +0000] "GET /zm.php?view=watchevents&mid=1&max_events=10 HTTP/1.1" 200 3113
127.0.0.1 - - [07/Feb/2004:19:41:32 +0000] "GET /zm.php?view=watchfeed&mid=1&scale=1 HTTP/1.1" 200 1550
127.0.0.1 - - [07/Feb/2004:19:42:02 +0000] "GET /zm.php?view=watch&mid=1 HTTP/1.1" 200 696
127.0.0.1 - - [07/Feb/2004:19:42:02 +0000] "GET /zm.php?view=watchfeed&mid=1&scale=1 HTTP/1.1" 200 1550
127.0.0.1 - - [07/Feb/2004:19:42:02 +0000] "GET /zm.php?view=watchevents&max_events=10&mid=1 HTTP/1.1" 200 3113
127.0.0.1 - - [07/Feb/2004:19:42:03 +0000] "GET /zm.php?view=watchstatus&mid=1 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:42:06 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:42:09 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:42:13 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:42:16 +0000] "GET /zm.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 662
127.0.0.1 - - [07/Feb/2004:19:42:21 +0000] "GET /zm.php?view=state HTTP/1.1" 200 2291
127.0.0.1 - - [07/Feb/2004:19:42:24 +0000] "POST /zm.php HTTP/1.1" 200 1498
127.0.0.1 - - [07/Feb/2004:19:42:35 +0000] "GET /zm.php?view=none&action=state&run_state=stop HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:42:36 +0000] "GET /zm.php HTTP/1.1" 200 5853
127.0.0.1 - - [07/Feb/2004:19:42:36 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716
127.0.0.1 - - [07/Feb/2004:19:42:38 +0000] "GET /zm.php?view=logout HTTP/1.1" 200 829
127.0.0.1 - - [07/Feb/2004:19:42:40 +0000] "POST /zm.php HTTP/1.1" 200 177
127.0.0.1 - - [07/Feb/2004:19:42:40 +0000] "GET /zm.php HTTP/1.1" 200 995
127.0.0.1 - - [07/Feb/2004:19:42:41 +0000] "GET /zm_styles.css HTTP/1.1" 200 3716


Apache error.log

[Sat Feb 7 19:30:59 2004] [notice] caught SIGTERM, shutting down
[Sat Feb 7 19:32:12 2004] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 mod_perl/1.27 configured -- resuming normal operations
[Sat Feb 7 19:32:12 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 7 19:32:12 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)




Extract from modules.conf

# YaST2 configured TV card
# RE4e.Jt6Ql0GzRqF:GrandTec Multi Capture Card (Bt878)
alias char-major-81-0 bttv
alias char-major-81-1 bttv
alias char-major-81-2 bttv
alias char-major-81-3 bttv
options bttv card=77,77,77,77 pll=1 radio=0 tuner=4



ZM config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --with-mysql=/var/lib --with-webdir=/srv/www/htdocs --with-cgidir=/srv/www/cgi-bin --with-webuser=wwwrun --with-webgroup=nogroup

## --------- ##
## Platform. ##
## --------- ##

hostname = linux
uname -m = i686
uname -r = 2.4.20-4GB-athlon
uname -s = Linux
uname -v = #1 Mon Mar 17 17:56:47 UTC 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome2/bin
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/gnome/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1285: checking for a BSD-compatible install
configure:1339: result: /usr/bin/install -c
configure:1350: checking whether build environment is sane
configure:1393: result: yes
configure:1426: checking for gawk
configure:1442: found /usr/bin/gawk
configure:1452: result: gawk
configure:1462: checking whether make sets $(MAKE)
configure:1482: result: yes
configure:1781: checking for gcc
configure:1797: found /usr/bin/gcc
configure:1807: result: gcc
configure:2051: checking for C compiler version
configure:2054: gcc --version </dev/null >&5
gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2057: $? = 0
configure:2059: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
configure:2062: $? = 0
configure:2064: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2067: $? = 1
configure:2091: checking for C compiler default output
configure:2094: gcc -L/var/lib/lib/mysql conftest.c >&5
configure:2097: $? = 0
configure:2143: result: a.out
configure:2148: checking whether the C compiler works
configure:2154: ./a.out
configure:2157: $? = 0
configure:2174: result: yes
configure:2181: checking whether we are cross compiling
configure:2183: result: no
configure:2186: checking for suffix of executables
configure:2188: gcc -o conftest -L/var/lib/lib/mysql conftest.c >&5
configure:2191: $? = 0
configure:2216: result:
configure:2222: checking for suffix of object files
configure:2244: gcc -c conftest.c >&5
configure:2247: $? = 0
configure:2269: result: o
configure:2273: checking whether we are using the GNU C compiler
configure:2298: gcc -c conftest.c >&5
configure:2301: $? = 0
configure:2304: test -s conftest.o
configure:2307: $? = 0
configure:2320: result: yes
configure:2326: checking whether gcc accepts -g
configure:2348: gcc -c -g conftest.c >&5
configure:2351: $? = 0
configure:2354: test -s conftest.o
configure:2357: $? = 0
configure:2368: result: yes
configure:2385: checking for gcc option to accept ANSI C
configure:2446: gcc -c -g -O2 conftest.c >&5
configure:2449: $? = 0
configure:2452: test -s conftest.o
configure:2455: $? = 0
configure:2473: result: none needed
configure:2491: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2494: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2622: checking for style of include used by make
configure:2650: result: GNU
configure:2678: checking dependency style of gcc
configure:2740: result: gcc3
configure:2809: checking for g++
configure:2825: found /usr/bin/g++
configure:2835: result: g++
configure:2851: checking for C++ compiler version
configure:2854: g++ --version </dev/null >&5
g++ (GCC) 3.3 20030226 (prerelease) (SuSE Linux)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2857: $? = 0
configure:2859: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
configure:2862: $? = 0
configure:2864: g++ -V </dev/null >&5
g++: `-V' option must have argument
configure:2867: $? = 1
configure:2870: checking whether we are using the GNU C++ compiler
configure:2895: g++ -c conftest.cc >&5
configure:2898: $? = 0
configure:2901: test -s conftest.o
configure:2904: $? = 0
configure:2917: result: yes
configure:2923: checking whether g++ accepts -g
configure:2945: g++ -c -g conftest.cc >&5
configure:2948: $? = 0
configure:2951: test -s conftest.o
configure:2954: $? = 0
configure:2965: result: yes
configure:3009: g++ -c -g -O2 conftest.cc >&5
configure:3012: $? = 0
configure:3015: test -s conftest.o
configure:3018: $? = 0
configure:3045: g++ -c -g -O2 conftest.cc >&5
configure: In function `int main()':
configure:3042: error: `exit' undeclared (first use this function)
configure:3042: error: (Each undeclared identifier is reported only once for
each function it appears in.)
configure:3048: $? = 1
configure: failed program was:
| #line 3028 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "zm"
| #define VERSION "1.17.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:3009: g++ -c -g -O2 conftest.cc >&5
configure:3012: $? = 0
configure:3015: test -s conftest.o
configure:3018: $? = 0
configure:3045: g++ -c -g -O2 conftest.cc >&5
configure:3048: $? = 0
configure:3051: test -s conftest.o
configure:3054: $? = 0
configure:3079: checking dependency style of g++
configure:3141: result: gcc3
configure:3170: checking for a BSD-compatible install
configure:3224: result: /usr/bin/install -c
configure:3235: checking whether make sets $(MAKE)
configure:3255: result: yes
configure:3271: checking how to run the C preprocessor
configure:3307: gcc -E conftest.c
configure:3313: $? = 0
configure:3345: gcc -E conftest.c
configure:3349:28: ac_nonexistent.h: No such file or directory
configure:3351: $? = 1
configure: failed program was:
| #line 3336 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "zm"
| #define VERSION "1.17.2"
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3389: result: gcc -E
configure:3414: gcc -E conftest.c
configure:3420: $? = 0
configure:3452: gcc -E conftest.c
configure:3456:28: ac_nonexistent.h: No such file or directory
configure:3458: $? = 1
configure: failed program was:
| #line 3443 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "zm"
| #define VERSION "1.17.2"
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3501: checking for egrep
configure:3511: result: grep -E
configure:3516: checking for ANSI C header files
configure:3542: gcc -c -g -O2 conftest.c >&5
configure:3545: $? = 0
configure:3548: test -s conftest.o
configure:3551: $? = 0
configure:3640: gcc -o conftest -g -O2 -L/var/lib/lib/mysql conftest.c >&5
configure:3643: $? = 0
configure:3645: ./conftest
configure:3648: $? = 0
configure:3663: result: yes
configure:3682: checking whether round is declared
configure:3708: g++ -c -g -O2 conftest.cc >&5
configure:3711: $? = 0
configure:3714: test -s conftest.o
configure:3717: $? = 0
configure:3728: result: yes
configure:3746: checking whether strsignal is declared
configure:3772: g++ -c -g -O2 conftest.cc >&5
configure:3775: $? = 0
configure:3778: test -s conftest.o
configure:3781: $? = 0
configure:3792: result: yes
configure:3811: checking for jpeg_start_compress in -ljpeg
configure:3842: g++ -o conftest -g -O2 -L/var/lib/lib/mysql conftest.cc -ljpeg >&5
configure:3845: $? = 0
configure:3848: test -s conftest
configure:3851: $? = 0
configure:3863: result: yes
configure:3879: checking for compress in -lz
configure:3910: g++ -o conftest -g -O2 -L/var/lib/lib/mysql conftest.cc -lz -ljpeg >&5
configure:3913: $? = 0
configure:3916: test -s conftest
configure:3919: $? = 0
configure:3931: result: yes
configure:3947: checking for dlsym in -ldl
configure:3978: g++ -o conftest -g -O2 -L/var/lib/lib/mysql conftest.cc -ldl -lz -ljpeg >&5
configure:3981: $? = 0
configure:3984: test -s conftest
configure:3987: $? = 0
configure:3999: result: yes
configure:4015: checking for mysql_init in -lmysqlclient
configure:4046: g++ -o conftest -g -O2 -L/var/lib/lib/mysql conftest.cc -lmysqlclient -ldl -lz -ljpeg >&5
configure:4049: $? = 0
configure:4052: test -s conftest
configure:4055: $? = 0
configure:4067: result: yes
configure:4202: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.57. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on linux

config.status:669: creating Makefile
config.status:669: creating src/Makefile
config.status:669: creating web/Makefile
config.status:669: creating scripts/Makefile
config.status:669: creating db/Makefile
config.status:669: creating zmconfig.pl
config.status:773: creating config.h
config.status:985: executing depfiles commands
configure:5406: checking for zmconfig.txt
configure:5421: result: no
configure:5426: WARNING: Now run 'perl zmconfig.pl' to create your ZoneMinder configuration

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_file_zmconfig_txt=no
ac_cv_have_decl_round=yes
ac_cv_have_decl_strsignal=yes
ac_cv_header_stdc=yes
ac_cv_lib_dl_dlsym=yes
ac_cv_lib_jpeg_jpeg_start_compress=yes
ac_cv_lib_mysqlclient_mysql_init=yes
ac_cv_lib_z_compress=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/missing --run aclocal-1.7'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/missing --run tar'
AUTOCONF='${SHELL} /tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/missing --run automake-1.7'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CGI_PREFIX='/srv/www/cgi-bin'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/var/lib/lib/mysql '
LIBOBJS=''
LIBS='-lmysqlclient -ldl -lz -ljpeg '
LTLIBOBJS=''
MAKEINFO='${SHELL} /tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/missing --run makeinfo'
MYSQL_CFLAGS='-I/var/lib/include'
MYSQL_LIBS='-L/var/lib/lib/mysql'
MYSQL_PREFIX='/var/lib'
OBJEXT='o'
PACKAGE='zm'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.17.2'
WEB_GROUP='nogroup'
WEB_PREFIX='/srv/www/htdocs'
WEB_USER='wwwrun'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_STRIP=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__quote=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='${prefix}'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/tmp/ZoneMinderStuff/ZMFiles/zm-1.17.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_DECL_ROUND 1
#define HAVE_DECL_STRSIGNAL 1
#define HAVE_LIBDL 1
#define HAVE_LIBJPEG 1
#define HAVE_LIBMYSQLCLIENT 1
#define HAVE_LIBZ 1
#define PACKAGE "zm"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define STDC_HEADERS 1
#define VERSION "1.17.2"
#endif
#ifdef __cplusplus
#include <stdlib.h>

configure: exit 0




ipcs -m dump with ZM 1.17.2 started


------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 root 600 1056768 3 dest
0x00000000 65537 root 600 33554432 3 dest
0x00000000 98306 root 600 33554432 3 dest
0x00000000 131075 root 600 368644 3 dest
0x7a6d2001 2490372 root 700 10138048 0



zmdc.log

Server starting at 04/02/07 19:18:15
'zmaudit.pl -d 900 -y' started at 04/02/07 19:18:18
'zmaudit.pl -d 900 -y' starting at 04/02/07 19:18:18, pid = 4387
'zmwatch.pl' started at 04/02/07 19:18:19
'zmwatch.pl' starting at 04/02/07 19:18:19, pid = 4392
Can't find process with command of 'zmc -d 0'
'zmc -d 0' started at 04/02/07 19:19:02
'zmc -d 0' starting at 04/02/07 19:19:02, pid = 4409
Can't find process with command of 'zmfilter.pl -m 1 -e -1'
Can't find process with command of 'zma -m 1'
'zma -m 1' started at 04/02/07 19:19:02
'zma -m 1' starting at 04/02/07 19:19:02, pid = 4420
'zmfilter.pl -m 1 -e -1' started at 04/02/07 19:19:03
'zmfilter.pl -m 1 -e -1' starting at 04/02/07 19:19:03, pid = 4425
'zmc -d 0' stopping at 04/02/07 19:21:10
'zmc -d 0' died at 04/02/07 19:21:10
'zmc -d 0' started at 04/02/07 19:21:10
'zmc -d 0' starting at 04/02/07 19:21:10, pid = 4477
'zma -m 1' stopping at 04/02/07 19:21:14
'zma -m 1' died at 04/02/07 19:21:14
'zmwatch.pl ' stopping at 04/02/07 19:21:14
'zmwatch.pl ' died at 04/02/07 19:21:14, signal 14
'zmfilter.pl -m 1 -e -1' stopping at 04/02/07 19:21:14
'zmfilter.pl -m 1 -e -1' died at 04/02/07 19:21:14, signal 14
'zmaudit.pl -d 900 -y' stopping at 04/02/07 19:21:14
'zmaudit.pl -d 900 -y' died at 04/02/07 19:21:14, signal 14
'zmc -d 0' stopping at 04/02/07 19:21:14
'zmc -d 0' died at 04/02/07 19:21:14
Can't find child with pid of '4494'
Server shutdown at 04/02/07 19:21:24



zmpkg.log

Command: start
Executing: /usr/local/bin/zmdc.pl check
Removing shared memory
Executing: /usr/local/bin/zmfix
Executing: /usr/local/bin/zmdc.pl status
Executing: /usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y
Executing: /usr/local/bin/zmdc.pl start zmwatch.pl
Command: stop
Executing: /usr/local/bin/zmdc.pl check
Executing: /usr/local/bin/zmdc.pl shutdown
Removing shared memory




zmu dump (zmu -d 0 -q -v)

N:BT878(GrandTec Multi Capture ),T:233,nC:4,nA:0,mxW:924,mxH:576,mnW:48,mnH:32,X:0,Y:0,W:352,H:288,P:1,D:8,B:32768,h:32768,Cl:32512,Cn:27648,w:0,n0:Composite0,C0:0,Fl0:2,T0:2F0:0,,n1:Composite1,C1:1,Fl1:2,T1:2F1:0,,n2:Composite2,C2:2,Fl2:2,T2:2F2:0,,n3:Composite3,C3:3,Fl3:2,T3:2F3:0,



zmu dump (zmu -m 1 -q -v) after running zmc -d 0

0Id : 1
Name : Front door
Type : Local
Device : 0
Channel : 0
Format : 0
Width : 352
Height : 288
Palette : 1
Colours : 1
Label Format : %%s - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 100
Warmup Count : 25
Pre Event Count : 10
Post Event Count : 10
Section Length : 600
Maximum FPS : 0.00
Reference Blend %ge : 10
Function: 3 - Motion Detection
Zones : 1
Id : 1
Label : All
Type: 1 - Active
Limits : 0,0 - 351,287
Alarm RGB : ff0000
Min Pixel Threshold : 25
Max Pixel Threshold : 0
Min Alarm Pixels : 3041
Max Alarm Pixels : 76032
Filter Box : 3,3
Min Filter Pixels : 3041
Max Filter Pixels : 76032
Min Blob Pixels : 2027
Max Blob Pixels : 0
Min Blobs : 1
Max Blobs : 0

Re: Problems getting capture daemon to run

Posted: Sun Feb 08, 2004 11:56 am
by zoneminder
Hi Norman,

Thanks for the very extensive report!

A couple of other things to check. Firstly, it seems that you only have one zmc running, does your card share the different cameras on different channels of the same device? I assume that is the case. Secondly check in /var/log/messages as that is where zmc will report it's errors. On some distros they actually get written to a different file in /var/log so grep for ERR in all files if you don't find anything in messages. Finally I notice your monitor appears to be called 'Front door', it might be worth changing this to 'FrontDoor' (no spaces) to avoid potential problems in the future.

Cheers,

Phil,

Re: Problems getting capture daemon to run

Posted: Sun Feb 08, 2004 5:15 pm
by norman
Phil,

Thanks for the very prompt response. Yes, there is only one copy of zmc running - this was also the case on the old PC. With regard to the 'Front door' - I had notice this issue in a previous thread but I haven;t had any problems with this name on the old PC so I assume it is not a problem under SuSE.

I've had a look in the messages file and attach the chunk corresponding to the other data sent earlier. I notice that zmc appears to start OK, loads the monotor and its (default) zone. Zma also appears to start OK and read the zone information correctly but when zms starts it reports no zone - is this correct.

Thanks again in advance!

Cheers,

Norman

Feb 7 19:40:45 linux zmfix[2863]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:40:45 linux zmfix[2863]: INF [Resetting permissions on /dev/video0 to 20606]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Got 1 monitors]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [X:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Y:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [W:320]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [H:240]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [P:7]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [D:16]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [B:32768]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [h:32768]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Cl:32512]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Cn:27648]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [vmb.frames = 4]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [vmb.size = 8519680]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [C:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [F:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Fl:2]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [T:2]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [X:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Y:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [W:352]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [H:288]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [P:1]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [D:8]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [B:32768]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [h:32768]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Cl:32512]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Cn:27648]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [monitor purpose=1]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [shm.size=10138048]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Monitor Front door has function 3]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Got 1 zones for monitor Front door]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Initialised zone 1/All - 1 - 352x288 - Rgb:ff0000, AT:25, MnAP:0, MxAP:3041, FB:76032x3, MnFP:3, MxFP:3041, MnBS:76032, MxBS:2027, MnB:0, MxB:1]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Loaded monitor 1(Front door), 1 zones]
Feb 7 19:40:49 linux zmc-d0[2886]: INF [Starting Capture]
Feb 7 19:40:49 linux zma-m1[2890]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:40:49 linux zma-m1[2890]: INF [Got 1 monitors]
Feb 7 19:40:49 linux zma-m1[2890]: INF [monitor purpose=2]
Feb 7 19:40:49 linux zma-m1[2890]: INF [shm.size=10138048]
Feb 7 19:40:49 linux zma-m1[2890]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:40:49 linux zma-m1[2890]: INF [Monitor Front door has function 3]
Feb 7 19:40:49 linux zma-m1[2890]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:40:49 linux zma-m1[2890]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:40:49 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:40:59 linux last message repeated 10 times
Feb 7 19:41:00 linux zms[2919]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:41:00 linux zms[2919]: INF [Got 1 monitors]
Feb 7 19:41:00 linux zms[2919]: INF [monitor purpose=0]
Feb 7 19:41:00 linux zms[2919]: INF [shm.size=10138048]
Feb 7 19:41:00 linux zms[2919]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:41:00 linux zms[2919]: INF [Monitor Front door has function 3]
Feb 7 19:41:00 linux zms[2919]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:41:00 linux zms[2919]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:41:00 linux zms[2919]: INF [Loaded monitor 1(Front door), 0 zones]
Feb 7 19:41:00 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:41:06 linux last message repeated 6 times
Feb 7 19:41:06 linux zms[2932]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:41:07 linux zms[2932]: INF [Got 1 monitors]
Feb 7 19:41:07 linux zms[2932]: INF [monitor purpose=0]
Feb 7 19:41:07 linux zms[2932]: INF [shm.size=10138048]
Feb 7 19:41:07 linux zms[2932]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:41:07 linux zms[2932]: INF [Monitor Front door has function 3]
Feb 7 19:41:07 linux zms[2932]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:41:07 linux zms[2932]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:41:07 linux zms[2932]: INF [Loaded monitor 1(Front door), 0 zones]
Feb 7 19:41:07 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:41:31 linux last message repeated 24 times
Feb 7 19:41:32 linux zms[2938]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:41:32 linux zms[2938]: INF [Got 1 monitors]
Feb 7 19:41:32 linux zms[2938]: INF [monitor purpose=0]
Feb 7 19:41:32 linux zms[2938]: INF [shm.size=10138048]
Feb 7 19:41:32 linux zms[2938]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:41:32 linux zms[2938]: INF [Monitor Front door has function 3]
Feb 7 19:41:32 linux zms[2938]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:41:32 linux zms[2938]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:41:32 linux zms[2938]: INF [Loaded monitor 1(Front door), 0 zones]
Feb 7 19:41:32 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:41:39 linux last message repeated 6 times
Feb 7 19:41:39 linux zms[2940]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:41:39 linux zms[2940]: INF [Got 1 monitors]
Feb 7 19:41:39 linux zms[2940]: INF [monitor purpose=0]
Feb 7 19:41:39 linux zms[2940]: INF [shm.size=10138048]
Feb 7 19:41:39 linux zms[2940]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:41:39 linux zms[2940]: INF [Monitor Front door has function 3]
Feb 7 19:41:39 linux zms[2940]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:41:39 linux zms[2940]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:41:39 linux zms[2940]: INF [Loaded monitor 1(Front door), 0 zones]
Feb 7 19:41:40 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:42:02 linux last message repeated 22 times
Feb 7 19:42:03 linux zms[2944]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:42:03 linux zms[2944]: INF [Got 1 monitors]
Feb 7 19:42:03 linux zms[2944]: INF [monitor purpose=0]
Feb 7 19:42:03 linux zms[2944]: INF [shm.size=10138048]
Feb 7 19:42:03 linux zms[2944]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:42:03 linux zms[2944]: INF [Monitor Front door has function 3]
Feb 7 19:42:03 linux zms[2944]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:42:03 linux zms[2944]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:42:03 linux zms[2944]: INF [Loaded monitor 1(Front door), 0 zones]
Feb 7 19:42:03 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:42:08 linux last message repeated 5 times
Feb 7 19:42:08 linux zms[2958]: INF [Debug Level = 0, Debug Log = ]
Feb 7 19:42:08 linux zms[2958]: INF [Got 1 monitors]
Feb 7 19:42:09 linux zms[2958]: INF [monitor purpose=0]
Feb 7 19:42:09 linux zms[2958]: INF [shm.size=10138048]
Feb 7 19:42:09 linux zms[2958]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:0, MxAP:50, FB:75000x3, MnFP:3, MxFP:50, MnBS:50000, MxBS:10, MnB:0, MxB:0]
Feb 7 19:42:09 linux zms[2958]: INF [Monitor Front door has function 3]
Feb 7 19:42:09 linux zms[2958]: INF [Monitor Front door LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 7 19:42:09 linux zms[2958]: INF [Monitor Front door IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 7 19:42:09 linux zms[2958]: INF [Loaded monitor 1(Front door), 0 zones]
Feb 7 19:42:09 linux zma-m1[2890]: WAR [Waiting for capture daemon]
Feb 7 19:42:24 linux last message repeated 15 times
Feb 7 19:42:25 linux zmc-d0[2886]: INF [Got TERM signal, exiting]

Re: Problems getting capture daemon to run

Posted: Mon Feb 09, 2004 10:08 am
by zoneminder
It looks strange to me that there aren't any errors here. Can you check and make sure that no other file in /var/log contains any ERR strings?

Phil,

Re: Problems getting capture daemon to run

Posted: Mon Mar 01, 2004 9:18 pm
by norman
Phillip,

Further to my previous postings, I’ve uninstalled Zoneminder, dropped the ZM tables from MySQL, uninstalled MySQL, reinstalled MySQL, configured and built ZM 1.18.1 but I still have no image in the watch window. I’ve had a good GREP round but the only place the messages seem to be going to is /var/log/messages – the relevant part is appended, as is the corresponding entry from zmpkg.log.

The capture daemon seems to load and stay up OK (started at 20:38:50), the analysis daemon also starts at the same time. However, the messages log indicates that it is wating for the cature daemon – with a WARmessage. I shut the ZM processes down at 20:39:20. Any clues? xawtv sees all four channels on the card OK (GranTec MultiCapture, using a single BT878 chip, SuSE 8.2).

Cheers,

Norman

/tmp/zmpkg.log

Server starting at 04/02/29 20:37:23
'zmfilter.pl -e -1' started at 04/02/29 20:37:26
'zmfilter.pl -e -1' starting at 04/02/29 20:37:26, pid = 8535
'zmaudit.pl -d 900 -y' started at 04/02/29 20:37:27
'zmaudit.pl -d 900 -y' starting at 04/02/29 20:37:27, pid = 8539
'zmwatch.pl' started at 04/02/29 20:37:27
'zmwatch.pl' starting at 04/02/29 20:37:27, pid = 8544
'zmupdate.pl -c' started at 04/02/29 20:37:27
'zmupdate.pl -c' starting at 04/02/29 20:37:27, pid = 8548
Can't find process with command of 'zmc -d 0'
'zmc -d 0' started at 04/02/29 20:38:50
'zmc -d 0' starting at 04/02/29 20:38:50, pid = 8566
Can't find process with command of 'zma -m 1'
'zma -m 1' started at 04/02/29 20:38:50
'zma -m 1' starting at 04/02/29 20:38:50, pid = 8574
'zmwatch.pl ' stopping at 04/02/29 20:39:20
'zmwatch.pl ' died at 04/02/29 20:39:20, signal 14
'zmc -d 0' stopping at 04/02/29 20:39:20
'zmc -d 0' died at 04/02/29 20:39:20
'zmaudit.pl -d 900 -y' stopping at 04/02/29 20:39:20
'zmaudit.pl -d 900 -y' died at 04/02/29 20:39:20, signal 14
'zma -m 1' stopping at 04/02/29 20:39:20
'zma -m 1' died at 04/02/29 20:39:20, signal 14
'zmfilter.pl -e -1' stopping at 04/02/29 20:39:20
'zmfilter.pl -e -1' died at 04/02/29 20:39:20, signal 14
'zmupdate.pl -c' stopping at 04/02/29 20:39:20
'zmupdate.pl -c' died at 04/02/29 20:39:20, signal 14
Can't find child with pid of '8627'
Server shutdown at 04/02/29 20:39:30


/var/log/messages


Feb 29 20:37:23 linux zmfix[8512]: INF [Debug Level = 0, Debug Log = ]
Feb 29 20:38:49 linux zmfix[8558]: INF [Debug Level = 0, Debug Log = ]
Feb 29 20:38:49 linux zmfix[8558]: INF [Permissions on /dev/video0 are ok at 20606]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Debug Level = 0, Debug Log = ]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Got 1 monitors]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [X:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Y:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [W:352]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [H:288]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [P:1]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [D:8]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [B:32768]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [h:32768]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Cl:32512]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Cn:27648]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [vmb.frames = 4]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [vmb.size = 8519680]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [C:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [F:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Fl:2]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [T:2]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [X:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Y:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [W:352]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [H:288]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [P:1]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [D:8]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [B:32768]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [h:32768]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Cl:32512]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Cn:27648]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [monitor purpose=1]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [shm.size=10138048]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Initialised zone 0/All - 1 - 352x288 - 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]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Monitor FrontDoor has function 3]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Monitor FrontDoor LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Monitor FrontDoor IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Got 1 zones for monitor FrontDoor]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Initialised zone 1/All - 1 - 352x288 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:3041, MxAP:76032, FB:3x3, MnFP:3041, MxFP:76032, MnBS:2027, MxBS:0, MnB:1, MxB:0]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Loaded monitor 1(FrontDoor), 1 zones]
Feb 29 20:38:50 linux zmc-d0[8566]: INF [Starting Capture]
Feb 29 20:38:50 linux zma-m1[8574]: INF [Debug Level = 0, Debug Log = ]
Feb 29 20:38:50 linux zma-m1[8574]: INF [Got 1 monitors]
Feb 29 20:38:50 linux zma-m1[8574]: INF [monitor purpose=2]
Feb 29 20:38:50 linux zma-m1[8574]: INF [shm.size=10138048]
Feb 29 20:38:50 linux zma-m1[8574]: INF [Initialised zone 0/All - 1 - 352x288 - 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]
Feb 29 20:38:50 linux zma-m1[8574]: INF [Monitor FrontDoor has function 3]
Feb 29 20:38:50 linux zma-m1[8574]: INF [Monitor FrontDoor LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 29 20:38:50 linux zma-m1[8574]: INF [Monitor FrontDoor IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 29 20:38:50 linux zma-m1[8574]: WAR [Waiting for capture daemon]
Feb 29 20:38:55 linux last message repeated 5 times
Feb 29 20:38:56 linux zms[8588]: INF [Debug Level = 0, Debug Log = ]
Feb 29 20:38:56 linux zms[8588]: INF [Got 1 monitors]
Feb 29 20:38:56 linux zms[8588]: INF [monitor purpose=0]
Feb 29 20:38:56 linux zms[8588]: INF [shm.size=10138048]
Feb 29 20:38:56 linux zms[8588]: INF [Initialised zone 0/All - 1 - 352x288 - 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]
Feb 29 20:38:56 linux zms[8588]: INF [Monitor FrontDoor has function 3]
Feb 29 20:38:56 linux zms[8588]: INF [Monitor FrontDoor LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Feb 29 20:38:56 linux zms[8588]: INF [Monitor FrontDoor IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Feb 29 20:38:56 linux zms[8588]: INF [Loaded monitor 1(FrontDoor), 0 zones]
Feb 29 20:38:56 linux zma-m1[8574]: WAR [Waiting for capture daemon]
Feb 29 20:39:19 linux last message repeated 23 times
Feb 29 20:39:20 linux zmc-d0[8566]: INF [Got TERM signal, exiting]
Feb 29 20:39:20 linux zmc-d0[8566]: ERR [Sync failure for frame 0: Interrupted system call]

Re: Problems getting capture daemon to run

Posted: Thu Mar 04, 2004 11:29 pm
by zoneminder
Hi Norman,

Using 'top' can you tell if your zmc processes are using any processor time or are they just stuck in a sleep or something and using no resource?

Phil,

Re: Problems getting capture daemon to run

Posted: Sat Mar 06, 2004 2:50 pm
by norman
Hi Phil,

Good guess - I've attached relevant parts of the optput from top on the old system (P450, SuSE 8.2, ZM 0.9.15 - all working OK) and the new system (Athlon XP2000, SuSe 8.2, ZM 1.18.1 - not capturing) and it seems that, as you suspected, all the zm processes are just sitting in sleep mode. As I mentioned previously, as far as I am aware, the Linux setup is identical on both machines. xawtv can see all four channels on the new machine OK so I am totally at a loss - so near to working . . .

Cheers,

Norman


Old machine

top - 14:15:43 up 6 min, 3 users, load average: 0.76, 0.90, 0.45
Tasks: 102 total, 1 running, 100 sleeping, 0 stopped, 1 zombie
Cpu(s): 32.4% user, 6.6% system, 0.0% nice, 61.0% idle
Mem: 191132k total, 187100k used, 4032k free, 3324k buffers
Swap: 385520k total, 54640k used, 330880k free, 83724k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
2036 root 16 0 800 800 604 R 5.5 0.4 0:00.14 top
1922 wwwrun 15 0 49520 39m 39m S 2.8 21.3 0:03.52 zmc
1926 wwwrun 15 0 12624 12m 10m S 2.8 6.6 0:06.31 zma
1936 wwwrun 15 0 12228 11m 10m S 2.8 6.4 0:05.91 zma
1947 wwwrun 15 0 12228 11m 10m S 1.8 6.4 0:08.78 zma
1 root 15 0 76 64 60 S 0.0 0.0 0:05.27 init
2 root 15 0 0 0 0 S 0.0 0.0 0:00.02 keventd
3 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kapmd
4 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd_CPU0
5 root 15 0 0 0 0 S 0.0 0.0 0:00.72 kswapd


New machine

top - 13:47:52 up 3:06, 3 users, load average: 0.02, 0.02, 0.00
Tasks: 101 total, 1 running, 99 sleeping, 0 stopped, 1 zombie
Cpu(s): 2.2% user, 0.4% system, 0.0% nice, 97.4% idle
Mem: 482464k total, 388452k used, 94012k free, 60992k buffers
Swap: 971892k total, 0k used, 971892k free, 174156k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
6276 root 16 0 800 800 604 R 1.9 0.2 0:00.06 top
5931 root 16 0 8576 8572 8284 S 1.0 1.8 0:00.04 kdeinit
6266 root 16 0 11444 11m 10m S 1.0 2.4 0:00.20 kdeinit
1 root 15 0 244 244 208 S 0.0 0.1 0:04.59 init
2 root 15 0 0 0 0 S 0.0 0.0 0:00.03 keventd
6166 wwwrun 15 0 5172 5168 1996 S 0.0 1.1 0:00.01 zmdc.pl
6186 wwwrun 21 0 19800 11m 10m S 0.0 2.4 0:00.06 zmc
6187 root 19 0 3144 3140 2192 S 0.0 0.7 0:00.00 mysqld
6190 wwwrun 21 0 1560 1560 1088 S 0.0 0.3 0:00.01 zmf
6191 root 20 0 3144 3140 2192 S 0.0 0.7 0:00.01 mysqld
6194 wwwrun 15 0 1544 1544 1088 S 0.0 0.3 0:00.01 zma
6196 root 20 0 3144 3140 2192 S 0.0 0.7 0:00.00 mysqld
6198 wwwrun 15 0 11584 11m 2076 S 0.0 2.4 0:00.45 zmfilter.pl
6202 wwwrun 21 0 4084 4080 1852 S 0.0 0.8 0:00.09 zmaudit.pl
6206 wwwrun 15 0 4592 4588 1908 S 0.0 1.0 0:00.12 zmwatch.pl
6208 root 20 0 3144 3140 2192 S 0.0 0.7 0:00.00 mysqld
6209 root 15 0 3144 3140 2192 S 0.0 0.7 0:00.01 mysqld
6212 wwwrun 21 0 7104 7096 2060 S 0.0 1.5 0:00.24 zmupdate.pl
6217 root 20 0 3144 3140 2192 S 0.0 0.7 0:00.00 mysqld
6223 root 15 0 3144 3140 2192 S 0.0 0.7 0:00.00 mysqld