Irregular behaviour. Lots of 255 errors. Shmmax correct size

Support and queries relating to all previous versions of ZoneMinder
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Irregular behaviour. Lots of 255 errors. Shmmax correct size

Post by paperstreet »

Fresh ubuntu 8.04 install.

Installed zoneminder via repository

Corrected shmmax and shmall in /etc/sysctl.conf

Camera states keep changing from red to orange

getting:

Code: Select all

ebug.log.06108  zm_debug.log.06160  zm_debug.log.06176  zm_debug.log.06190  zm_debug.log.06218  zm_debug.log.06243  zm_debug.log.06261  zm_debug.log.06281  zm_debug.log.06299  
zm_debug.log.06132  zm_debug.log.06162  zm_debug.log.06178  zm_debug.log.06192  zm_debug.log.06220  zm_debug.log.06245  zm_debug.log.06265  zm_debug.log.06283  zm_debug.log.06301  
zm_debug.log.06134  zm_debug.log.06164  zm_debug.log.06179  zm_debug.log.06194  zm_debug.log.06225  zm_debug.log.06248  zm_debug.log.06267  zm_debug.log.06286  zm_debug.log.06303  
zm_debug.log.06136  zm_debug.log.06165  zm_debug.log.06182  zm_debug.log.06198  zm_debug.log.06227  zm_debug.log.06250  zm_debug.log.06270  zm_debug.log.06289  zmfilter.log        
root@brickdvr:/home/atlantia# tail /tmp/zmdc.log 
11/10/08 12:43:01.242894 zmdc[6350].INF ['zmc -m 5' starting at 08/11/10 12:43:01, pid = 6497]
11/10/08 12:43:01.347085 zmdc[6350].ERR ['zmc -m 5' exited abnormally, exit status 255]
11/10/08 12:43:06.780648 zmdc[6350].ERR ['zmc -m 3' exited abnormally, exit status 255]
11/10/08 12:43:11.448442 zmdc[6350].INF ['zmc -m 5' starting at 08/11/10 12:43:11, pid = 6499]
11/10/08 12:43:11.554515 zmdc[6350].ERR ['zmc -m 5' exited abnormally, exit status 255]
11/10/08 12:43:11.749824 zmdc[6350].ERR ['zmc -m 1' exited abnormally, exit status 255]
11/10/08 12:43:21.639693 zmdc[6350].INF ['zmc -m 1' starting at 08/11/10 12:43:21, pid = 6501]
11/10/08 12:43:21.837421 zmdc[6350].INF ['zmc -m 3' starting at 08/11/10 12:43:21, pid = 6503]
11/10/08 12:43:22.050866 zmdc[6350].INF ['zmc -m 5' starting at 08/11/10 12:43:22, pid = 6505]
11/10/08 12:43:22.213189 zmdc[6350].ERR ['zmc -m 5' exited abnormally, exit status 255]
root@brickdvr:/home/atlantia# tail -100 /tmp/zmdc.log 
11/10/08 12:39:21.624130 zmdc[6350].ERR ['zmc -m 3' exited abnormally, exit status 255]
11/10/08 12:39:23.078873 zmdc[6350].INF ['zmc -m 5' starting at 08/11/10 12:39:23, pid = 6412]
11/10/08 12:39:23.182094 zmdc[6350].ERR ['zmc -m 5' exited abnormally, exit status 255]
11/10/08 12:39:31.082580 zmdc[6350].INF [Starting pending process, zmc -m 3]
11/10/08 12:39:31.111264 zmdc[6350].INF ['zmc -m 3' starting at 08/11/10 12:39:31, pid = 6413]
11/10/08 12:39:33.294291 zmdc[6350].INF ['zmc -m 5' starting at 08/11/10 12:39:33, pid = 6415]
11/10/08 12:39:33.451042 zmdc[6350].ERR ['zmc -m 5' exited abnormally, exit status 255]
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

also:

Code: Select all

