ES update fails

Discussion topics related to mobile applications for ZoneMinder
Post Reply
SkippyDo
Posts: 196
Joined: Mon Nov 20, 2017 6:49 pm

ES update fails

Post by SkippyDo » Sun Oct 25, 2020 1:11 am

I'd already updated to version 6.0 some time back and everything worked fine. Right around the time that 6.0.2(?) was released I stopped getting notifications. There's lots of warnings about having to upgrade to 6.0 because older versions are going to break, nothing seemed to indicate that 6.0.2 was going to break 6.0. I attempted to install 6.0.2 and get the following (I've commented out the installation of the pattern matching utilities [yolo] because I"m not using them, I'm ONLY using notification):

Code: Select all

----------- Configured Values ----------------------------
Your webserver user seems to be www-data
Your webserver group seems to be www-data
wget is /usr/bin/wget
installer software is /usr/bin/apt-get
Install Event Server: prompt
Install Event Server config: prompt
Install Hooks: prompt
Install Hooks config: prompt
Download and install models (if needed): yes

The Event Server will be installed to /usr/bin
The Event Server config will be installed to /etc/zm
Hooks will be installed to /var/lib/zmeventnotification sub-folders
Hook config files will be installed to /etc/zm

Models that will be checked/installed:
(Note, if you have already downloaded a model, it will not be deleted)
Yolo V3 (INSTALL_YOLOV3): no
TinyYolo V3 (INSTALL_TINYYOLOV3): no
Yolo V4 (INSTALL_YOLOV4): no
Tiny Yolo V4 (INSTALL_TINYYOLOV4): no
Google Coral Edge TPU (INSTALL_CORAL_EDGETPU): no

If any of this looks wrong, please hit Ctrl+C and edit the variables in this script...

Install Event Server [y/N]:y
*** Installing ES ***
Success:Completed, but you will still have to install ES dependencies as per https://zmeventnotification.readthedocs.io/en/latest/guides/install.html#install-dependencies

Install Event Server Config [y/N]:y
Replacing ES config & rules file
Success:config copied
Replacing ES rules file
Success:rules copied
====> Remember to fill in the right values in the config files, or your system won't work! <=============

Install Hook [y/N]:N
Skipping Hook install

Install Hook Config [y/N]:N
Skipping Hook config install

Creating a migrated objectconfig if required
Current version of file is unknown
-------------------------------------------------
Migrating from unknown to 1.0

Doing a sanity check, cpu_max_lock_wait should not be there...

There is an error in your config. While upgrading to version:1.0 
I found a key (cpu_max_lock_wait) that should not have been there. 
This usually means when you last upgraded, your version attribute
was not upgraded for some reason. To be safe, this script will not
upgrade the script till you fix the potential issues
            
*** Please remember to start the Event Server after this update ***

WARNING:THIS IS A BREAKING CHANGE RELEASE. THINGS WILL NOT WORK TILL YOU FOLLOW https://zmeventnotification.readthedocs.io/en/latest/guides/breaking.html#version-5-16-0-onwards

I even deleted my zmeventnotification.ini in case there was something in it that was causing confusion. I had ZERO issues upgrading to 6.0. Kind of seems that there's confusion in my NOT having the hooks stuff being used (no check for that).

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: ES update fails

Post by asker » Sun Oct 25, 2020 1:21 am

When you updated to Es 6.0 you did not update the version. It should be 1.0
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

SkippyDo
Posts: 196
Joined: Mon Nov 20, 2017 6:49 pm

Re: ES update fails

Post by SkippyDo » Sun Oct 25, 2020 1:29 am

Thanks for the quick reply.

There's some version number I have to manually update? What document calls this out? (sorry if I missed; sometimes one's eyes start to bleed hoping around through reams of documentation)

Magic919
Posts: 224
Joined: Wed Sep 18, 2013 6:56 am

Re: ES update fails

Post by Magic919 » Sun Oct 25, 2020 8:31 am

It’s pretty well covered on the site. If you went to 6 a bit early, like me, you can end up with a config file without a version number in it.

You can use the provided script or clean up the config by hand. Try following the advice just given first.

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: ES update fails

Post by asker » Sun Oct 25, 2020 9:23 pm

I do fear this version tag will be a pain for me later.
I suspect many people will just hand tweak their configs and never update the version.
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

Magic919
Posts: 224
Joined: Wed Sep 18, 2013 6:56 am

Re: ES update fails

Post by Magic919 » Mon Oct 26, 2020 1:20 pm

As a dumb user, I'd probably wish for it to have 3 config files -

secrets.ini - This stays as is.
objectconfig.ini
zmes.ini

Let's say zmes.ini is mine and I put my specific or custom set-up in there.

objectconfig.ini would have all the remaining stuff that has to change with the ES version. It would, for example, reference the paths to ALL the models in there and my zmes.ini would select YOLO or TPU as needed.

The aim would be any newer version of ES would be able to ship with an objectconfig.ini with all the suppporting config. Any NEW features would be off or defaulted at the whim of the developer :-)

I expect this is easier said than done. Just my 2p

SkippyDo
Posts: 196
Joined: Mon Nov 20, 2017 6:49 pm

Re: ES update fails

Post by SkippyDo » Mon Oct 26, 2020 5:30 pm

Blew away my existing zmeventnotification.ini file and reran the install w/o issue. Edited to disable hooks. All works as I require now. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest