From 16dcc92358f88c49eb79a28dd4c14e19462cdc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mil=C3=A1n=20Figueredo?= Date: Fri, 1 Nov 2024 17:28:00 +0100 Subject: [PATCH 1/2] Added pyzm_overrides warning in case ZoneMinder connects to database using UNIX socket --- hook/objectconfig.ini | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hook/objectconfig.ini b/hook/objectconfig.ini index 9b697408..840075c2 100644 --- a/hook/objectconfig.ini +++ b/hook/objectconfig.ini @@ -27,7 +27,17 @@ cpu_max_lock_wait=100 tpu_max_lock_wait=100 gpu_max_lock_wait=100 - +# If your ZoneMinder setup is using UNIX socket to connect +# a local database and in your zm.conf there is a line that +# looks like this one: +# ZM_DB_HOST=localhost:/var/run/mysqld/mysqld.sock +# Event Server won't play nice with it and zm_detect will fail. +# Uncomment the following pyzm_overrides and properly populate +# dbhost entry with hostname:port to get zm_detect working. +# +#pyzm_overrides={'log_level_debug':5,'dbhost':'localhost:3386'} +# +# Use the following other configurations otherwise: #pyzm_overrides={'conf_path':'/etc/zm','log_level_debug':0} pyzm_overrides={'log_level_debug':5} From 510323850ab7e14c297d5b9dbc3a11ef3c2f44fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mil=C3=A1n=20Figueredo?= Date: Fri, 1 Nov 2024 17:39:25 +0100 Subject: [PATCH 2/2] Fixed typo in MySQL default TCP port --- hook/objectconfig.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook/objectconfig.ini b/hook/objectconfig.ini index 840075c2..4ab71832 100644 --- a/hook/objectconfig.ini +++ b/hook/objectconfig.ini @@ -35,7 +35,7 @@ gpu_max_lock_wait=100 # Uncomment the following pyzm_overrides and properly populate # dbhost entry with hostname:port to get zm_detect working. # -#pyzm_overrides={'log_level_debug':5,'dbhost':'localhost:3386'} +#pyzm_overrides={'log_level_debug':5,'dbhost':'localhost:3306'} # # Use the following other configurations otherwise: #pyzm_overrides={'conf_path':'/etc/zm','log_level_debug':0}