This problem was solved by:
1.) removing all cameras from the zoneminder console
2.) deleting all events, images etc from the /var/www/html/zm/events dir 3.) dropping my zm mysql database.
4.) Re-creating the zm mysql database and granting appropriate permissions
5.) importing the zm_create.sql tables back into the newly created db
6.) Re-adding cameras and setting modect or mocord back on
I'm assuming my db must have gotten corrupt somehow but this seemed to take care of it.
-----------------------------------------------------------------
Original post below
-----------------------------------------------------------------
I'm running CentOS 5.2 & Zoneminder 1.24.1.
If I use all my cams on Monitor they work fine...
Cams are generic analog BNC cameras, connected to a PV-183 capture card obtained from Bluecherry.
If I put them on modect or mocord, my logs fill with these errors:
03/31/2009 21:55:29.876118 zmdc[14877].INF ['zma -m 16' starting at 09/03/31 21:55:29, pid = 15362]
03/31/2009 21:55:31.842874 zmdc[14877].ERR ['zma -m 13' exited abnormally, exit status 11]
03/31/2009 21:55:32.123850 zmdc[14877].ERR ['zma -m 14' exited abnormally, exit status 11]
03/31/2009 21:55:32.375015 zmdc[14877].ERR ['zma -m 16' exited abnormally, exit status 11]
03/31/2009 21:55:40.105429 zmdc[14877].INF ['zma -m 13' starting at 09/03/31 21:55:40, pid = 15367]
03/31/2009 21:55:40.371415 zmdc[14877].INF ['zma -m 14' starting at 09/03/31 21:55:40, pid = 15371]
03/31/2009 21:55:40.639404 zmdc[14877].INF ['zma -m 16' starting at 09/03/31 21:55:40, pid = 15375]
03/31/2009 21:55:42.637629 zmdc[14877].ERR ['zma -m 13' exited abnormally, exit status 11]
03/31/2009 21:55:42.931215 zmdc[14877].ERR ['zma -m 14' exited abnormally, exit status 11]
Once I changed those cams back to Monitor, the errors stop.
What would cause that? Any ideas?
I followed instructions exactly from the Wiki for CentOS.
I get live feed fine if I click on a camera name but cannot get any sort of motion detection to work. No events have ever shown up (I'm assuming because of those errors in the logs every time I turn on modect or mocord).
Any help is greatly appreciated.
SOLVED!! zma exiting abnormally if using modect or mocord
-
- Posts: 46
- Joined: Wed Mar 18, 2009 8:38 am
SOLVED!! zma exiting abnormally if using modect or mocord
Last edited by limitlessent on Wed Apr 01, 2009 5:16 pm, edited 1 time in total.
-
- Posts: 46
- Joined: Wed Mar 18, 2009 8:38 am
Here's what I got:
03/31/09 23:59:22.961046 zma_m16[16432].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.16432]
03/31/09 23:59:22.961741 zma_m16[16432].DB1-zm_monitor.cpp/2260 [Got 1 monitors]
03/31/09 23:59:22.963745 zma_m16[16432].DB1-zm_monitor.cpp/338 [monitor purpose=2]
03/31/09 23:59:22.963782 zma_m16[16432].DB1-zm_monitor.cpp/345 [mem.size=36865192]
03/31/09 23:59:22.963894 zma_m16[16432].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
03/31/09 23:59:22.975065 zma_m16[16432].DB1-zm_monitor.cpp/458 [Monitor Front_Walkway has function 3]
03/31/09 23:59:22.975109 zma_m16[16432].DB1-zm_monitor.cpp/459 [Monitor Front_Walkway LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
03/31/09 23:59:22.975132 zma_m16[16432].DB1-zm_monitor.cpp/460 [Monitor Front_Walkway IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
03/31/09 23:59:22.976259 zma_m16[16432].DB1-zm_monitor.cpp/1583 [Reloading linked monitors for monitor Front_Walkway, '10,11,12,13,14,15,17']
03/31/09 23:59:22.976304 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 10]
03/31/09 23:59:22.976327 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 11]
03/31/09 23:59:22.976350 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 12]
03/31/09 23:59:22.976384 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 13]
03/31/09 23:59:22.976406 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 14]
03/31/09 23:59:22.976429 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 15]
03/31/09 23:59:22.976451 zma_m16[16432].DB3-zm_monitor.cpp/1624 [Found linked monitor id 17]
03/31/09 23:59:22.976476 zma_m16[16432].DB1-zm_monitor.cpp/1646 [Linking to 7 monitors]
03/31/09 23:59:22.976551 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 10]
03/31/09 23:59:22.976893 zma_m16[16432].DB1-zm_monitor.cpp/1676 [Can't link to monitor 10, invalid id, function or not enabled]
03/31/09 23:59:22.976923 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 11]
03/31/09 23:59:22.977093 zma_m16[16432].DB1-zm_monitor.cpp/1676 [Can't link to monitor 11, invalid id, function or not enabled]
03/31/09 23:59:22.977158 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 12]
03/31/09 23:59:22.977317 zma_m16[16432].DB1-zm_monitor.cpp/1676 [Can't link to monitor 12, invalid id, function or not enabled]
03/31/09 23:59:22.977347 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 13]
03/31/09 23:59:22.977538 zma_m16[16432].DB1-zm_monitor.cpp/1671 [Linking to monitor 13]
03/31/09 23:59:22.977571 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 14]
03/31/09 23:59:22.977744 zma_m16[16432].DB1-zm_monitor.cpp/1671 [Linking to monitor 14]
03/31/09 23:59:22.977772 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 15]
03/31/09 23:59:22.977932 zma_m16[16432].DB1-zm_monitor.cpp/1676 [Can't link to monitor 15, invalid id, function or not enabled]
03/31/09 23:59:22.977962 zma_m16[16432].DB1-zm_monitor.cpp/1652 [Checking linked monitor 17]
03/31/09 23:59:22.978119 zma_m16[16432].DB1-zm_monitor.cpp/1676 [Can't link to monitor 17, invalid id, function or not enabled]
03/31/09 23:59:22.978532 zma_m16[16432].DB1-zm_zone.cpp/889 [Got 1 zones for monitor Front_Walkway]
03/31/09 23:59:22.978567 zma_m16[16432].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 639,0 639,479 0,479]
03/31/09 23:59:22.978595 zma_m16[16432].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 639,0 639,479 0,479']
03/31/09 23:59:22.978621 zma_m16[16432].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
03/31/09 23:59:22.978644 zma_m16[16432].DB3-zm_zone.cpp/796 [Got coordinate 639,0 from polygon string]
03/31/09 23:59:22.978668 zma_m16[16432].DB3-zm_zone.cpp/796 [Got coordinate 639,479 from polygon string]
03/31/09 23:59:22.978691 zma_m16[16432].DB3-zm_zone.cpp/796 [Got coordinate 0,479 from polygon string]
03/31/09 23:59:22.978718 zma_m16[16432].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
03/31/09 23:59:22.978793 zma_m16[16432].DB1-zm_zone.cpp/50 [Initialised zone 16/All - 4 - 640x480 - Rgb:ff0000, CM:3, MnAT:40, MxAT:0, MnAP:49152, MxAP:0, FB:5x5, MnFP:36864, MxFP:0, MnBS:30720, MxBS:0, MnB:1, MxB:0, OF: 0]
03/31/09 23:59:22.988044 zma_m16[16432].DB1-zm_monitor.cpp/2457 [Loaded monitor 16(Front_Walkway), 1 zones]
03/31/09 23:59:22.988080 zma_m16[16432].INF-zma.cpp/99 [In mode 3/1, warming up]
03/31/09 23:59:22.988172 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:21, WI: 28, PF = 7, RM = 33, Step = 2]
03/31/09 23:59:22.991105 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:23, WI: 28, PF = 5, RM = 35, Step = 2]
03/31/09 23:59:22.993624 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:25, WI: 28, PF = 3, RM = 37, Step = 1]
03/31/09 23:59:22.996205 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:26, WI: 28, PF = 2, RM = 38, Step = 1]
03/31/09 23:59:22.998716 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:27, WI: 28, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.039797 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:28, WI: 29, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.185425 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:29, WI: 30, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.330388 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:30, WI: 31, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.475374 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:31, WI: 32, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.620364 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:32, WI: 33, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.765359 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:33, WI: 34, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:23.910371 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:34, WI: 35, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.055332 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:35, WI: 36, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.199302 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:36, WI: 37, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.344296 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:37, WI: 38, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.488282 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:38, WI: 39, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.633282 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:39, WI: 0, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.778176 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:0, WI: 1, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:24.923148 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:1, WI: 2, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.068157 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:2, WI: 3, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.213230 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:3, WI: 4, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.358223 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:4, WI: 5, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.503204 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:5, WI: 6, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.648193 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:6, WI: 7, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.793113 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:7, WI: 8, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:25.938105 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:8, WI: 9, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:26.083080 zma_m16[16432].DB4-zm_monitor.cpp/1051 [RI:9, WI: 10, PF = 1, RM = 39, Step = 1]
03/31/09 23:59:26.087617 zma_m16[16432].DB3-zm_monitor.cpp/2673 [Checking preclusive zone All]
03/31/09 23:59:26.087991 zma_m16[16432].DB4-zm_zone.cpp/150 [Checking alarms for zone 16/All in lines 0 -> 479]
03/31/09 23:59:26.088021 zma_m16[16432].DB5-zm_zone.cpp/152 [Checking for alarmed pixels]
03/31/09 23:59:26.088833 zma_m16[16432].DB5-zm_zone.cpp/214 [Got 3404 alarmed pixels, need 49152 -> 0, avg pixel diff 61]
03/31/09 23:59:26.088872 zma_m16[16432].DB1-zm_monitor.cpp/83 [link.mem.size=872]
03/31/09 23:59:26.088924 zma_m16[16432].DB3-zm_monitor.cpp/125 [Can't shmget link memory: No such file or directory]
03/31/09 23:59:26.088969 zma_m16[16432].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
03/31/09 23:59:26.089034 zma_m16[16432].ERR-zm_signal.cpp/84 [Signal address is 0x44, from 0x8075bd7]
03/31/09 23:59:26.089438 zma_m16[16432].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zma [0x8075bd7]]
03/31/09 23:59:26.089503 zma_m16[16432].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zma [0x8075bd7]]
03/31/09 23:59:26.089546 zma_m16[16432].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zma [0x804cb2a]]
03/31/09 23:59:26.089587 zma_m16[16432].ERR-zm_signal.cpp/122 [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x61edec]]
03/31/09 23:59:26.089628 zma_m16[16432].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zma(__gxx_personality_v0+0x3f9) [0x804c7d1]]
03/31/09 23:59:26.089670 zma_m16[16432].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
03/31/09 23:59:26.089743 zma_m16[16432].INF-zm_signal.cpp/126 [addr2line -e /usr/local/bin/zma(__gxx_personality_v0+0x3f9) 0x8075bd7 0x8075bd7 0x804cb2a 0x61edec 0x804c7d1]
-
- Posts: 46
- Joined: Wed Mar 18, 2009 8:38 am
Loads and loads of this:
but not errors that I see...04/01/09 02:06:58.462708 zmc_dvideo7[18513].DB2-zm_local_camera.cpp/1186 [Pre-ca
pturing]
04/01/09 02:06:58.462735 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1192 [Captur
ing]
04/01/09 02:06:58.462758 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1247 [Captur
ing 1 frames]
04/01/09 02:06:58.462790 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1250 [Syncin
g frame 5]
04/01/09 02:06:58.462843 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1268 [Captur
ed 5 for channel 0]
04/01/09 02:06:58.462865 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1273 [Doing
format conversion]
04/01/09 02:06:58.463630 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1579 [Assign
ing image]
04/01/09 02:06:58.465113 zmc_dvideo7[18513].DB2-zm_local_camera.cpp/1587 [Post-c
apturing]
04/01/09 02:06:58.465150 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1645 [Requeu
eing frame 5]
04/01/09 02:06:58.606697 zmc_dvideo7[18513].DB2-zm_local_camera.cpp/1186 [Pre-ca
pturing]
04/01/09 02:06:58.606724 zmc_dvideo7[18513].DB3-zm_local_camera.cpp/1192 [Captur
ing]
-
- Posts: 46
- Joined: Wed Mar 18, 2009 8:38 am
Ok... I deleted my mysql db and totally started over.
I re-created the db and imported the initial zm_create.sql into it.
I've added 3 cameras back and set them for modect.
So far the only errors I see are in zmdc.log... they appear to just be warnings but how do I fix these:
04/01/2009 12:10:14.066928 zmdc[23010].WAR [Can't find process with command of 'zma -m']
04/01/2009 12:10:32.034708 zmdc[23010].WAR [Can't find process with command of 'zmc -d /dev/video2']
04/01/2009 12:10:32.522552 zmdc[23010].WAR [Can't find process with command of 'zma -m 3']
I re-created the db and imported the initial zm_create.sql into it.
I've added 3 cameras back and set them for modect.
So far the only errors I see are in zmdc.log... they appear to just be warnings but how do I fix these:
04/01/2009 12:10:14.066928 zmdc[23010].WAR [Can't find process with command of 'zma -m']
04/01/2009 12:10:32.034708 zmdc[23010].WAR [Can't find process with command of 'zmc -d /dev/video2']
04/01/2009 12:10:32.522552 zmdc[23010].WAR [Can't find process with command of 'zma -m 3']