11/10/08 12:44:13.875295 zmwatch[6385].INF ['zmc -m 1' starting at 08/11/10 12:44:13, pid = 6535]
11/10/08 12:44:13.876187 zmwatch[6385].INF [Restarting capture daemon for Bar, time since last capture 7 seconds (1226339053-1226339046)]
11/10/08 12:44:14.078492 zmwatch[6385].INF ['zmc -m 2' starting at 08/11/10 12:44:14, pid = 6537]
11/10/08 12:44:14.079737 zmwatch[6385].INF [Restarting capture daemon for Back, time since last capture 10 seconds (1226339053-1226339043)]
11/10/08 12:44:14.287070 zmwatch[6385].INF ['zmc -m 5' starting at 08/11/10 12:44:14, pid = 6539]
11/10/08 12:44:24.289113 zmwatch[6385].INF [Restarting capture daemon for Kitchen, time since last capture 7 seconds (1226339064-1226339057)]
11/10/08 12:44:24.486304 zmwatch[6385].INF ['zmc -m 3' starting at 08/11/10 12:44:24, pid = 6541]
11/10/08 12:44:24.487310 zmwatch[6385].INF [Restarting capture daemon for Back, time since last capture 10 seconds (1226339064-1226339054)]
11/10/08 12:44:24.707162 zmwatch[6385].INF ['zmc -m 5' starting at 08/11/10 12:44:24, pid = 6543]
11/10/08 12:44:34.708909 zmwatch[6385].INF [Restarting capture daemon for Bar, time since last capture 7 seconds (1226339074-1226339067)]
11/10/08 12:44:34.917811 zmwatch[6385].INF ['zmc -m 2' starting at 08/11/10 12:44:34, pid = 6545]
11/10/08 12:44:34.919050 zmwatch[6385].INF [Restarting capture daemon for Back, time since last capture 10 seconds (1226339074-1226339064)]
11/10/08 12:44:35.127169 zmwatch[6385].INF ['zmc -m 5' starting at 08/11/10 12:44:35, pid = 6547]
It appears to be doing it for all 4 cameras.

