ES 6.0

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
cafftab
Posts: 48
Joined: Mon May 06, 2019 6:03 pm

ES 6.0

Post by cafftab »

When I upgraded to this version my remote server stopped working had to downgrade to get it back working, ids anyone else getting these errors, or is it just something I done wrong?

08/17/20 20:55:16 zmesdetect_m1[28692] ERR zm_detect.py:389 [Error executing remote API: name 'url' is not defined]
08/17/20 20:55:17 zmesdetect_m1[28692] INF zm_detect.py:391 [Falling back to local execution...]
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ES 6.0

Post by asker »

1. check your config carefully
2. Make sure you have read breaking.md completely
3. Post debug logs (not just the last 3 lines)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
cafftab
Posts: 48
Joined: Mon May 06, 2019 6:03 pm

Re: ES 6.0

Post by cafftab »

The default ES debug level doesn't seem to give much info. What is the range of debug levels or what level to you prefer?

I think when I first upgraded to 5.16 things didn't go right I think I went from 5.11 I guess I skipped a few updates. For example the migrated_objectconfig.ini file wasn't created so maybe needed settings were not present. It wasn't until I upgraded to ES 6 that I could see some of the breaking changes you refereed to and the migrated setting ini. Since I still couldn't get the MLAPI working I downgraded back to 5.16 and used the setting information I was able to learn during my failed upgrade attempt. Now at 5.16 everything seems to be working including alpr and face detection including on the remote. In order to give you more debug lines I would have try to upgrade to ES 6 again (rainy day project). That's why I only included three lines, no excuse I should have known better.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ES 6.0

Post by asker »

cafftab wrote: Wed Aug 19, 2020 4:32 pm The default ES debug level doesn't seem to give much info. What is the range of debug levels or what level to you prefer?
The default level of debug in ES is 2. That is sufficient. If you are not seeing debug logs, you have probably not read or set up debug logging properly as documented in https://zmeventnotification.readthedocs ... ks-logging. You may want to check that first.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
cafftab
Posts: 48
Joined: Mon May 06, 2019 6:03 pm

Re: ES 6.0

Post by cafftab »

Tried the update to 6.0 again and got the same error. this is the log if the fall back server isn't enabled.

08/20/20 20:35:46 zmesdetect_m9[16376] INF zm_detect.py:186 [---------| hook version: 0.1.24, ES version: 6.0.0 , OpenCV version: 4.1.2|------------]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG1 utils.py:297 [secret filename: /etc/zm/secrets.ini]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !ZM_PORTAL]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !ZM_API_PORTAL]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !ZM_USER]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !ZM_PASSWORD]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !ML_USER]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !ML_PASSWORD]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:270 [Secret token found in config: !PLATEREC_ALPR_KEY]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG1 utils.py:320 [strict SSL cert checking is on...]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:382 [key [object_config] is '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg' after substitution]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:382 [key [object_weights] is '/var/lib/zmeventnotification/models/yolov3/yolov3.weights' after substitution]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:382 [key [object_labels] is '/var/lib/zmeventnotification/models/yolov3/coco.names' after substitution]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:382 [key [known_images_path] is '/var/lib/zmeventnotification/known_faces' after substitution]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG2 utils.py:382 [key [unknown_images_path] is '/var/lib/zmeventnotification/unknown_faces' after substitution]
08/20/20 20:35:46 zmesdetect_m9[16376] INF zm_detect.py:219 [Importing remote shim classes for Object/Face]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG1 utils.py:173 [Trying to download https://centinelview.chickenkiller.com/ ... &password=*****]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG1 utils.py:192 [Trying to download https://centinelview.chickenkiller.com/ ... &password=*****]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG1 zm_detect.py:272 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1920, 0), (1920, 1080), (0, 1080)]}]]
08/20/20 20:35:46 zmesdetect_m9[16376] DBG1 zm_detect.py:275 [resizing to 1200 before analysis...]
08/20/20 20:35:47 zmesdetect_m9[16376] DBG2 utils.py:38 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (1200, 0), (1200, 675), (0, 675)]}]]
08/20/20 20:35:47 zmesdetect_m9[16376] DBG1 zm_detect.py:296 [User ALPR if vehicle found: True]
08/20/20 20:35:47 zmesdetect_m9[16376] DBG2 zm_detect.py:348 [using g.config['object_detection_pattern']=(person|car|motorbike|bus|truck|boat)]
08/20/20 20:35:47 zmesdetect_m9[16376] DBG1 zm_detect.py:381 [Using model: object with /var/lib/zmeventnotification/images/34573-alarm.jpg]
08/20/20 20:35:47 zmesdetect_m9[16376] INF zm_detect.py:41 [Detecting using remote API Gateway http://192.168.0.193:5000/api/v1]
08/20/20 20:35:47 zmesdetect_m9[16376] DBG2 zm_detect.py:49 [Found token file, checking if token has not expired]
08/20/20 20:35:47 zmesdetect_m9[16376] DBG1 zm_detect.py:64 [Access token is valid for 349 more seconds]
08/20/20 20:35:47 zmesdetect_m9[16376] ERR zm_detect.py:389 [Error executing remote API: name 'url' is not defined]
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ES 6.0

Post by asker »

Thanks - this was a typo on my side.
Please update and try.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
cafftab
Posts: 48
Joined: Mon May 06, 2019 6:03 pm

Re: ES 6.0

Post by cafftab »

That fixed it, the remote seems to be working as before the upgrade however in my zmesdetect log I see the following. Any Ideas?

08/21/20 08:45:31 zmesdetect_m9[22642] DBG1 zm_detect.py:381 [Using model: object with /var/lib/zmeventnotification/images/34603-alarm.jpg]
08/21/20 08:45:31 zmesdetect_m9[22642] INF zm_detect.py:41 [Detecting using remote API Gateway http://192.168.0.193:5000/api/v1]
08/21/20 08:45:31 zmesdetect_m9[22642] DBG2 zm_detect.py:49 [Found token file, checking if token has not expired]
08/21/20 08:45:31 zmesdetect_m9[22642] DBG1 zm_detect.py:64 [Access token is valid for 231 more seconds]
08/21/20 08:45:31 zmesdetect_m9[22642] DBG2 zm_detect.py:101 [Invoking mlapi with url:http://192.168.0.193:5000/api/v1/detect ... ype=object, params={'delete': True}, files={'file': ('image.jpg', b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00\x02\x01\x01\x01\x01\x01\x02\x01\x01\x01\x02\x02\x02\x02\x02\x04\x03\x02\x02\x02\x02\x05\x04\x04\x03\x04\x06\x05\x06\x06\x06\x05\x06\x06\x06\x07\t\x08\x06\x07\t\x07\x06\x06\x08\x0b\x08\t\n\n\n\n\n\x06\x08\x0b\x0c\x0b\n\x0c\t\n\n\n\xff\xdb\x00C\x01\x02\x02\x02\x02\x02\x02\x05\x03\x03\x05\n\x07\x06\x07\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\xff\xc0\x00\x11\x08\x02\xa3\x04\xb0\x03\x01"\x00\x02\x11\x01\x03\x11\x01\xff\xc4\x00\x1f\x00\x00\x01\x05\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\xff\xc4\x00\xb5\x10\x00\x02\x01\x03\x03\x02\x04\x03\x05\x05\x04\x04\x00\x00\x01}\x01\x02\x03\x00\x04\x11\x05\x12!1A\x06\x13Qa\x07"q\x142\x81\x91\xa1\x08#B\xb1\xc1\x15R\xd1\xf0$3br\x82\t\n\x16\x17\x18\x19\x1a%&\'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\x83\x84\x85\x86\x87\x88\x89\x8a\x92\x93\x94\x95\x96\x97\x98\x99\x9a\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xff\xc4\x00\x1f\x01\x00\x03\x01\x01\x01\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\xff\xc4\x00\xb5\x11\x00\x02\x01\x02\x04\x04\x03\x04\x07\x05\x04\x04\x00\x01\x02w\x00\x01\x02\x03\x11\x04\x05!1\x06\x12AQ\x07aq\x13"2\x81\x08\x14B\x91\xa1\xb1\xc1\t#3R\xf0\x15br\xd1\n\x16$4\xe1%\xf1\x17\x18\x19\x1a&\'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz\x82\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x81\xfb\x18\xea\x96VW\x1a\xcc\xfa\x84\xcb\xa2iw\x17\x0b\x1c\x86\xe3I\xf2\x94=\xcd\xd8\x95\x97\xc9\xb5\xbe-\xf3\xac\x99\x95#I\x11%\x95\x96o\x14i\xba\xff\x00\xc3\x8b\x98\xbc9\xe2\x1f\x08^Y^HB\xcbmr\xaa\xa4\xbe\xd5!p\x18\x9c\xe0\x8e8
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ES 6.0

Post by asker »

fixed.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
cafftab
Posts: 48
Joined: Mon May 06, 2019 6:03 pm

Re: ES 6.0

Post by cafftab »

Perfect.
Post Reply