ZM crashes with latest update - ZM_AUDIT_MIN_AGE is missing
Posted: Wed Jul 01, 2015 2:22 am
I just updated with apt-get dist-upgrade and my Zoneminder died. I figured out that it was because the config file was missing a value for "ZM_AUDIT_MIN_AGE". It looks like that variable was recently added in code (a5fed0352457aebbee05fcd8f76312410e28d480) but the required value wasn't automatically added to the config files during the update, so everyone's ZM will probably break like mine when they update.
Errors show in the ZM log:
1) Config mismatch, expected 220 items, read 219. Try running 'zmupdate.pl -f' to reload config.
2) ZM_AUDIT_MIN_AGE is not set in config.
How to fix your ZM:
1) Add the following two lines to the bottom of your config file (I think it was /etc/zm.conf):
# The minimum age in seconds event data must be in order to be deleted.
ZM_AUDIT_MIN_AGE = 86400
2) run 'zmupdate.pl -f' to reload config
3) restart ZM service
Errors show in the ZM log:
1) Config mismatch, expected 220 items, read 219. Try running 'zmupdate.pl -f' to reload config.
2) ZM_AUDIT_MIN_AGE is not set in config.
How to fix your ZM:
1) Add the following two lines to the bottom of your config file (I think it was /etc/zm.conf):
# The minimum age in seconds event data must be in order to be deleted.
ZM_AUDIT_MIN_AGE = 86400
2) run 'zmupdate.pl -f' to reload config
3) restart ZM service