Is there a method for installing zoneminder that *just works*? I am only using it for this legacy system since every install I have dealt with has had issues of some degree...
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Was getting a suid-perl error at start and stop via command line, installed perl-suid package to fix that (Why isn't this in the dependencies?)

did an strace on zmc and here's the end of the result

Code: Select all

select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 996000})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\377\330\377\376\0(h\t\0\0\0\0\0@\214f\213\237I\30/\312"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "\266\215gh,5(g\263\267\216\30\27\373EZ\3266\n\213#\254"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\17\371k\237\2450\353\226C\370\317\345O\221\2072\30u\353"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "9\371{\34T\267\215\2337\374?\235\0s\344\222y\357J\5P\33"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [411])               = 0
read(5, "\273qosx\36\0\300\343\f\10\244\223\3\'4\235\352\200\261"..., 411) = 411
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339868, 671474}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
gettimeofday({1226339868, 672425}, {300, 0}) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1226339868, 672684}, {300, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(83), sin_addr=inet_addr("192.168.0.23")}, 16) = 0
write(5, "GET /axis-cgi/jpg/image.cgi?reso"..., 133) = 133
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 916000})
ioctl(5, FIONREAD, [1538])              = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 1538) = 1538
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 0})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "\352\255\34\27s\333\314t\2559o\243\210D\221\263;\312&U"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [4380])              = 0
read(5, "\266\215gh,5(g\263\267\216\30\27\373EZ\3266\n\213#\254"..., 4380) = 4380
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [3372])              = 0
read(5, "\235\0s\3479\247\201\236\365@m\351\372D\323\300&\315\276"..., 3372) = 3372
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339868, 773897}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
gettimeofday({1226339868, 774859}, {300, 0}) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1226339868, 775119}, {300, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(83), sin_addr=inet_addr("192.168.0.23")}, 16) = 0
write(5, "GET /axis-cgi/jpg/image.cgi?reso"..., 133) = 133
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 908000})
ioctl(5, FIONREAD, [78])                = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 78) = 78
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "\377\330\377\376\0(h\t\0\0\0\0\0@\214f\213\237I\30/\312"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\352\255\34\27s\333\314t\2559o\243\210D\221\263;\312&U"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 0})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\365\240\351\223M> \267\37\302\177:j\233\16a\247\304\21"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [3337])              = 0
read(5, "\374\254z/\256:\324\267\255\2339?\17\347GP9\343\236\177"..., 3337) = 3337
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339868, 879899}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
gettimeofday({1226339868, 880852}, {300, 0}) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1226339868, 881110}, {300, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(83), sin_addr=inet_addr("192.168.0.23")}, 16) = 0
write(5, "GET /axis-cgi/jpg/image.cgi?reso"..., 133) = 133
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 908000})
ioctl(5, FIONREAD, [78])                = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 78) = 78
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 0})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\377\330\377\376\0(h\t\0\0\0\0\0@\214f\213\237I\30/\312"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "\266\215gh,5(g\263\267\216\30\27\373EZ\3266\n\213#\254"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\323\342\v\177\356\237\316\237\263b\346CO\210\"\354\224"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [3340])              = 0
read(5, "z/\256*[\326\315\233\363\351\374\350\3\237\352y\3174\252"..., 3340) = 3340
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 0})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339868, 991053}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
gettimeofday({1226339868, 991993}, {300, 0}) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1226339868, 992258}, {300, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(83), sin_addr=inet_addr("192.168.0.23")}, 16) = 0
write(5, "GET /axis-cgi/jpg/image.cgi?reso"..., 133) = 133
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 908000})
ioctl(5, FIONREAD, [78])                = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 78) = 78
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "\377\330\377\376\0(h\t\0\0\0\0\0@\214f\213\237I\30/\313"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "\352\255\34\27s\333\314t\2559o\243\210D\221\263;\312&U"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\266\215gh,5(g\263\267\216\30\27\373EZ\3266\n\213#\254"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [4380])              = 0
read(5, "\370\311\246\272HZ\3265Y\33\226$\344~\265\244b\267%\235"..., 4380) = 4380
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [456])               = 0
read(5, "\37\3531\317\246\r\0l\332YD\252\6\334\375j\313\311\16\225"..., 456) = 456
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339869, 101235}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
gettimeofday({1226339869, 102177}, {300, 0}) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1226339869, 102464}, {300, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(83), sin_addr=inet_addr("192.168.0.23")}, 16) = 0
write(5, "GET /axis-cgi/jpg/image.cgi?reso"..., 133) = 133
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 900000})
ioctl(5, FIONREAD, [78])                = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 78) = 78
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "\377\330\377\376\0(h\t\0\0\0\0\0@\214f\213\237I\30/\313"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [1460])              = 0
read(5, "[F\263\264\26\32\2243\331\333\307\f\v\375\242\255k\33\5"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [2920])              = 0
read(5, "i\207\\\262\37\306\177*|\2149\220\303\257Z\16\231\246\237"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 0})
ioctl(5, FIONREAD, [3321])              = 0
read(5, "R@\10\377\0 \221~V=\24t8\353R\336\266l\344\372\17\347@"..., 3321) = 3321
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339869, 219388}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
gettimeofday({1226339869, 220327}, {300, 0}) = 0
rt_sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1226339869, 220596}, {300, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(83), sin_addr=inet_addr("192.168.0.23")}, 16) = 0
write(5, "GET /axis-cgi/jpg/image.cgi?reso"..., 133) = 133
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {1, 908000})
ioctl(5, FIONREAD, [78])                = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 78) = 78
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [4380])              = 0
read(5, "\377\330\377\376\0(h\t\0\0\0\0\0@\214f\213\237I\30/\313"..., 4380) = 4380
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [5840])              = 0
read(5, "\365\240\351\223M> \267\376\351\374\351\3739\0072\30|A"..., 5840) = 5840
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [434])               = 0
read(5, "\214FI\7\3\332\220\10\372\316\234\314[|\237\367\315s\332"..., 434) = 434
select(6, [5], NULL, NULL, {2, 500})    = 1 (in [5], left {2, 500})
ioctl(5, FIONREAD, [0])                 = 0
close(5)                                = 0
close(-1)                               = -1 EBADF (Bad file descriptor)
gettimeofday({1226339869, 330733}, {300, 0}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
time(NULL)                              = 1226339869
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
send(3, "<139>Nov 10 12:57:49 zmc_m3[6962"..., 85, MSG_NOSIGNAL) = 85
close(-1)                               = -1 EBADF (Bad file descriptor)


User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I see you have had debug turned on, have you taken a peek at any of the debug logs as they would have a bit more detail?
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

ok so if i run three cameras (320x240) alone it *seems* fine, but adding the 4th one with 640x480 resolution bombs. The same hardware has run more than this before, and top reports cpu usage and memory has oomph to spare.

So obviously the 4th camera is to blame, somehow.

It is an IK-WB11A Toshiba.

I have used them in the past with no issue.

Gonna try* to debug the one camera.

Zoneminder needs to sell support, or someone for it. I gave up installing this stuff last year, because my customers were getting upset with the amount of maintenance it requires.

I am open for suggestions on the last part.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Cordel,

Setting up debug and disabling all but the one camera now. I'll post here.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Code: Select all

11/10/08 14:07:29.012704 zmc_m5[9355].DB1-zm_monitor.cpp/253 [monitor purpose=1]
11/10/08 14:07:29.012750 zmc_m5[9355].DB1-zm_monitor.cpp/260 [shm.size=18433028]
11/10/08 14:07:29.134639 zmc_m5[9355].DB1-zm_zone.cpp/49 [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, $
11/10/08 14:07:29.147086 zmc_m5[9355].DB1-zm_monitor.cpp/329 [Monitor Back has function 2]
11/10/08 14:07:29.147130 zmc_m5[9355].DB1-zm_monitor.cpp/330 [Monitor Back LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
11/10/08 14:07:29.147143 zmc_m5[9355].DB1-zm_monitor.cpp/331 [Monitor Back IBC = 20, WUC = 5, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
11/10/08 14:07:29.151811 zmc_m5[9355].DB1-zm_zone.cpp/849 [Got 1 zones for monitor Back]
11/10/08 14:07:29.151854 zmc_m5[9355].DB5-zm_zone.cpp/877 [Parsing polygon 0,0 639,0 639,479 0,479]
11/10/08 14:07:29.151874 zmc_m5[9355].DB3-zm_zone.cpp/718 [Parsing polygon string '0,0 639,0 639,479 0,479']
11/10/08 14:07:29.151887 zmc_m5[9355].DB3-zm_zone.cpp/756 [Got coordinate 0,0 from polygon string]
11/10/08 14:07:29.151899 zmc_m5[9355].DB3-zm_zone.cpp/756 [Got coordinate 639,0 from polygon string]
11/10/08 14:07:29.151910 zmc_m5[9355].DB3-zm_zone.cpp/756 [Got coordinate 639,479 from polygon string]
11/10/08 14:07:29.151922 zmc_m5[9355].DB3-zm_zone.cpp/756 [Got coordinate 0,479 from polygon string]
11/10/08 14:07:29.151940 zmc_m5[9355].DB3-zm_zone.cpp/776 [Successfully parsed polygon string]
11/10/08 14:07:29.151959 zmc_m5[9355].DB1-zm_zone.cpp/49 [Initialised zone 5/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,$
11/10/08 14:07:29.178565 zmc_m5[9355].DB1-zm_monitor.cpp/2036 [Loaded monitor 5(Back), 1 zones]
11/10/08 14:07:29.178622 zmc_m5[9355].INF-zmc.cpp/183 [Starting Capture]
11/10/08 14:07:29.190459 zmc_m5[9355].DB3-zm_remote_camera.cpp/159 [Connected to host, socket = 5]
11/10/08 14:07:29.190582 zmc_m5[9355].DB3-zm_remote_camera.cpp/180 [Request sent]
11/10/08 14:07:29.194502 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 1579 bytes]
11/10/08 14:07:29.194588 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 1579 bytes]
11/10/08 14:07:29.194725 zmc_m5[9355].DB4-zm_remote_camera.cpp/302 [Captured header (119 bytes):
'HTTP/1.0 200 OK
Connection: close
Content-type: image/jpeg
Expires: 0
Pragma: no-cache
Cache-Control: no-cache

']
11/10/08 14:07:29.194771 zmc_m5[9355].DB3-zm_remote_camera.cpp/320 [Got status '200' (OK), http version 1.0]
11/10/08 14:07:29.194792 zmc_m5[9355].DB3-zm_remote_camera.cpp/327 [Got connection 'close']
11/10/08 14:07:29.194826 zmc_m5[9355].DB3-zm_remote_camera.cpp/343 [Got content type 'image/jpeg'
]
11/10/08 14:07:29.195931 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.195962 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.197641 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 1460 bytes]
11/10/08 14:07:29.197687 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 1460 bytes]
11/10/08 14:07:29.199597 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.199644 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.201291 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.201346 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.202234 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.202268 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.204198 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.204318 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.205133 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.205180 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.207063 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.207116 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.209107 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.209154 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.210524 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 3386 bytes]
11/10/08 14:07:29.210581 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 3386 bytes]
11/10/08 14:07:29.212118 zmc_m5[9355].DB3-zm_remote_camera.cpp/220 [Socket closed]
11/10/08 14:07:29.212199 zmc_m5[9355].DB3-zm_remote_camera.cpp/511 [Got end of image by closure, content-length = 29666]
11/10/08 14:07:29.219263 zmc_m5[9355].DB3-zm_remote_camera.cpp/536 [Returning 29666 (29666) bytes of captured content]
11/10/08 14:07:29.262453 zmc_m5[9355].DB3-zm_remote_camera.cpp/159 [Connected to host, socket = 5]
11/10/08 14:07:29.262549 zmc_m5[9355].DB3-zm_remote_camera.cpp/180 [Request sent]
11/10/08 14:07:29.265313 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 119 bytes]
11/10/08 14:07:29.265365 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 119 bytes]
11/10/08 14:07:29.265418 zmc_m5[9355].DB4-zm_remote_camera.cpp/302 [Captured header (119 bytes):
'HTTP/1.0 200 OK
Connection: close
Content-type: image/jpeg
Expires: 0
Pragma: no-cache
Cache-Control: no-cache

']
11/10/08 14:07:29.265442 zmc_m5[9355].DB3-zm_remote_camera.cpp/320 [Got status '200' (OK), http version 1.0]
11/10/08 14:07:29.265456 zmc_m5[9355].DB3-zm_remote_camera.cpp/327 [Got connection 'close']
11/10/08 14:07:29.265481 zmc_m5[9355].DB3-zm_remote_camera.cpp/343 [Got content type 'image/jpeg'
]
11/10/08 14:07:29.267540 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.267602 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.268368 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.268396 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.270920 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.270981 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.271631 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.271659 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.273598 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.273647 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.274544 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.274589 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.276527 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.276582 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.277476 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.277515 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.279993 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.280045 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.280733 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.280769 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.282054 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 481 bytes]
11/10/08 14:07:29.282102 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 481 bytes]
11/10/08 14:07:29.204198 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.204318 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.205133 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.205180 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.207063 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.207116 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.209107 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.209154 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.210524 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 3386 bytes]
11/10/08 14:07:29.210581 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 3386 bytes]
11/10/08 14:07:29.212118 zmc_m5[9355].DB3-zm_remote_camera.cpp/220 [Socket closed]
11/10/08 14:07:29.212199 zmc_m5[9355].DB3-zm_remote_camera.cpp/511 [Got end of image by closure, content-length = 29666]
11/10/08 14:07:29.219263 zmc_m5[9355].DB3-zm_remote_camera.cpp/536 [Returning 29666 (29666) bytes of captured content]
11/10/08 14:07:29.262453 zmc_m5[9355].DB3-zm_remote_camera.cpp/159 [Connected to host, socket = 5]
11/10/08 14:07:29.262549 zmc_m5[9355].DB3-zm_remote_camera.cpp/180 [Request sent]
11/10/08 14:07:29.265313 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 119 bytes]
11/10/08 14:07:29.265365 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 119 bytes]
11/10/08 14:07:29.265418 zmc_m5[9355].DB4-zm_remote_camera.cpp/302 [Captured header (119 bytes):
'HTTP/1.0 200 OK
Connection: close
Content-type: image/jpeg
Expires: 0
Pragma: no-cache
Cache-Control: no-cache

']
11/10/08 14:07:29.265442 zmc_m5[9355].DB3-zm_remote_camera.cpp/320 [Got status '200' (OK), http version 1.0]
11/10/08 14:07:29.265456 zmc_m5[9355].DB3-zm_remote_camera.cpp/327 [Got connection 'close']
11/10/08 14:07:29.265481 zmc_m5[9355].DB3-zm_remote_camera.cpp/343 [Got content type 'image/jpeg'
]
11/10/08 14:07:29.267540 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.267602 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.268368 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.268396 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.270920 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.270981 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.271631 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.271659 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.273598 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.273647 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.274544 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.274589 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.276527 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.276582 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.277476 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.277515 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.279993 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.280045 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.280733 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 2920 bytes]
11/10/08 14:07:29.280769 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 2920 bytes]
11/10/08 14:07:29.282054 zmc_m5[9355].DB3-zm_remote_camera.cpp/225 [Expecting 481 bytes]
11/10/08 14:07:29.282102 zmc_m5[9355].DB3-zm_remote_camera.cpp/250 [Read 481 bytes]
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Code: Select all

