zmeventnotification hook script returned with text: exit:1

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
kozmi92
Posts: 6
Joined: Thu Jul 04, 2019 1:59 pm

zmeventnotification hook script returned with text: exit:1

Post by kozmi92 »

Hi guys,
I'm experimenting with zmeventnotification server and zmninja desktop application. I setup the zmeventnotification successfully and I get also notifications for events in zmninja desktop. Now I'm trying to build face detection by activation of hook script (/usr/bin/detect_wrapper.sh) in the zmeventnotification.ini configuration file.
When I trigger an event to test the detection results I don't get any notification in my zmninja desktop application and I think that is because the hook exit status is 1 and not 0 (hook script returned with text: exit:1) as shown in the log below.
Can someone please help to fix this ?

Thanks in advance for your help !
Kind regards
Kozmi

Jul 12 11:53:25 deb9zimnd zmeventnotification[4523]: INF [New event 2797 reported for Monitor:1 (Name:BW_cam-mdoor) Motion All]
Jul 12 11:53:25 deb9zimnd zmeventnotification[4552]: INF [Forking process:4552 to handle 1 alarms]
Jul 12 11:53:25 deb9zimnd zmeventnotification[4552]: INF [processAlarms: EID:2797 Monitor:BW_cam-mdoor (id):1 cause:Motion All]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284559]
Jul 12 11:53:26 deb9zimnd zmeventnotification[4552]: INF [Adding event path:/var/cache/zoneminder/events/1/2019-07-12/2797 to hook for image storage]
Jul 12 11:53:26 deb9zimnd zmeventnotification[4552]: INF [Invoking hook:'/usr/bin/detect_wrapper.sh' 2797 1 "BW_cam-mdoor" "Motion All" "/var/cache/zoneminder/events/1/2019-07-12/2797"]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284560]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284561]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284562]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: INFO [---------| app version: 3.3.4 |------------]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: INFO [Log level set to:debug]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [allowing self-signed certs to work...]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:yolo_type with value:tiny]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:detect_pattern with value:(person)]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:detection_mode with value:all]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:models with value:yolo,hog,face]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:frame_id with value:snapshot]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:resize with value:600]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:face_model with value:hog]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [[monitor-1] overrides key:wait with value:3]
Jul 12 11:53:26 deb9zimnd detect:[4556][monitor_m1]: DEBUG [sleeping for 3 seconds before downloading]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284563]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284564]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284565]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284566]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284567]
Jul 12 11:53:26 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284568]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284569]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284570]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284571]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284572]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284573]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284574]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284575]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284576]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284577]
Jul 12 11:53:27 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284578]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284579]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284580]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284581]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284582]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284583]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284584]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284585]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284586]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284587]
Jul 12 11:53:28 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284588]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284589]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284590]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284591]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Trying to download http://192.168.1.10/zm/index.php?view=i ... &password=*****]
Jul 12 11:53:29 deb9zimnd web_php[4470]: INF [Login successful for user "admin"]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (640, 0), (640, 360), (0, 360)]}]]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [resizing to 600 before analysis...]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284592]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [resized polygons x=0.9375/y=0.9361111111111111: [{'name': 'full_image', 'value': [(0, 0), (600, 0), (600, 337), (0, 337)]}]]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [User ALPR if vehicle found: False]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Using model: yolo]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [|--> model:yolo init took: 9.8e-05s]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Using model: yolo with /var/lib/zmeventnotification/images/2797.jpg]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Initializing Yolo]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [config:/var/lib/zmeventnotification/models/tinyyolo/yolov3-tiny.cfg, weights:/var/lib/zmeventnotification/models/tinyyolo/yolov3-tiny.weights]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284593]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284594]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [|--> model:yolo detection took: 0.272489s]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [ALPR not in use, no need for look aheads in processing]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Using model: hog]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Initializing HOG]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [|--> model:hog init took: 0.004808s]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Using model: hog with /var/lib/zmeventnotification/images/2797.jpg]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284595]
Jul 12 11:53:29 deb9zimnd zmc_m1[668]: INF [zmc_m1] [BW_cam-mdoor: images:284600 - Capturing at 8.33 fps, capturing bandwidth 41641bytes/sec]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284596]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284597]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [|--> model:hog detection took: 0.259222s]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [ALPR not in use, no need for look aheads in processing]
Jul 12 11:53:29 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Using model: face]
Jul 12 11:53:29 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284598]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284599]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [BW_cam-mdoor: 284600 - Analysing at 7.69 fps]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284600]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284601]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284602]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284603]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284604]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284605]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284606]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284607]
Jul 12 11:53:30 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284608]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284609]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284610]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284611]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284612]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284613]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284614]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Initializing face recognition with model:hog upsample:1, jitters:1]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [face encoding file found, using that. If you want to add new images, remove faces.pickle]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [|--> model:face init took: 1.655874s]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Using model: face with /var/lib/zmeventnotification/images/2797.jpg]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284615]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [|--> model:face detection took: 0.184167s]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [Appending known faces to filter list]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [ALPR not in use, no need for look aheads in processing]
Jul 12 11:53:31 deb9zimnd detect:[4556][monitor_m1]: DEBUG [No patterns found using any models in all files]
Jul 12 11:53:31 deb9zimnd zma_m1[673]: INF [zma_m1] [Got alarm centre at -1,-1, at count 284616]
Jul 12 11:53:31 deb9zimnd zmeventnotification[4552]: INF [For Monitor:1 event:2797, hook script returned with text: exit:1]
Jul 12 11:53:31 deb9zimnd zmeventnotification[4552]: INF [Ending process:4552 to handle alarms]
Post Reply