Code: Select all
jens@jetson-zm:~$ sudo -u www-data '/var/lib/zmeventnotification/bin/zm_detect.py' -e 115 -m 2 --config /etc/zm/zm.conf
Unrecoverable error:File contains no section headers.
file: '/etc/zm/zm.conf', line: 15
'ZM_PATH_DATA=/usr/share/zoneminder\n' Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 556, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 258, in main_handler
utils.get_pyzm_config(args)
File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/utils.py", line 341, in get_pyzm_config
config_file.read(args.get('config'))
File "/usr/lib/python3.6/configparser.py", line 697, in read
self._read(fp, filename)
File "/usr/lib/python3.6/configparser.py", line 1080, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/etc/zm/zm.conf', line: 15
'ZM_PATH_DATA=/usr/share/zoneminder\n'