4.235058 zmc_m5[9364].DB3-zm_remote_camera.cpp/159 [Connected to host, socket = 5]
11/10/08 14:07:34.235126 zmc_m5[9364].DB3-zm_remote_camera.cpp/180 [Request sent]
11/10/08 14:07:34.237847 zmc_m5[9364].DB3-zm_remote_camera.cpp/225 [Expecting 82 bytes]
11/10/08 14:07:34.237867 zmc_m5[9364].DB3-zm_remote_camera.cpp/250 [Read 82 bytes]
11/10/08 14:07:34.237905 zmc_m5[9364].DB4-zm_remote_camera.cpp/302 [Captured header (45 bytes):
'HTTP/1.0 404 Not found
Connection: close

']
11/10/08 14:07:34.237934 zmc_m5[9364].ERR-zm_remote_camera.cpp/317 [Invalid response status 404: Not found]
cc
at the end.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Actually Phil does sell support, you just have to contact him for the details. I sell support as well and return 15% of that back to Phil.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

meh is there any way to have the debug log one file? It has a bunch of info spread across a bunch of files. Very much a PIA to parse and post when in console.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

Good to know about the support. I have a few clients I am still eating crow on to keep running. If anything financially viable comes along i'll reconsider how I am supporting the new clients.

One thing's for sure, monthly service contracts are mandatory for this now.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

more goodies from various debug files:

Code: Select all

11/10/08 14:07:40.569658 zms[9380].INF-zm_debug.c/304 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.09380]
11/10/08 14:07:40.569939 zms[9380].DB1-zms.cpp/84 [Query: mode=jpeg&monitor=5&scale=100&maxfps=5&rand=1226344060]
11/10/08 14:07:40.570199 zms[9380].DB1-zm_monitor.cpp/1899 [Got 1 monitors]
11/10/08 14:07:40.574339 zms[9380].DB1-zm_monitor.cpp/253 [monitor purpose=0]
11/10/08 14:07:40.574390 zms[9380].DB1-zm_monitor.cpp/260 [shm.size=18433028]
11/10/08 14:07:40.582569 zms[9380].ERR-zm_monitor.cpp/308 [Shared memory not initialised by capture daemon]
and

Code: Select all


11/10/08 14:07:40.515189 zmu[9377].INF-zm_debug.c/304 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.09377]
11/10/08 14:07:40.515640 zmu[9377].DB1-zm_monitor.cpp/1899 [Got 1 monitors]
11/10/08 14:07:40.519682 zmu[9377].DB1-zm_monitor.cpp/253 [monitor purpose=0]
11/10/08 14:07:40.519727 zmu[9377].DB1-zm_monitor.cpp/260 [shm.size=18433028]
11/10/08 14:07:40.519873 zmu[9377].DB1-zm_zone.cpp/49 [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$
11/10/08 14:07:40.532285 zmu[9377].DB1-zm_monitor.cpp/329 [Monitor Back has function 2]
11/10/08 14:07:40.532329 zmu[9377].DB1-zm_monitor.cpp/330 [Monitor Back LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
11/10/08 14:07:40.532341 zmu[9377].DB1-zm_monitor.cpp/331 [Monitor Back IBC = 20, WUC = 5, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
11/10/08 14:07:40.532362 zmu[9377].DB1-zm_monitor.cpp/2036 [Loaded monitor 5(Back), 0 zones]

[/code]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

So 404 means that ZM is talking to the camera but the path given was not found by the camera.

Check your path for that cam and make sure you have no typos.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

To have it dump in one file just remove the "+" at the end of the debug log settings.
Click the little "?" on each description to get a bit more detail on each feature.
paperstreet
Posts: 82
Joined: Thu May 18, 2006 7:45 pm

Post by paperstreet »

ok thanks for the info on the debug file

as far as the camera path goes I have tested it and it works outside of zoneminder



/__live.jpg?&&Z3Vlc3Q=&YnIxY2s=


Testing that with the actual IP of the location shows me a static image.

Unfortunately this box is a reinstall. The original install died after *trying* to update to 1.23 as the Lib Serialization stuff never quite worked on this box. I could get the filter perl script to run by itself, but it never actually kept the box's /var partition from filling up.

I ended up reinstalling Ubuntu to the latest LTS and installing from packages, hoping it would be a sure fire way to have a stable system... (BTW ffmpeg and perl-suid for some reason didn't get installed with the .deb package. I guess these arten't mandatory dependencies, even though both are stated to be used)
Locked